Move theme config to code (#2456)

This commit is contained in:
南宫雪珊 2023-03-23 03:00:01 +08:00 committed by GitHub
parent 98ec80c28e
commit ece5fe3f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,6 @@
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="AllowBackup,GoogleAppIndexingWarning"
tools:targetApi="q">
<activity

View File

@ -49,6 +49,7 @@ public class CrashReportActivity extends MaterialActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(R.style.AppTheme);
binding = ActivityCrashReportBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
binding.sendLogs.setOnClickListener(view -> {

View File

@ -53,6 +53,7 @@ public class BaseActivity extends MaterialActivity {
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(R.style.AppTheme);
// make sure the versions are consistent
if (BuildConfig.DEBUG) return;
if (!ConfigManager.isBinderAlive()) return;