소스 검색

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()));
+            }
         }
     }