Update tabs to match last design
Also rename pill tabs since it's not pill shape anymore.
Screenshots:
https://screenshot.googleplex.com/5EGbaWCMJeCVjmr.png
Bug: 191388121
Test: Manually
Change-Id: Ide3edc70e1dec4ee77e50786043cdfa98520f591
diff --git a/src/com/android/wallpaper/picker/ImagePreviewFragment.java b/src/com/android/wallpaper/picker/ImagePreviewFragment.java
index feb3699..1fdd463 100755
--- a/src/com/android/wallpaper/picker/ImagePreviewFragment.java
+++ b/src/com/android/wallpaper/picker/ImagePreviewFragment.java
@@ -155,7 +155,7 @@
mLockScreenPreviewer.setDateViewVisibility(!mFullScreenAnimation.isFullScreen());
mFullScreenAnimation.setFullScreenStatusListener(
isFullScreen -> mLockScreenPreviewer.setDateViewVisibility(!isFullScreen));
- setUpTabs(view.findViewById(R.id.pill_tabs));
+ setUpTabs(view.findViewById(R.id.separated_tabs));
view.measure(makeMeasureSpec(mScreenSize.x, EXACTLY),
makeMeasureSpec(mScreenSize.y, EXACTLY));
@@ -230,21 +230,22 @@
mBottomActionBar.setActionClickListener(APPLY, this::onSetWallpaperClicked);
- View pillTabsContainer = getView().findViewById(R.id.pill_tabs_container);
+ View separatedTabsContainer = getView().findViewById(R.id.separated_tabs_container);
// Update target view's accessibility param since it will be blocked by the bottom sheet
// when expanded.
mBottomActionBar.setAccessibilityCallback(new AccessibilityCallback() {
@Override
public void onBottomSheetCollapsed() {
mContainer.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_YES);
- pillTabsContainer.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_YES);
+ separatedTabsContainer.setImportantForAccessibility(
+ IMPORTANT_FOR_ACCESSIBILITY_YES);
}
@Override
public void onBottomSheetExpanded() {
mContainer.setImportantForAccessibility(
IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS);
- pillTabsContainer.setImportantForAccessibility(
+ separatedTabsContainer.setImportantForAccessibility(
IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS);
}