Move theme config to code (#2456)
This commit is contained in:
parent
98ec80c28e
commit
ece5fe3f98
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 -> {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue