diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 3d6721f7ef2e4..a960bba87c66e 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -4470,7 +4470,7 @@ public final class Settings {
public static final String BAR_SERVICE_COMPONENT = "bar_service_component";
/** @hide */
- public static final String TRANSIENT_NAV_CONFIRMATIONS = "transient_nav_confirmations";
+ public static final String IMMERSIVE_MODE_CONFIRMATIONS = "immersive_mode_confirmations";
/**
* This is the query URI for finding a print service to install.
diff --git a/core/java/android/widget/Toast.java b/core/java/android/widget/Toast.java
index 46f9adf76f37b..371b2f15dd095 100644
--- a/core/java/android/widget/Toast.java
+++ b/core/java/android/widget/Toast.java
@@ -84,9 +84,6 @@ public class Toast {
*/
public static final int LENGTH_LONG = 1;
- /** @hide */
- public static final int LENGTH_INFINITE = 2;
-
final Context mContext;
final TN mTN;
int mDuration;
@@ -304,61 +301,6 @@ public class Toast {
tv.setText(s);
}
- /** @hide */
- public static Toast makeBar(Context context, int resId, int duration) {
- return makeBar(context, context.getResources().getText(resId), duration);
- }
-
- /** @hide */
- public static Toast makeBar(Context context, CharSequence text, int duration) {
- Toast result = new Toast(context);
-
- LayoutInflater inflate = (LayoutInflater)
- context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- View v = inflate.inflate(com.android.internal.R.layout.toast_bar, null);
- ((TextView)v.findViewById(android.R.id.message)).setText(text);
- v.findViewById(android.R.id.button1).setVisibility(View.GONE);
-
- result.mNextView = v;
- result.mDuration = duration;
- result.mTN.mParams.alpha = 0.9f;
- result.mTN.mParams.windowAnimations = com.android.internal.R.style.Animation_ToastBar;
-
- return result;
- }
-
- /** @hide */
- public Toast setAction(int resId, Runnable action) {
- return setAction(mContext.getResources().getText(resId), action);
- }
-
- /** @hide */
- public Toast setAction(CharSequence actionText, final Runnable action) {
- if (mNextView != null) {
- TextView text1 = (TextView)mNextView.findViewById(android.R.id.text1);
- View button1 = mNextView.findViewById(android.R.id.button1);
- if (text1 != null && button1 != null) {
- text1.setText(actionText);
- button1.setVisibility(View.VISIBLE);
- button1.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- if (action != null) {
- action.run();
- }
- }});
- return setInteractive(true);
- }
- }
- throw new RuntimeException("This Toast was not created with Toast.makeBar()");
- }
-
- /** @hide */
- public Toast setInteractive(boolean interactive) {
- mTN.setInteractive(interactive);
- return this;
- }
-
// =======================================================================================
// All the gunk below is the interaction with the Notification Service, which handles
// the proper ordering of these system-wide.
@@ -415,16 +357,9 @@ public class Toast {
params.windowAnimations = com.android.internal.R.style.Animation_Toast;
params.type = WindowManager.LayoutParams.TYPE_TOAST;
params.setTitle("Toast");
- setInteractive(false);
- }
-
- private void setInteractive(boolean interactive) {
- mParams.flags = WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
+ params.flags = WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
| WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
- | (interactive
- ? (WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
- | WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH)
- : WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
+ | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
}
/**
diff --git a/core/res/res/anim/toast_bar_enter.xml b/core/res/res/anim/toast_bar_enter.xml
deleted file mode 100644
index 5c0dfcf099128..0000000000000
--- a/core/res/res/anim/toast_bar_enter.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
diff --git a/core/res/res/anim/toast_bar_exit.xml b/core/res/res/anim/toast_bar_exit.xml
deleted file mode 100644
index 4e3b7dac86cb7..0000000000000
--- a/core/res/res/anim/toast_bar_exit.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
diff --git a/core/res/res/drawable-hdpi/toast_bar_bg.9.png b/core/res/res/drawable-hdpi/toast_bar_bg.9.png
deleted file mode 100644
index 2396b2631973d..0000000000000
Binary files a/core/res/res/drawable-hdpi/toast_bar_bg.9.png and /dev/null differ
diff --git a/core/res/res/drawable-mdpi/toast_bar_bg.9.png b/core/res/res/drawable-mdpi/toast_bar_bg.9.png
deleted file mode 100644
index 291a9368d2980..0000000000000
Binary files a/core/res/res/drawable-mdpi/toast_bar_bg.9.png and /dev/null differ
diff --git a/core/res/res/drawable-xhdpi/toast_bar_bg.9.png b/core/res/res/drawable-xhdpi/toast_bar_bg.9.png
deleted file mode 100644
index 1dc49279290b8..0000000000000
Binary files a/core/res/res/drawable-xhdpi/toast_bar_bg.9.png and /dev/null differ
diff --git a/core/res/res/layout/transient_navigation_cling.xml b/core/res/res/layout/immersive_mode_cling.xml
similarity index 96%
rename from core/res/res/layout/transient_navigation_cling.xml
rename to core/res/res/layout/immersive_mode_cling.xml
index d33d96569d867..f97225eaeb9e2 100644
--- a/core/res/res/layout/transient_navigation_cling.xml
+++ b/core/res/res/layout/immersive_mode_cling.xml
@@ -44,7 +44,7 @@
diff --git a/core/res/res/layout/toast_bar.xml b/core/res/res/layout/toast_bar.xml
deleted file mode 100644
index a31d7cb14760a..0000000000000
--- a/core/res/res/layout/toast_bar.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/core/res/res/values-land/dimens.xml b/core/res/res/values-land/dimens.xml
index 4e365916f1091..640ca1ef97e27 100644
--- a/core/res/res/values-land/dimens.xml
+++ b/core/res/res/values-land/dimens.xml
@@ -64,7 +64,7 @@
250dip
-
+
380dp
diff --git a/core/res/res/values-sw600dp/dimens.xml b/core/res/res/values-sw600dp/dimens.xml
index 6b5c5051c51f9..d21f9b789d542 100644
--- a/core/res/res/values-sw600dp/dimens.xml
+++ b/core/res/res/values-sw600dp/dimens.xml
@@ -113,6 +113,6 @@
12dp
-
+
380dp
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 21816d5ce44b7..7c316cf4baec3 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -1265,8 +1265,8 @@
- 5000
+ immersive mode confirmation prompt.-->
+ 5000
-1
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml
index ea837add80a1a..98fce2d26acbd 100644
--- a/core/res/res/values/dimens.xml
+++ b/core/res/res/values/dimens.xml
@@ -381,7 +381,7 @@
24dip
270dip
-
+
-1px
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index ca9436e097e3a..e4ef21919407c 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -4491,8 +4491,8 @@
Try again later
-
- Swipe down from the top to exit full screen.
+
+ Swipe down from the top to exit full screen.
Done
diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml
index 78dd8384bdef2..177ab51e2122f 100644
--- a/core/res/res/values/styles.xml
+++ b/core/res/res/values/styles.xml
@@ -138,12 +138,6 @@ please see styles_device_defaults.xml.
- @anim/submenu_exit
-
-
-