Loading core/java/android/view/LayoutInflater.java +2 −2 Original line number Diff line number Diff line Loading @@ -606,9 +606,9 @@ public abstract class LayoutInflater { constructor.setAccessible(true); final View view = constructor.newInstance(args); if (view instanceof ViewStub) { // always use ourselves when inflating ViewStub later // Use the same context when inflating ViewStub later. final ViewStub viewStub = (ViewStub) view; viewStub.setLayoutInflater(this); viewStub.setLayoutInflater(cloneInContext((Context) args[0])); } return view; Loading core/java/com/android/internal/view/StandaloneActionMode.java +4 −3 Original line number Diff line number Diff line Loading @@ -46,7 +46,8 @@ public class StandaloneActionMode extends ActionMode implements MenuBuilder.Call mContextView = view; mCallback = callback; mMenu = new MenuBuilder(context).setDefaultShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); mMenu = new MenuBuilder(view.getContext()).setDefaultShowAsAction( MenuItem.SHOW_AS_ACTION_IF_ROOM); mMenu.setCallback(this); mFocusable = isFocusable; } Loading Loading @@ -126,7 +127,7 @@ public class StandaloneActionMode extends ActionMode implements MenuBuilder.Call @Override public MenuInflater getMenuInflater() { return new MenuInflater(mContext); return new MenuInflater(mContextView.getContext()); } public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { Loading @@ -141,7 +142,7 @@ public class StandaloneActionMode extends ActionMode implements MenuBuilder.Call return true; } new MenuPopupHelper(mContext, subMenu).show(); new MenuPopupHelper(mContextView.getContext(), subMenu).show(); return true; } Loading core/res/res/layout/screen.xml +2 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,8 @@ This is the basic layout for a screen, with all of its features enabled. android:inflatedId="@+id/action_mode_bar" android:layout="@layout/action_mode_bar" android:layout_width="match_parent" android:layout_height="wrap_content" /> android:layout_height="wrap_content" android:theme="?attr/actionBarTheme" /> <!-- Title bar --> <RelativeLayout android:id="@android:id/title_container" Loading core/res/res/layout/screen_custom_title.xml +2 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,8 @@ This is a custom layout for a screen. android:inflatedId="@+id/action_mode_bar" android:layout="@layout/action_mode_bar" android:layout_width="match_parent" android:layout_height="wrap_content" /> android:layout_height="wrap_content" android:theme="?attr/actionBarTheme" /> <FrameLayout android:id="@android:id/title_container" android:layout_width="match_parent" Loading core/res/res/layout/screen_progress.xml +2 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,8 @@ This is the basic layout for a screen, with all of its features enabled. android:inflatedId="@+id/action_mode_bar" android:layout="@layout/action_mode_bar" android:layout_width="match_parent" android:layout_height="wrap_content" /> android:layout_height="wrap_content" android:theme="?attr/actionBarTheme" /> <RelativeLayout android:id="@android:id/title_container" style="?android:attr/windowTitleBackgroundStyle" Loading Loading
core/java/android/view/LayoutInflater.java +2 −2 Original line number Diff line number Diff line Loading @@ -606,9 +606,9 @@ public abstract class LayoutInflater { constructor.setAccessible(true); final View view = constructor.newInstance(args); if (view instanceof ViewStub) { // always use ourselves when inflating ViewStub later // Use the same context when inflating ViewStub later. final ViewStub viewStub = (ViewStub) view; viewStub.setLayoutInflater(this); viewStub.setLayoutInflater(cloneInContext((Context) args[0])); } return view; Loading
core/java/com/android/internal/view/StandaloneActionMode.java +4 −3 Original line number Diff line number Diff line Loading @@ -46,7 +46,8 @@ public class StandaloneActionMode extends ActionMode implements MenuBuilder.Call mContextView = view; mCallback = callback; mMenu = new MenuBuilder(context).setDefaultShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); mMenu = new MenuBuilder(view.getContext()).setDefaultShowAsAction( MenuItem.SHOW_AS_ACTION_IF_ROOM); mMenu.setCallback(this); mFocusable = isFocusable; } Loading Loading @@ -126,7 +127,7 @@ public class StandaloneActionMode extends ActionMode implements MenuBuilder.Call @Override public MenuInflater getMenuInflater() { return new MenuInflater(mContext); return new MenuInflater(mContextView.getContext()); } public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { Loading @@ -141,7 +142,7 @@ public class StandaloneActionMode extends ActionMode implements MenuBuilder.Call return true; } new MenuPopupHelper(mContext, subMenu).show(); new MenuPopupHelper(mContextView.getContext(), subMenu).show(); return true; } Loading
core/res/res/layout/screen.xml +2 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,8 @@ This is the basic layout for a screen, with all of its features enabled. android:inflatedId="@+id/action_mode_bar" android:layout="@layout/action_mode_bar" android:layout_width="match_parent" android:layout_height="wrap_content" /> android:layout_height="wrap_content" android:theme="?attr/actionBarTheme" /> <!-- Title bar --> <RelativeLayout android:id="@android:id/title_container" Loading
core/res/res/layout/screen_custom_title.xml +2 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,8 @@ This is a custom layout for a screen. android:inflatedId="@+id/action_mode_bar" android:layout="@layout/action_mode_bar" android:layout_width="match_parent" android:layout_height="wrap_content" /> android:layout_height="wrap_content" android:theme="?attr/actionBarTheme" /> <FrameLayout android:id="@android:id/title_container" android:layout_width="match_parent" Loading
core/res/res/layout/screen_progress.xml +2 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,8 @@ This is the basic layout for a screen, with all of its features enabled. android:inflatedId="@+id/action_mode_bar" android:layout="@layout/action_mode_bar" android:layout_width="match_parent" android:layout_height="wrap_content" /> android:layout_height="wrap_content" android:theme="?attr/actionBarTheme" /> <RelativeLayout android:id="@android:id/title_container" style="?android:attr/windowTitleBackgroundStyle" Loading