Added debug option to view files in a separate task

This commit is contained in:
M66B
2024-06-15 14:59:15 +02:00
parent f0b4472f03
commit d3de1ae38f
4 changed files with 30 additions and 2 deletions

View File

@@ -1015,6 +1015,11 @@ public class Helper {
intent.setDataAndTypeAndNormalize(uri, type);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean share_task = prefs.getBoolean("share_task", false);
if (share_task)
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (launchAdjacent(context, true))
intent.addFlags(Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT | Intent.FLAG_ACTIVITY_NEW_TASK);