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:icon="@drawable/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/AppTheme"
|
|
||||||
tools:ignore="AllowBackup,GoogleAppIndexingWarning"
|
tools:ignore="AllowBackup,GoogleAppIndexingWarning"
|
||||||
tools:targetApi="q">
|
tools:targetApi="q">
|
||||||
<activity
|
<activity
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ public class CrashReportActivity extends MaterialActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setTheme(R.style.AppTheme);
|
||||||
binding = ActivityCrashReportBinding.inflate(getLayoutInflater());
|
binding = ActivityCrashReportBinding.inflate(getLayoutInflater());
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
binding.sendLogs.setOnClickListener(view -> {
|
binding.sendLogs.setOnClickListener(view -> {
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ public class BaseActivity extends MaterialActivity {
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setTheme(R.style.AppTheme);
|
||||||
// make sure the versions are consistent
|
// make sure the versions are consistent
|
||||||
if (BuildConfig.DEBUG) return;
|
if (BuildConfig.DEBUG) return;
|
||||||
if (!ConfigManager.isBinderAlive()) return;
|
if (!ConfigManager.isBinderAlive()) return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue