소스 검색

make button text non-all-caps for consistent styling

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 5 년 전
부모
커밋
3bba95365c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/owncloud/android/ui/adapter/NotificationListAdapter.java

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

@@ -164,13 +164,13 @@ public class NotificationListAdapter extends RecyclerView.Adapter<NotificationLi
 
             if (action.primary) {
                 ThemeUtils.colorPrimaryButton(button, notificationsActivity);
-                button.setTypeface(button.getTypeface(), Typeface.BOLD);
             } else {
                 button.setBackgroundColor(resources.getColor(R.color.grey_200));
                 button.setTextColor(primaryColor);
-                button.setTypeface(button.getTypeface(), Typeface.BOLD);
             }
 
+            button.setAllCaps(false);
+
             button.setText(action.label);
             button.setCornerRadiusResource(R.dimen.button_corner_radius);