mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 02:21:37 +01:00
Refactoring
This commit is contained in:
@@ -19,8 +19,6 @@ package eu.faircode.email;
|
||||
Copyright 2018-2021 by Marcel Bokhorst (M66B)
|
||||
*/
|
||||
|
||||
import android.app.ActivityManager;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
@@ -34,7 +32,6 @@ import androidx.fragment.app.FragmentManager;
|
||||
import androidx.fragment.app.FragmentTransaction;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class ActivityCompose extends ActivityBase implements FragmentManager.OnBackStackChangedListener {
|
||||
@@ -88,13 +85,7 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB
|
||||
Bundle args;
|
||||
String action = intent.getAction();
|
||||
if (isShared(action)) {
|
||||
ActivityManager am = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
|
||||
if (am != null) {
|
||||
List<ActivityManager.AppTask> tasks = am.getAppTasks();
|
||||
if (tasks != null && tasks.size() > 0) {
|
||||
tasks.get(0).setExcludeFromRecents(true);
|
||||
}
|
||||
}
|
||||
Helper.excludeFromRecents(this);
|
||||
|
||||
args = new Bundle();
|
||||
args.putString("action", "new");
|
||||
|
||||
Reference in New Issue
Block a user