浏览代码

no default for share type avatar generation

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 4 年之前
父节点
当前提交
840d7e5f83
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/com/owncloud/android/utils/ThemeUtils.java

+ 3 - 0
src/main/java/com/owncloud/android/utils/ThemeUtils.java

@@ -874,6 +874,9 @@ public final class ThemeUtils {
         return Configuration.UI_MODE_NIGHT_YES == nightModeFlag;
     }
 
+    @SuppressFBWarnings(
+        value = "SF_SWITCH_NO_DEFAULT",
+        justification = "We only create avatars for a subset of share types")
     public static void createAvatar(ShareType type, ImageView avatar, Context context) {
         switch (type) {
             case GROUP: