summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2014-10-16 15:06:35 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-16 15:06:35 +0000
commitde2dc4e115d98a81fd0615d0e2934e5c1cfe70da (patch)
treee734b9aac85d8523c7dd05e1022c685fc138badf /core/java
parente084c1f1e56444acc84db6e90a2136f6712cc6f8 (diff)
parent0f08243da6f3f58f18e7a0f3c1395eb2791d4d43 (diff)
downloadframeworks_base-de2dc4e115d98a81fd0615d0e2934e5c1cfe70da.zip
frameworks_base-de2dc4e115d98a81fd0615d0e2934e5c1cfe70da.tar.gz
frameworks_base-de2dc4e115d98a81fd0615d0e2934e5c1cfe70da.tar.bz2
am 0f08243d: am c344cdc1: am ccb7a9af: Merge "Prevent ChooserActivity from taking over the system bars" into lmp-mr1-dev
* commit '0f08243da6f3f58f18e7a0f3c1395eb2791d4d43': Prevent ChooserActivity from taking over the system bars
Diffstat (limited to 'core/java')
-rw-r--r--core/java/com/android/internal/app/ResolverActivity.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/com/android/internal/app/ResolverActivity.java b/core/java/com/android/internal/app/ResolverActivity.java
index f9da09a..b9cbc62 100644
--- a/core/java/com/android/internal/app/ResolverActivity.java
+++ b/core/java/com/android/internal/app/ResolverActivity.java
@@ -74,6 +74,9 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
+import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR;
+import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;
+
/**
* This activity is displayed when the system attempts to start an Intent for
* which there is more than one matching activity, allowing the user to decide
@@ -269,6 +272,9 @@ public class ResolverActivity extends Activity implements AdapterView.OnItemClic
mListView = (ListView) findViewById(R.id.resolver_list);
mListView.setVisibility(View.GONE);
}
+ // Prevent the Resolver window from becoming the top fullscreen window and thus from taking
+ // control of the system bars.
+ getWindow().clearFlags(FLAG_LAYOUT_IN_SCREEN|FLAG_LAYOUT_INSET_DECOR);
final ResolverDrawerLayout rdl = (ResolverDrawerLayout) findViewById(R.id.contentPanel);
if (rdl != null) {