• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

修訂f8587212e5072723db0a3bcc0311518c5438f8dd (tree)
時間2020-05-06 11:01:14
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Android 9.0.0 release 56
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXrBHTQAKCRDorT+BmrEO
eF6zAJsE6CyIZ2fZxtdoyH5gNi1fgeA7WwCfSmdup7AjSci3zfkTOSUDoTdNyuI=
=9aGq
-----END PGP SIGNATURE-----

Merge tag 'android-9.0.0_r56' into pie-x86

Android 9.0.0 release 56

Change Summary

差異

--- a/src/com/android/settings/SettingsActivity.java
+++ b/src/com/android/settings/SettingsActivity.java
@@ -236,7 +236,7 @@ public class SettingsActivity extends SettingsDrawerActivity
236236 super.onCreate(savedState);
237237 Log.d(LOG_TAG, "Starting onCreate");
238238
239- if (isLockTaskModePinned() && !isSettingsRunOnTop()) {
239+ if (isLockTaskModePinned() && !isSettingsRunOnTop() && !isLaunchableInTaskModePinned()) {
240240 Log.w(LOG_TAG, "Devices lock task mode pinned.");
241241 finish();
242242 }
@@ -810,6 +810,13 @@ public class SettingsActivity extends SettingsDrawerActivity
810810 return mNextButton;
811811 }
812812
813+ /**
814+ * @return whether or not the activity can be launched from other apps in the pinning screen.
815+ */
816+ public boolean isLaunchableInTaskModePinned() {
817+ return false;
818+ }
819+
813820 @VisibleForTesting
814821 Bitmap getBitmapFromXmlResource(int drawableRes) {
815822 Drawable drawable = getResources().getDrawable(drawableRes, getTheme());
--- a/src/com/android/settings/password/ConfirmDeviceCredentialBaseActivity.java
+++ b/src/com/android/settings/password/ConfirmDeviceCredentialBaseActivity.java
@@ -139,6 +139,11 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi
139139 }
140140 }
141141
142+ @Override
143+ public boolean isLaunchableInTaskModePinned() {
144+ return true;
145+ }
146+
142147 public void prepareEnterAnimation() {
143148 getFragment().prepareEnterAnimation();
144149 }