Remove unused fab
This commit is contained in:
1 parent
145b7049a8
commit
71a424c15d
6 files changed
+8
-41
No files matched your search
@@ -582,16 +582,14 @@ public class FavoritesScene extends SearchBarScene implements
|
||||
|
||||
if (!mRecyclerView.isInCustomChoice()) {
|
||||
switch (position) {
|
||||
// Open right
|
||||
case 0 -> openDrawer(Gravity.RIGHT);
|
||||
// Go to
|
||||
case 1 -> {
|
||||
case 0 -> {
|
||||
if (mHelper.canGoTo()) showGoToDialog();
|
||||
}
|
||||
// Refresh
|
||||
case 2 -> mHelper.refresh();
|
||||
case 1 -> mHelper.refresh();
|
||||
// Last page
|
||||
case 3 -> mHelper.goToPage(Integer.MAX_VALUE - 1);
|
||||
case 2 -> mHelper.goToPage(Integer.MAX_VALUE - 1);
|
||||
}
|
||||
view.setExpanded(false);
|
||||
return;
|
||||
|
||||
@@ -480,12 +480,11 @@ public final class GalleryListScene extends SearchBarScene
|
||||
if (isTopList != mIsTopList) {
|
||||
mIsTopList = isTopList;
|
||||
recreateDrawerView();
|
||||
mFabLayout.getSecondaryFabAt(0).setImageResource(isTopList ? R.drawable.ic_baseline_format_list_numbered_24 : R.drawable.v_magnify_x24);
|
||||
}
|
||||
|
||||
// Update fab visibility
|
||||
mFabLayout.setSecondaryFabVisibilityAt(1, !isPopular);
|
||||
mFabLayout.setSecondaryFabVisibilityAt(3, !isTopList && !isPopular);
|
||||
mFabLayout.setSecondaryFabVisibilityAt(0, !isPopular);
|
||||
mFabLayout.setSecondaryFabVisibilityAt(2, !isTopList && !isPopular);
|
||||
|
||||
// Update normal search mode
|
||||
mSearchLayout.setNormalSearchMode(mode == ListUrlBuilder.MODE_SUBSCRIPTION
|
||||
@@ -890,16 +889,14 @@ public final class GalleryListScene extends SearchBarScene
|
||||
}
|
||||
|
||||
switch (position) {
|
||||
// Open right
|
||||
case 0 -> openDrawer(Gravity.RIGHT);
|
||||
// Go to
|
||||
case 1 -> {
|
||||
case 0 -> {
|
||||
if (mHelper.canGoTo()) showGoToDialog();
|
||||
}
|
||||
// Refresh
|
||||
case 2 -> mHelper.refresh();
|
||||
case 1 -> mHelper.refresh();
|
||||
// Last page
|
||||
case 3 -> mHelper.goToPage(Integer.MAX_VALUE - 1);
|
||||
case 2 -> mHelper.goToPage(Integer.MAX_VALUE - 1);
|
||||
}
|
||||
|
||||
view.setExpanded(false);
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false">
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromYDelta="-100%"
|
||||
android:toYDelta="0%" />
|
||||
</set>
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false">
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromYDelta="0%"
|
||||
android:toYDelta="-100%" />
|
||||
</set>
|
||||
@@ -36,12 +36,6 @@
|
||||
android:paddingBottom="@dimen/corner_fab_margin"
|
||||
app:fitsSystemWindowsInsets="top|bottom">
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
style="@style/Widget.Material3.FloatingActionButton.Small.Primary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:srcCompat="@drawable/v_heart_box_dark_x24" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
style="@style/Widget.Material3.FloatingActionButton.Small.Primary"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -44,12 +44,6 @@
|
||||
android:paddingBottom="@dimen/corner_fab_margin"
|
||||
app:fitsSystemWindowsInsets="top|bottom">
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
style="@style/Widget.Material3.FloatingActionButton.Small.Primary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:srcCompat="@drawable/v_magnify_x24" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
style="@style/Widget.Material3.FloatingActionButton.Small.Primary"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
Reference in new issue
Block a user