fix: 🦺 update to sdk 34
apk / build (push) Successful in 11m23s Details

This commit is contained in:
Michel Roux 2024-03-01 18:31:49 +01:00
parent a81053de21
commit 7a064c9759
3 changed files with 6 additions and 7 deletions

View File

@ -2,11 +2,11 @@ apply plugin: 'com.android.application'
android {
namespace 'net.crystalyx.setaswallpaper'
compileSdk 33
compileSdk 34
defaultConfig {
applicationId "net.crystalyx.setaswallpaper"
minSdkVersion 5
targetSdkVersion 33
targetSdkVersion 34
versionCode 11
versionName "3.4"
}

View File

@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.crystalyx.setaswallpaper">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />

View File

@ -11,7 +11,7 @@ import android.os.Bundle;
import android.widget.Toast;
import java.io.*;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
public class SetWallpaperActivity extends Activity {
@ -45,8 +45,8 @@ public class SetWallpaperActivity extends Activity {
URL url;
try {
url = new URL(textUrl);
} catch (MalformedURLException e) {
url = new URI(textUrl).toURL();
} catch (Exception e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
return;
}