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

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

Merge remote-tracking branch 'origin/lineage-16.0' into v1-pie

parents e5c956a2 141a3566
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -236,7 +236,7 @@ public class SettingsActivity extends SettingsDrawerActivity
        super.onCreate(savedState);
        Log.d(LOG_TAG, "Starting onCreate");

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

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

    @VisibleForTesting
    Bitmap getBitmapFromXmlResource(int drawableRes) {
        Drawable drawable = getResources().getDrawable(drawableRes, getTheme());
+5 −0
Original line number Diff line number Diff line
@@ -139,6 +139,11 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi
        }
    }

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

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