Small typos
apk / build (push) Successful in 1m26s Details

This commit is contained in:
Michel Roux 2023-07-31 23:04:22 +02:00
parent 4def790dbb
commit 3431519c1a
6 changed files with 10 additions and 13 deletions

View File

@ -1,5 +1,5 @@
name: apk name: apk
on: [push] on: [ push ]
jobs: jobs:
build: build:

View File

@ -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

View File

@ -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

View File

@ -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">

View File

@ -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;
} }
} }

View File

@ -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
} }