Dynamically enable debug icon

pull/184/head
M66B 4 years ago
parent e9f2bfe3ac
commit 886dc218d0

@ -118,6 +118,7 @@
<activity
android:name=".ActivityMain"
android:enabled="true"
android:excludeFromRecents="true"
android:exported="true"
android:launchMode="singleInstance"
@ -141,6 +142,24 @@
</intent-filter>
</activity>
<activity-alias
android:name=".ActivityMain.Debug"
android:enabled="true"
android:icon="@mipmap/ic_launcher_debug"
android:roundIcon="@mipmap/ic_launcher_debug_round"
android:targetActivity=".ActivityMain">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="${applicationId}.REFRESH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity-alias>
<activity
android:name=".ActivitySetup"
android:exported="false"

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

@ -103,6 +103,9 @@ public class ApplicationEx extends Application {
}
});
Helper.enableComponent(this, ActivityMain.class, !BuildConfig.DEBUG);
Helper.enableComponent(this, ActivityMain.class.getName() + ".Debug", BuildConfig.DEBUG);
Log.setup(this);
upgrade(this);

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 978 B

After

Width:  |  Height:  |  Size: 978 B

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Loading…
Cancel
Save