diff --git a/android/capacitor/lint.xml b/android/capacitor/lint.xml index 4fdc0a4448..188a45b0f4 100644 --- a/android/capacitor/lint.xml +++ b/android/capacitor/lint.xml @@ -2,4 +2,7 @@ + + + diff --git a/android/capacitor/src/main/java/com/getcapacitor/BridgeActivity.java b/android/capacitor/src/main/java/com/getcapacitor/BridgeActivity.java index d451128ac5..c3660265e9 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/BridgeActivity.java +++ b/android/capacitor/src/main/java/com/getcapacitor/BridgeActivity.java @@ -22,8 +22,7 @@ public class BridgeActivity extends AppCompatActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); bridgeBuilder.setInstanceState(savedInstanceState); - getApplication().setTheme(getResources().getIdentifier("AppTheme_NoActionBar", "style", getPackageName())); - setTheme(getResources().getIdentifier("AppTheme_NoActionBar", "style", getPackageName())); + getApplication().setTheme(R.style.AppTheme_NoActionBar); setTheme(R.style.AppTheme_NoActionBar); setContentView(R.layout.bridge_layout_main); PluginManager loader = new PluginManager(getAssets());