theme ripple effect on toolbar MaterialButtons

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-09-15 14:51:59 +02:00 committed by Álvaro Brey
parent 5571574309
commit 550924e19d
No known key found for this signature in database
GPG key ID: 2585783189A62105
3 changed files with 5 additions and 0 deletions

View file

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

View file

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

View file

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