[Modify]优化代码

This commit is contained in:
wushaocheng
2023-02-01 18:27:59 +08:00
parent aa4a07006e
commit 3b5907d010
4 changed files with 35 additions and 36 deletions

View File

@@ -81,7 +81,37 @@
android:resizeableActivity="true"
android:supportsRtl="true"
android:theme="@style/MyMaterialTheme"
tools:replace="android:name,android:allowBackup">
tools:replace="android:name,android:allowBackup"
tools:targetApi="n">
<activity
android:name=".other.activity.SplashActivity"
android:exported="true"
android:screenOrientation="portrait"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- URI Scheme方式 在dashboard配置中,请保持与ios的URI Scheme相同 -->
<!--
如果程序已存在与此完全相同的data配置,即只包含scheme并且值完全相同,
则需要考虑发起的intent会出现相同应用图标的选择对话框的情况
参考集成文档:https://www.linkedme.cc/docs/page4.html#link1
-->
<intent-filter>
<!-- 此处scheme值需要替换为后台设置中的scheme值 -->
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="main"
android:scheme="pekoapp" />
</intent-filter>
</activity>
<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="${CRASHLYTICS_COLLECTION_ENABLED}" />
@@ -134,39 +164,11 @@
</intent-filter>
</activity>
<!--
声明云信后台服务,如需保持后台推送,使用独立进程效果会更好。
声明云信后台服务,如需保持后台推送,使用独立进程效果会更好。
ca46478c438dda51d25306f52fe7506b
09bde8b3d86b98a6612bc3fc92709799
-->
<activity
android:name=".other.activity.SplashActivity"
android:exported="true"
android:screenOrientation="portrait"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- URI Scheme方式 在dashboard配置中,请保持与ios的URI Scheme相同 -->
<!--
如果程序已存在与此完全相同的data配置,即只包含scheme并且值完全相同,
则需要考虑发起的intent会出现相同应用图标的选择对话框的情况
参考集成文档:https://www.linkedme.cc/docs/page4.html#link1
-->
<intent-filter>
<!-- 此处scheme值需要替换为后台设置中的scheme值 -->
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="main"
android:scheme="pekoapp" />
</intent-filter>
</activity> <!-- 运行后台辅助服务 -->
<!-- 运行后台辅助服务 -->
<activity
android:name=".home.activity.AssociationActivity"
android:label="@string/association_list"

View File

@@ -501,8 +501,8 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
@Subscribe(threadMode = ThreadMode.MAIN)
public void onLogoutEvent(LogoutEvent event) {
onLogout();
PwdCodeMgr.get().onLogout();
onLogout();
}
@SuppressLint("CheckResult")

View File

@@ -36,7 +36,6 @@ public class SplashActivity extends AppCompatActivity implements View.OnClickLis
public static final String SHOW_PRIVACY_AGREEMENT = "show_privacy_agreement";
private static final int COUNT_DOWN_TIME = 3;
private static final String TAG = SplashActivity.class.getSimpleName();
private ActivitySplashBinding mBinding;
private SplashComponent mLocalSplashVo;
@@ -175,7 +174,7 @@ public class SplashActivity extends AppCompatActivity implements View.OnClickLis
XChatApplication.initOtherSDK();
showSplash(true);
} else {
finish();
finish();
}
}
}

View File

@@ -104,8 +104,6 @@ import com.yizhuan.xchat_android_core.im.custom.bean.RoomFreeGiftAttachment;
import com.yizhuan.xchat_android_core.im.custom.bean.RoomFreeGiftMsgBean;
import com.yizhuan.xchat_android_core.im.custom.bean.RoomGiftValueAttachment;
import com.yizhuan.xchat_android_core.im.custom.bean.RoomInfoAttachment;
import com.yizhuan.xchat_android_core.im.custom.bean.RoomLuckySeaAttachment;
import com.yizhuan.xchat_android_core.im.custom.bean.RoomLuckySeaMsgBean;
import com.yizhuan.xchat_android_core.im.custom.bean.RoomPKAttachment;
import com.yizhuan.xchat_android_core.im.custom.bean.RoomPkBean;
import com.yizhuan.xchat_android_core.im.custom.bean.RoomTipAttachment;