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

Commit 49ff3c47 authored by Danesh M's avatar Danesh M
Browse files

Show correct pinning message without navbar

Show correct message based on whether the user currently
has navbar turned on or not.

OPO-393

Change-Id: Id48f5c5097a28a99139822e035ea409f33d14f50
parent 6fc672db
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -63,9 +63,9 @@ public class LockTaskNotify {
        final int textResId;
        if (lockTaskModeState == ActivityManager.LOCK_TASK_MODE_LOCKED) {
            textResId = R.string.lock_to_app_toast_locked;
        } else if (lockTaskModeState == ActivityManager.LOCK_TASK_MODE_PINNED) {
            textResId = mAccessibilityManager.isEnabled()
                    ? R.string.lock_to_app_toast_accessible : R.string.lock_to_app_toast;
        } else if (lockTaskModeState == ActivityManager.LOCK_TASK_MODE_PINNED &&
                mAccessibilityManager.isEnabled()) {
            textResId = R.string.lock_to_app_toast_accessible;
        } else {
            textResId = hasNavigationBar()
                    ? R.string.lock_to_app_toast : R.string.lock_to_app_toast_no_navbar;