开启固定应用功能后,固定某个应用,连续多次点击返回键后不显示如何退出固定模式的提示。
退出固定模式的提示文字
<string name="screen_pinning_toast" msgid="8177286912533744328">"如需取消固定此应用,请轻触并按住“返回”按钮和“概览”按钮"</string>
- 位置: vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/navigationbar/ScreenPinningNotify.java
/** Show a toast that describes the gesture the user should use to escape pinned mode. */
public void showEscapeToast(boolean isGestureNavEnabled, boolean isRecentsButtonVisible) {
long showToastTime = SystemClock.elapsedRealtime();
if ((showToastTime - mLastShowToastTime) < SHOW_TOAST_MINIMUM_INTERVAL) {
Slog.i(TAG, "Ignore toast since it is requested in very short interval.");
return;
}
if (mLastToast != null) {
mLastToast.cancel();
}
mLastToast = makeAllUserToastAndShow(isGestureNavEnabled
? R.string.screen_pinning_toast_gesture_nav
: isRecentsButtonVisible
? R.string.screen_pinning_toast
: R.string.screen_pinning_toast_recents_invisible);
mLastShowToastTime = showToastTime;
}
private Toast makeAllUserToastAndShow</