From f9892e51820f5e0f5fa4019113a283d8d7029480 Mon Sep 17 00:00:00 2001 From: Randy W Date: Thu, 22 Dec 2022 11:38:38 +0700 Subject: [PATCH] Fix for `View class androidx.appcompat.widget.AppCompatTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).` Main ApplicationActivity needs to use AppCompat theme. Fix for `android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{me.lucky.wasted/me.lucky.wasted.trigger.application.ApplicationActivity}` Main ApplicationActivity was not enabled. --- app/src/main/AndroidManifest.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 42c42de..22600b2 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -161,8 +161,7 @@ android:name=".trigger.application.ApplicationActivity" android:taskAffinity=".trigger.application" android:noHistory="true" - android:theme="@android:style/Theme.NoDisplay" - android:enabled="false" + android:theme="@style/Base.Theme.AppCompat" android:exported="false"> @@ -181,7 +180,7 @@ - +