瀏覽代碼

theme ripple effect on toolbar MaterialButtons

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 2 年之前
父節點
當前提交
550924e19d

+ 1 - 0
app/src/main/java/com/owncloud/android/ui/activity/ToolbarActivity.java

@@ -118,6 +118,7 @@ public abstract class ToolbarActivity extends BaseActivity implements Injectable
 
         viewThemeUtils.material.themeToolbar(mToolbar);
         viewThemeUtils.platform.themeStatusBar(this);
+        viewThemeUtils.material.colorMaterialTextButton(mSwitchAccountButton);
     }
 
     public void setupToolbar() {

+ 2 - 0
app/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java

@@ -352,7 +352,9 @@ public class ExtendedListFragment extends Fragment implements
         mRefreshListLayout.setOnRefreshListener(this);
 
         mSortButton = getActivity().findViewById(R.id.sort_button);
+        viewThemeUtils.material.colorMaterialTextButton(mSortButton);
         mSwitchGridViewButton = getActivity().findViewById(R.id.switch_grid_view_button);
+        viewThemeUtils.material.colorMaterialTextButton(mSwitchGridViewButton);
 
         return v;
     }

+ 2 - 0
app/src/main/java/com/owncloud/android/ui/trashbin/TrashbinActivity.java

@@ -154,6 +154,8 @@ public class TrashbinActivity extends DrawerActivity implements
         viewThemeUtils.androidx.themeSwipeRefreshLayout(binding.swipeContainingList);
         binding.swipeContainingList.setOnRefreshListener(this::loadFolder);
 
+        viewThemeUtils.material.colorMaterialTextButton(findViewById(R.id.sort_button));
+
         findViewById(R.id.sort_button).setOnClickListener(l ->
                                                               openSortingOrderDialogFragment(getSupportFragmentManager(),
                                                                                              preferences.getSortOrderByType(