diff --git a/api/current.xml b/api/current.xml
index 5b17c2bfcf012..04b4b8aaaa3a8 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -16619,6 +16619,17 @@
visibility="public"
>
+
+
+
+
diff --git a/core/res/res/layout/screen.xml b/core/res/res/layout/screen.xml
index 0269bf1aaa6f4..72f739259e64f 100644
--- a/core/res/res/layout/screen.xml
+++ b/core/res/res/layout/screen.xml
@@ -26,11 +26,11 @@ This is the basic layout for a screen, with all of its features enabled.
android:layout_height="match_parent"
>
-
+
-
+
-
+
-
+
-
+
-
+
+
@@ -544,8 +545,14 @@
- @android:color/secondary_text_nofocus
+
-
+
+
+
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
index 458ac9deb7d40..2299852ccecbf 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
@@ -71,6 +71,7 @@ import android.view.SurfaceHolder;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewManager;
+import android.view.ViewStub;
import android.view.VolumePanel;
import android.view.Window;
import android.view.WindowManager;
@@ -1949,8 +1950,16 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
mActionMode = mode;
} else {
if (mActionModeView == null) {
- mActionModeView = (ActionBarContextView) findViewById(
- com.android.internal.R.id.action_mode_bar);
+ if (hasFeature(FEATURE_ACTION_MODE_OVERLAY)) {
+ mActionModeView = new ActionBarContextView(mContext);
+ FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(
+ MATCH_PARENT, WRAP_CONTENT);
+ addView(mActionModeView, params);
+ } else {
+ ViewStub stub = (ViewStub) findViewById(
+ com.android.internal.R.id.action_mode_bar_stub);
+ mActionModeView = (ActionBarContextView) stub.inflate();
+ }
}
if (mActionModeView != null) {