瀏覽代碼

Move notification list buttons to m3 with updated outlinedf button handling from commons

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

+ 1 - 1
app/build.gradle

@@ -355,7 +355,7 @@ dependencies {
     gplayImplementation "com.google.firebase:firebase-messaging:23.0.7"
 
     // TODO change back to tag before merging
-    implementation 'com.github.nextcloud.android-common:ui:c120f77a2f'
+    implementation 'com.github.nextcloud.android-common:ui:8c24dfaa7d'
 }
 
 configurations.all {

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

@@ -21,6 +21,7 @@ package com.owncloud.android.ui.adapter;
 
 import android.content.Context;
 import android.content.Intent;
+import android.content.res.ColorStateList;
 import android.content.res.Configuration;
 import android.content.res.Resources;
 import android.graphics.Color;
@@ -225,8 +226,7 @@ public class NotificationListAdapter extends RecyclerView.Adapter<NotificationLi
 
             // further actions
             button = new MaterialButton(notificationsActivity);
-            button.setBackgroundColor(resources.getColor(R.color.grey_200));
-            button.setTextColor(primaryColor);
+            viewThemeUtils.material.colorMaterialButtonPrimaryOutlined(button);
 
             button.setAllCaps(false);