瀏覽代碼

Make all non-primary buttons borderless/non-tonal

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 2 年之前
父節點
當前提交
0d98f2993b
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      app/src/main/java/com/owncloud/android/ui/adapter/NotificationListAdapter.java

+ 4 - 3
app/src/main/java/com/owncloud/android/ui/adapter/NotificationListAdapter.java

@@ -23,9 +23,7 @@ package com.owncloud.android.ui.adapter;
 
 import android.content.Context;
 import android.content.Intent;
-import android.content.res.Configuration;
 import android.content.res.Resources;
-import android.graphics.PorterDuff;
 import android.graphics.Typeface;
 import android.graphics.drawable.Drawable;
 import android.net.Uri;
@@ -229,7 +227,10 @@ public class NotificationListAdapter extends RecyclerView.Adapter<NotificationLi
 
             // further actions
             final MaterialButton moreButton = new MaterialButton(notificationsActivity);
-            viewThemeUtils.material.colorMaterialButtonPrimaryTonal(moreButton);
+            moreButton.setBackgroundColor(ResourcesCompat.getColor(resources,
+                                                               android.R.color.transparent,
+                                                               null));
+            viewThemeUtils.material.colorMaterialButtonPrimaryBorderless(moreButton);
 
             moreButton.setAllCaps(false);