summaryrefslogtreecommitdiffstats
path: root/tests/ActivityTests/src
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2014-08-18 15:08:33 -0700
committerDianne Hackborn <hackbod@google.com>2014-08-18 15:48:41 -0700
commit15ed2754a308546a54ab1061b4e365d6fe9b898d (patch)
tree454e2961bd63f756b36fe77187b4225fb55982e7 /tests/ActivityTests/src
parentf52233df74bb4a3efa1f7b9107353c841eafc933 (diff)
downloadframeworks_base-15ed2754a308546a54ab1061b4e365d6fe9b898d.zip
frameworks_base-15ed2754a308546a54ab1061b4e365d6fe9b898d.tar.gz
frameworks_base-15ed2754a308546a54ab1061b4e365d6fe9b898d.tar.bz2
Fix path for handling system window with app token.
It is wrong to turn the token into a null appWindowToken; we need to create a new top-level token as if they had passed in null. Change-Id: I870d8167c6ed456ea8fd58b149809ec9e0103bce
Diffstat (limited to 'tests/ActivityTests/src')
-rw-r--r--tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java b/tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java
index 0e063d6..9002125 100644
--- a/tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java
+++ b/tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java
@@ -34,6 +34,7 @@ import android.os.RemoteException;
import android.os.UserHandle;
import android.os.UserManager;
import android.graphics.Bitmap;
+import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
@@ -130,6 +131,12 @@ public class ActivityTestMain extends Activity {
mSecondUser = ui.id;
}
}
+
+ /*
+ AlertDialog ad = new AlertDialog.Builder(this).setTitle("title").setMessage("message").create();
+ ad.getWindow().getAttributes().type = WindowManager.LayoutParams.TYPE_SYSTEM_ERROR;
+ ad.show();
+ */
}
@Override