Skip to content

Commit 1ce0a89

Browse files
committed
fix wallpapers pt 2
1 parent db08dc0 commit 1ce0a89

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

app/src/main/res/values/dashboard_configurations.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<string name="premium_request_arctic_api_key"></string>
7878

7979
<!-- CONFIG: CLOUD WALLPAPERS -->
80-
<string name="wallpaper_json">https://delta-icons.github.io/wallpapers/config.json</string>
80+
<!--<string name="wallpaper_json">https://delta-icons.github.io/wallpapers/config.json</string> -->
8181
<!--<string name="wallpaper_json">assets://wallpapers_offline.json</string>-->
8282
<bool name="enable_wallpaper_download">true</bool>
8383
<bool name="wallpaper_show_name_author">true</bool>

gradlew

100644100755
File mode changed.

library/src/main/java/candybar/lib/activities/CandyBarWallpaperActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public void onClick(View view) {
304304
p.updateItem(position, item);
305305
if (Preferences.get(this).isCropWallpaper()) {
306306
if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
307-
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
307+
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
308308
}
309309
return;
310310
}

library/src/main/java/candybar/lib/helpers/WallpaperHelper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static int getWallpaperType(@NonNull Context context) {
5151
String url = CandyBarApplication.getConfiguration().getConfigHandler().wallpaperJson(context);
5252
if (url.startsWith("assets://") || URLUtil.isValidUrl(url)) {
5353
return CLOUD_WALLPAPERS;
54-
} else if (url.length() > 0) {
54+
} else if (!url.isEmpty()) {
5555
return EXTERNAL_APP;
5656
}
5757
return UNKNOWN;

0 commit comments

Comments
 (0)