Skip to content

Commit

Permalink
fix wallpapers pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnnno committed Dec 17, 2024
1 parent db08dc0 commit 1ce0a89
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/values/dashboard_configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<string name="premium_request_arctic_api_key"></string>

<!-- CONFIG: CLOUD WALLPAPERS -->
<string name="wallpaper_json">https://delta-icons.github.io/wallpapers/config.json</string>
<!--<string name="wallpaper_json">https://delta-icons.github.io/wallpapers/config.json</string> -->
<!--<string name="wallpaper_json">assets://wallpapers_offline.json</string>-->
<bool name="enable_wallpaper_download">true</bool>
<bool name="wallpaper_show_name_author">true</bool>
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public void onClick(View view) {
p.updateItem(position, item);
if (Preferences.get(this).isCropWallpaper()) {
if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
}
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static int getWallpaperType(@NonNull Context context) {
String url = CandyBarApplication.getConfiguration().getConfigHandler().wallpaperJson(context);
if (url.startsWith("assets://") || URLUtil.isValidUrl(url)) {
return CLOUD_WALLPAPERS;
} else if (url.length() > 0) {
} else if (!url.isEmpty()) {
return EXTERNAL_APP;
}
return UNKNOWN;
Expand Down

0 comments on commit 1ce0a89

Please sign in to comment.