This commit is contained in:
parent
4def790dbb
commit
3431519c1a
@ -1,5 +1,5 @@
|
||||
name: apk
|
||||
on: [push]
|
||||
on: [ push ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -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>
|
||||
|
||||
[![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.
|
||||
|
||||
## Download
|
||||
|
@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
namespace 'net.crystalyx.setaswallpaper'
|
||||
compileSdkVersion 33
|
||||
compileSdk 33
|
||||
defaultConfig {
|
||||
applicationId "net.crystalyx.setaswallpaper"
|
||||
minSdkVersion 5
|
||||
|
@ -5,10 +5,9 @@
|
||||
<uses-permission android:name="android.permission.SET_WALLPAPER" />
|
||||
|
||||
<application
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="Set as wallpaper"
|
||||
android:allowBackup="false"
|
||||
android:theme="@android:style/Theme.NoDisplay"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
android:theme="@android:style/Theme.NoDisplay">
|
||||
<activity
|
||||
android:name=".SetWallpaperActivity"
|
||||
android:exported="true">
|
||||
|
@ -20,20 +20,20 @@ public class HttpThreadHandler implements Runnable {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
URLConnection connection = this.url.openConnection();
|
||||
URLConnection connection = url.openConnection();
|
||||
connection.connect();
|
||||
InputStream inputStream = connection.getInputStream();
|
||||
this.bitmap = BitmapFactory.decodeStream(inputStream);
|
||||
bitmap = BitmapFactory.decodeStream(inputStream);
|
||||
} catch (IOException e) {
|
||||
errorMessage = e.getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
public Bitmap gitBitmap() {
|
||||
return this.bitmap;
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
public String getErrorMessage() {
|
||||
return this.errorMessage;
|
||||
return errorMessage;
|
||||
}
|
||||
}
|
||||
|
@ -16,10 +16,10 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
tasks.register('clean', Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
options.deprecation = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user