android: fix AppCompat theme crash on launch
This commit is contained in:
@@ -994,3 +994,13 @@
|
||||
- copies `*Application_GeneratedInjector.class` from `intermediates/javac/.../classes`
|
||||
into `intermediates/classes/.../transform...ClassesWithAsm/dirs` if missing,
|
||||
- wired task as dependency of `dexBuilder<Variant>`.
|
||||
|
||||
### Step 135 - AppCompat launch crash fix (theme mismatch)
|
||||
- Fixed `MainActivity` startup crash:
|
||||
- `IllegalStateException: You need to use a Theme.AppCompat theme`.
|
||||
- Root cause:
|
||||
- `Theme.AppCompat.DayNight.NoActionBar` was accidentally overridden in app resources
|
||||
with non-AppCompat parent (`Theme.DeviceDefault.NoActionBar`).
|
||||
- Fix applied:
|
||||
- introduced dedicated app theme `Theme.Messenger` with parent `Theme.AppCompat.DayNight.NoActionBar`,
|
||||
- switched `AndroidManifest.xml` application theme to `@style/Theme.Messenger`.
|
||||
|
||||
Reference in New Issue
Block a user