From 169126bf4d88514d3e05a5cb3c13d4a60c9f74cb Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Tue, 19 Aug 2014 12:38:32 -0400 Subject: [PATCH] Revert workaround for network limit dialog. Restore the window type now that it no longer crashes. This reverts https://googleplex-android-review.git.corp.google.com/#/c/527371/ Bug:17102499 Change-Id: Ifb93a959a693b5925712ae82192c80790b6aefb1 --- .../src/com/android/systemui/net/NetworkOverLimitActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/net/NetworkOverLimitActivity.java b/packages/SystemUI/src/com/android/systemui/net/NetworkOverLimitActivity.java index fe7aa758f594e..b3c0783038516 100644 --- a/packages/SystemUI/src/com/android/systemui/net/NetworkOverLimitActivity.java +++ b/packages/SystemUI/src/com/android/systemui/net/NetworkOverLimitActivity.java @@ -33,6 +33,7 @@ import android.os.Bundle; import android.os.RemoteException; import android.os.ServiceManager; import android.util.Log; +import android.view.WindowManager; import com.android.systemui.R; @@ -62,6 +63,7 @@ public class NetworkOverLimitActivity extends Activity { }); final Dialog dialog = builder.create(); + dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { public void onDismiss(DialogInterface dialog) { finish();