Merge "Adding some assets / fixing a couple bugs" into jb-ub-now-indigo-rose
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 898 B |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
@@ -26,6 +26,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/widget_button_text"
|
||||
android:drawablePadding="4dp"
|
||||
android:drawableTop="@drawable/ic_gel_widget_icn"
|
||||
android:textSize="18dp"/>
|
||||
<Space
|
||||
android:layout_width="@dimen/overview_panel_buttonSpacing"
|
||||
@@ -35,6 +37,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/wallpaper_button_text"
|
||||
android:drawablePadding="4dp"
|
||||
android:drawableTop="@drawable/ic_gel_wallpaper_icn"
|
||||
android:textSize="18dp" />
|
||||
<Space
|
||||
android:layout_width="@dimen/overview_panel_buttonSpacing"
|
||||
@@ -44,5 +48,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/settings_button_text"
|
||||
android:drawablePadding="4dp"
|
||||
android:drawableTop="@drawable/ic_gel_setting_icn"
|
||||
android:textSize="18dp" />
|
||||
</LinearLayout>
|
||||
|
||||
@@ -1950,7 +1950,8 @@ public class Workspace extends SmoothPagedView
|
||||
AlphaUpdateListener.updateVisibility(getPageIndicator());
|
||||
}
|
||||
searchBar.setAlpha(finalSearchBarAlpha);
|
||||
AlphaUpdateListener.updateVisibility(mLauncher.getSearchBar());
|
||||
AlphaUpdateListener.updateVisibility(searchBar);
|
||||
updateCustomContentVisibility();
|
||||
}
|
||||
if (finalSearchBarAlpha == 0) {
|
||||
mLauncher.setVoiceButtonProxyVisible(false);
|
||||
@@ -2017,10 +2018,27 @@ public class Workspace extends SmoothPagedView
|
||||
private void onTransitionPrepare() {
|
||||
mIsSwitchingState = true;
|
||||
updateChildrenLayersEnabled(false);
|
||||
if (mState != Workspace.State.NORMAL) {
|
||||
if (hasCustomContent()) {
|
||||
mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(INVISIBLE);
|
||||
}
|
||||
hideCustomContentIfNecessary();
|
||||
}
|
||||
|
||||
void updateCustomContentVisibility() {
|
||||
int visibility = mState == Workspace.State.NORMAL ? VISIBLE : INVISIBLE;
|
||||
if (hasCustomContent()) {
|
||||
mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(visibility);
|
||||
}
|
||||
}
|
||||
|
||||
void showCustomContentIfNecessary() {
|
||||
boolean show = mState == Workspace.State.NORMAL;
|
||||
if (show && hasCustomContent()) {
|
||||
mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
void hideCustomContentIfNecessary() {
|
||||
boolean hide = mState != Workspace.State.NORMAL;
|
||||
if (hide && hasCustomContent()) {
|
||||
mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(INVISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2037,11 +2055,7 @@ public class Workspace extends SmoothPagedView
|
||||
cl.setShortcutAndWidgetAlpha(1f);
|
||||
}
|
||||
}
|
||||
if (mState == Workspace.State.NORMAL) {
|
||||
if (hasCustomContent()) {
|
||||
mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(VISIBLE);
|
||||
}
|
||||
}
|
||||
showCustomContentIfNecessary();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||