浏览代码

Add comments and stuff

Mario Danic 8 年之前
父节点
当前提交
d0e810777f
共有 2 个文件被更改,包括 4 次插入7 次删除
  1. 0 4
      build.gradle
  2. 4 3
      src/com/owncloud/android/ui/adapter/UserInfoAdapter.java

+ 0 - 4
build.gradle

@@ -23,10 +23,6 @@ apply plugin: 'checkstyle'
 apply plugin: 'pmd'
 apply plugin: 'findbugs'
 
-configurations.all {
-    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
-}
-
 ext {
     supportLibraryVersion = '24.2.1'
 

+ 4 - 3
src/com/owncloud/android/ui/adapter/UserInfoAdapter.java

@@ -129,9 +129,10 @@ public class UserInfoAdapter extends RecyclerView.Adapter<UserInfoAdapter.ViewHo
             stringPairs.add(new StringPair(context.getResources().getString(R.string.user_info_website),
                     userInfo.getWebpage()));
 
-        if (!TextUtils.isEmpty(userInfo.getTwitter()) && context != null) {
-            stringPairs.add(new StringPair(context.getResources().getString(R.string.user_info_twitter),
-                    userInfo.getTwitter()));
+            if (!TextUtils.isEmpty(userInfo.getTwitter())) {
+                stringPairs.add(new StringPair(context.getResources().getString(R.string.user_info_twitter),
+                        userInfo.getTwitter()));
+            }
         }
     }