tint drawable according to login color (e.g. black on white background, white on blue background)

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2018-09-12 09:55:06 +02:00
parent dafe42d1c5
commit 7ffc8660bb
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -18,6 +18,7 @@ import android.widget.TextView;
import com.owncloud.android.R;
import com.owncloud.android.features.FeatureItem;
import com.owncloud.android.utils.ThemeUtils;
public class FeatureFragment extends Fragment {
@ -46,7 +47,7 @@ public class FeatureFragment extends Fragment {
ImageView whatsNewImage = view.findViewById(R.id.whatsNewImage);
if (item.shouldShowImage()) {
whatsNewImage.setImageResource(item.getImage());
whatsNewImage.setImageDrawable(ThemeUtils.tintDrawable(item.getImage(), fontColor));
}
TextView whatsNewTitle = view.findViewById(R.id.whatsNewTitle);