Skip to content

Commit

Permalink
Making ChecklistActivity launch-able as main activity from apps drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
jr20xx committed Dec 21, 2024
1 parent 45776d8 commit 54b286d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,21 @@
<activity
android:name=".InvisibleActivity"
android:exported="false"
android:launchMode="singleInstance"
android:noHistory="true"
android:theme="@android:style/Theme.NoDisplay" />
<activity
android:name=".ChecklistActivity"
android:excludeFromRecents="true"
android:exported="false"
android:theme="@style/ChecklistTheme"/>
android:exported="true"
android:launchMode="singleTop"
android:noHistory="true"
android:theme="@style/ChecklistTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<receiver
android:name="android.app.admin.DeviceAdminReceiver"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void onClick()
.setAction(Constants.ACTION_TOGGLE_SPLIT_SCREEN).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
}
else
startActivityAndCollapse(new Intent(this, ChecklistActivity.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP));
startActivityAndCollapse(new Intent(this, ChecklistActivity.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NO_USER_ACTION));
}

@Override
Expand Down

0 comments on commit 54b286d

Please sign in to comment.