Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c79fb623 authored by /e/ robot's avatar /e/ robot
Browse files

Merge remote-tracking branch 'origin/lineage-15.1' into v1-oreo

parents 9d7dc61c 790e1a4e
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -256,7 +256,7 @@ public class SettingsActivity extends SettingsDrawerActivity
    protected void onCreate(Bundle savedState) {
        super.onCreate(savedState);

        if (isLockTaskModePinned() && !isSettingsRunOnTop()) {
        if (isLockTaskModePinned() && !isSettingsRunOnTop() && !isLaunchableInTaskModePinned()) {
            Log.w(LOG_TAG, "Devices lock task mode pinned.");
            finish();
        }
@@ -966,6 +966,13 @@ public class SettingsActivity extends SettingsDrawerActivity
        startActivity(intent);
    }

    /**
     * @return whether or not the activity can be launched from other apps in the pinning screen.
     */
    public boolean isLaunchableInTaskModePinned() {
        return false;
    }

    private boolean isLockTaskModePinned() {
        final ActivityManager activityManager =
            getApplicationContext().getSystemService(ActivityManager.class);
+5 −0
Original line number Diff line number Diff line
@@ -134,6 +134,11 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi
        }
    }

    @Override
    public boolean isLaunchableInTaskModePinned() {
        return true;
    }

    public void prepareEnterAnimation() {
        getFragment().prepareEnterAnimation();
    }