mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Merge remote-tracking branch 'refs/remotes/commons-app/master'
This commit is contained in:
commit
f3aa259a7c
3 changed files with 4 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue