summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-02-13 20:09:44 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-02-13 20:09:44 +0000
commit7de784c1eba9f0c9679b72368bf997080a24fd1c (patch)
tree65fb965627dc0b02153605069902f49e27ba46fb
parentb82b55f30deb93bf83e0d8688762acc4e00bda78 (diff)
parent353c754cd07fc6ffea527a9cc58ebea63b8d34ae (diff)
Merge "Remove FLAG_SHOW_FOR_ALL_USERS to avoid crash"
-rw-r--r--packages/SystemUI/src/com/android/systemui/SysUIToast.java6
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);
}
}