mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Rebased with master and conflicts resolved
This commit is contained in:
parent
9c6080fcdd
commit
f82b32fc74
3 changed files with 8 additions and 6 deletions
|
@ -2,9 +2,11 @@
|
|||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Andy Scherzinger
|
||||
* @author TSI-mc
|
||||
* Copyright (C) 2016 Andy Scherzinger
|
||||
* Copyright (C) 2016 Nextcloud
|
||||
* Copyright (C) 2016 ownCloud Inc.
|
||||
* Copyright (C) 2022 TSI-mc
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
|
@ -294,6 +296,6 @@ public abstract class ToolbarActivity extends BaseActivity implements Injectable
|
|||
}
|
||||
|
||||
ActionBar actionBar = getSupportActionBar();
|
||||
ThemeToolbarUtils.setColoredSubtitle(actionBar, subtitle, this);
|
||||
themeToolbarUtils.setColoredSubtitle(actionBar, subtitle, this);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,6 +81,8 @@ public class GalleryFragment extends OCFileListFragment implements GalleryFragme
|
|||
private List<OCFile> videoList;
|
||||
|
||||
@Inject AppPreferences appPreferences;
|
||||
@Inject ThemeColorUtils themeColorUtils;
|
||||
@Inject ThemeMenuUtils themeMenuUtils;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
|
@ -299,8 +301,8 @@ public class GalleryFragment extends OCFileListFragment implements GalleryFragme
|
|||
MenuItem menuItem = menu.findItem(R.id.action_three_dot_icon);
|
||||
|
||||
if (menuItem != null) {
|
||||
ThemeMenuUtils.tintMenuIcon(requireContext(), menuItem,
|
||||
ThemeColorUtils.appBarPrimaryFontColor(requireContext()));
|
||||
themeMenuUtils.tintMenuIcon(menuItem,
|
||||
themeColorUtils.appBarPrimaryFontColor(requireContext()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
*/
|
||||
package com.owncloud.android.utils.theme;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.text.Spannable;
|
||||
import android.text.SpannableString;
|
||||
|
@ -54,11 +53,10 @@ public final class ThemeMenuUtils {
|
|||
/**
|
||||
* tinting menu item color
|
||||
*
|
||||
* @param context
|
||||
* @param item the menu item object
|
||||
* @param color the color wanted as a color resource
|
||||
*/
|
||||
public static void tintMenuIcon(@NonNull Context context, @NonNull MenuItem item, int color) {
|
||||
public void tintMenuIcon(@NonNull MenuItem item, int color) {
|
||||
Drawable normalDrawable = item.getIcon();
|
||||
Drawable wrapDrawable = DrawableCompat.wrap(normalDrawable);
|
||||
DrawableCompat.setTint(wrapDrawable, color);
|
||||
|
|
Loading…
Reference in a new issue