Add comments and stuff

This commit is contained in:
Mario Danic 2017-01-29 04:53:37 +01:00 committed by AndyScherzinger
parent eaae09877f
commit d0e810777f
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 4 additions and 7 deletions

View file

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

View file

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