This commit is contained in:
parent
4def790dbb
commit
3431519c1a
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
<a href="https://play.google.com/store/apps/details?id=net.crystalyx.setaswallpaper"><img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png" height="80"/></a>
|
<a href="https://play.google.com/store/apps/details?id=net.crystalyx.setaswallpaper"><img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png" height="80"/></a>
|
||||||
|
|
||||||
[![Build Status](https://ci.crystalyx.net/api/badges/Xefir/SetAsWallpaper/status.svg)](https://ci.crystalyx.net/Xefir/SetAsWallpaper)
|
|
||||||
|
|
||||||
Provide a useful shortcut to set an image to your Android's wallpaper launcher and lock screen through the "Share" functionality.
|
Provide a useful shortcut to set an image to your Android's wallpaper launcher and lock screen through the "Share" functionality.
|
||||||
|
|
||||||
## Download
|
## Download
|
||||||
|
@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
namespace 'net.crystalyx.setaswallpaper'
|
namespace 'net.crystalyx.setaswallpaper'
|
||||||
compileSdkVersion 33
|
compileSdk 33
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "net.crystalyx.setaswallpaper"
|
applicationId "net.crystalyx.setaswallpaper"
|
||||||
minSdkVersion 5
|
minSdkVersion 5
|
||||||
|
@ -5,10 +5,9 @@
|
|||||||
<uses-permission android:name="android.permission.SET_WALLPAPER" />
|
<uses-permission android:name="android.permission.SET_WALLPAPER" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="Set as wallpaper"
|
android:label="Set as wallpaper"
|
||||||
android:allowBackup="false"
|
android:theme="@android:style/Theme.NoDisplay">
|
||||||
android:theme="@android:style/Theme.NoDisplay"
|
|
||||||
android:icon="@mipmap/ic_launcher">
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".SetWallpaperActivity"
|
android:name=".SetWallpaperActivity"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
|
@ -20,20 +20,20 @@ public class HttpThreadHandler implements Runnable {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
URLConnection connection = this.url.openConnection();
|
URLConnection connection = url.openConnection();
|
||||||
connection.connect();
|
connection.connect();
|
||||||
InputStream inputStream = connection.getInputStream();
|
InputStream inputStream = connection.getInputStream();
|
||||||
this.bitmap = BitmapFactory.decodeStream(inputStream);
|
bitmap = BitmapFactory.decodeStream(inputStream);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
errorMessage = e.getMessage();
|
errorMessage = e.getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Bitmap gitBitmap() {
|
public Bitmap gitBitmap() {
|
||||||
return this.bitmap;
|
return bitmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getErrorMessage() {
|
public String getErrorMessage() {
|
||||||
return this.errorMessage;
|
return errorMessage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,10 +16,10 @@ allprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task clean(type: Delete) {
|
tasks.register('clean', Delete) {
|
||||||
delete rootProject.buildDir
|
delete rootProject.buildDir
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
options.deprecation = true
|
options.deprecation = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user