Merge "RESTRICT AUTOMERGE Allow LockScreenPattern to be launched in the pinning screen" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f2754332a0
@@ -235,7 +235,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();
|
||||
}
|
||||
@@ -804,6 +804,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());
|
||||
|
@@ -139,6 +139,11 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLaunchableInTaskModePinned() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void prepareEnterAnimation() {
|
||||
getFragment().prepareEnterAnimation();
|
||||
}
|
||||
|
Reference in New Issue
Block a user