diff options
| author | 2020-02-13 20:09:44 +0000 | |
|---|---|---|
| committer | 2020-02-13 20:09:44 +0000 | |
| commit | 7de784c1eba9f0c9679b72368bf997080a24fd1c (patch) | |
| tree | 65fb965627dc0b02153605069902f49e27ba46fb | |
| parent | b82b55f30deb93bf83e0d8688762acc4e00bda78 (diff) | |
| parent | 353c754cd07fc6ffea527a9cc58ebea63b8d34ae (diff) | |
Merge "Remove FLAG_SHOW_FOR_ALL_USERS to avoid crash"
| -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); } } |