Merge remote-tracking branch 'refs/remotes/commons-app/master'

This commit is contained in:
misaochan 2017-05-28 00:51:05 +10:00
commit f3aa259a7c
3 changed files with 4 additions and 14 deletions

View file

@ -270,10 +270,6 @@ public class Utils {
}
public static boolean isDarkTheme(Context context) {
if (PreferenceManager.getDefaultSharedPreferences(context).getBoolean("theme",true)) {
return true;
}else {
return false;
}
return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("theme",true);
}
}

View file

@ -57,12 +57,7 @@ public class ExistingFileAsync extends AsyncTask<Void, Void, Boolean> {
ArrayList<ApiResult> resultNodes = result.getNodes("/api/query/allimages/img");
Timber.d("Result nodes: %s", resultNodes);
boolean fileExists;
if (!resultNodes.isEmpty()) {
fileExists = true;
} else {
fileExists = false;
}
boolean fileExists = !resultNodes.isEmpty();
Timber.d("File already exists in Commons: %s", fileExists);
return fileExists;

View file

@ -6,9 +6,8 @@ compileSdkVersion = android-25
buildToolsVersion = 25.0.1
minSdkVersion = 15
# Needs to remain at API 23 until https://github.com/commons-app/apps-android-commons/issues/457
# is fixed
targetSdkVersion = 23
targetSdkVersion = 25
android.useDeprecatedNdk=true
# Library dependencies