diff options
| author | 2020-02-13 14:42:00 +0000 | |
|---|---|---|
| committer | 2020-02-13 15:20:24 +0000 | |
| commit | 353c754cd07fc6ffea527a9cc58ebea63b8d34ae (patch) | |
| tree | 72c1b6a43d00b45b3b6829bff37cc6acb6d1c382 | |
| parent | 628045a49d30252e9fe9faef4656423e5dcf934c (diff) | |
Remove FLAG_SHOW_FOR_ALL_USERS to avoid crash
Temporarily removing flag to avoid crash in bug linked while we figure
out a solution for this. More details on bug linked.
Test: 1. Settings > Security > Enable Screen pinning.
2. From overview > Tap on any app info > Select screen pinning
> Tap on home bar and observe logcat
3. Verify no crash
Bug: 149408635
Change-Id: Ieba081eae3f0cd66f99c54a2deb4e9653ec4cd9d
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/SysUIToast.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/SysUIToast.java b/packages/SystemUI/src/com/android/systemui/SysUIToast.java index 0f7f1bebae57..023b74b9c07e 100644 --- a/packages/SystemUI/src/com/android/systemui/SysUIToast.java +++ b/packages/SystemUI/src/com/android/systemui/SysUIToast.java @@ -19,7 +19,6 @@ import static android.widget.Toast.Duration; import android.annotation.StringRes; import android.content.Context; -import android.view.WindowManager; import android.widget.Toast; public class SysUIToast { @@ -29,10 +28,7 @@ public class SysUIToast { } public static Toast makeText(Context context, CharSequence text, @Duration int duration) { - Toast toast = Toast.makeText(context, text, duration); - toast.getWindowParams().privateFlags |= - WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS; - return toast; + return Toast.makeText(context, text, duration); } } |