diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java
index 0781d1df9..da7af2b70 100644
--- a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java
+++ b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java
@@ -206,7 +206,7 @@ public class ViewPagerActivity extends SimpleActivity
}
} else if (requestCode == SET_WALLPAPER) {
if (resultCode == RESULT_OK) {
- Utils.showToast(getApplicationContext(), R.string.wallpaper_changed_successfully);
+ Utils.showToast(getApplicationContext(), R.string.wallpaper_set_successfully);
}
}
super.onActivityResult(requestCode, resultCode, data);
diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SetWallpaperActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SetWallpaperActivity.kt
index 2e8161a79..0bdeaae65 100644
--- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SetWallpaperActivity.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SetWallpaperActivity.kt
@@ -63,13 +63,16 @@ class SetWallpaperActivity : SimpleActivity(), CropImageView.OnCropImageComplete
override fun onCropImageComplete(view: CropImageView?, result: CropImageView.CropResult) {
if (result.error == null) {
- val bitmap = result.bitmap
- val wantedHeight = wallpaperManager.desiredMinimumHeight
- val ratio = wantedHeight / bitmap.height.toFloat()
- val wantedWidth = (bitmap.width * ratio).toInt()
- wallpaperManager.setBitmap(Bitmap.createScaledBitmap(bitmap, wantedWidth, wantedHeight, false))
- setResult(Activity.RESULT_OK)
- finish()
+ toast(R.string.setting_wallpaper)
+ Thread({
+ val bitmap = result.bitmap
+ val wantedHeight = wallpaperManager.desiredMinimumHeight
+ val ratio = wantedHeight / bitmap.height.toFloat()
+ val wantedWidth = (bitmap.width * ratio).toInt()
+ wallpaperManager.setBitmap(Bitmap.createScaledBitmap(bitmap, wantedWidth, wantedHeight, false))
+ setResult(Activity.RESULT_OK)
+ finish()
+ }).start()
} else {
toast("${getString(R.string.image_editing_failed)}: ${result.error.message}")
}
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index dfb2e64a7..8443e409b 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -19,7 +19,6 @@
Benenne Ordner um
Dateiendung
Datei gelöscht
- Setze Hintergrundbild
Kamera öffnen
Ein unbekannter Fehler ist aufgetreten
Sortieren nach
@@ -58,7 +57,8 @@
Setzen des Hintergrundbildes fehlgeschlagen
Set as wallpaper with:
No app capable of it has been found
- Wallpaper changed successfully
+ Setze Hintergrundbild…
+ Wallpaper set successfully
Über
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 4efab98c2..c2aa937ac 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -19,7 +19,6 @@
Renombrando carpeta
Extensión
Archivo eliminado
- Estableciendo fondo de pantalla
Abrir cámara
Ocurrió un error desconocido
Ordenar por
@@ -58,7 +57,8 @@
Error al establecer fondo de pantalla
Set as wallpaper with:
No app capable of it has been found
- Wallpaper changed successfully
+ Estableciendo fondo de pantalla…
+ Wallpaper set successfully
Acerca de
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
index 38d6784f8..570ae61ff 100644
--- a/app/src/main/res/values-it/strings.xml
+++ b/app/src/main/res/values-it/strings.xml
@@ -19,7 +19,6 @@
Rinominazione cartella
Estensione
File eliminato
- Impostazione sfondo
Apri fotocamera
Riscontrato un errore sconosciuto
Sort by
@@ -58,7 +57,8 @@
Setting as Wallpaper failed
Set as wallpaper with:
No app capable of it has been found
- Wallpaper changed successfully
+ Impostazione sfondo…
+ Wallpaper set successfully
Informazioni
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index e00414b17..19be34e9b 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -19,7 +19,6 @@
フォルダーの名前を変更中
拡張
ファイルを削除しました
- 壁紙の設定
カメラを開く
不明なエラーが発生しました
Sort by
@@ -58,7 +57,8 @@
Setting as Wallpaper failed
Set as wallpaper with:
No app capable of it has been found
- Wallpaper changed successfully
+ 壁紙の設定…
+ Wallpaper set successfully
アプリについて
diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml
index 46647600e..77ffe93c0 100644
--- a/app/src/main/res/values-pt-rPT/strings.xml
+++ b/app/src/main/res/values-pt-rPT/strings.xml
@@ -19,7 +19,6 @@
A renomear pasta
Extensão
Ficheiro eliminado
- A definir como fundo de ecrã
Abrir câmara
Ocorreu um erro desconhecido
Ordenar por
@@ -58,7 +57,8 @@
Falha ao definir como fundo de ecrã
Set as wallpaper with:
No app capable of it has been found
- Wallpaper changed successfully
+ A definir como fundo de ecrã…
+ Wallpaper set successfully
Sobre
diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml
index 589a4c7d1..18db1c9cd 100644
--- a/app/src/main/res/values-sv/strings.xml
+++ b/app/src/main/res/values-sv/strings.xml
@@ -19,7 +19,6 @@
Döper om mappen
Filändelse
Fil borttagen
- Inställningar för bakgrundsbild
Starta kameran
Ett okänt fel har uppstått
Sort by
@@ -58,7 +57,8 @@
Setting as Wallpaper failed
Set as wallpaper with:
No app capable of it has been found
- Wallpaper changed successfully
+ Inställningar för bakgrundsbild…
+ Wallpaper set successfully
Om
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index e0d0c7253..b566fcc53 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -19,7 +19,6 @@
Renaming folder
Extension
File deleted
- Setting wallpaper
Open camera
An unknown error occurred
Sort by
@@ -58,7 +57,8 @@
Setting as Wallpaper failed
Set as wallpaper with:
No app capable of it has been found
- Wallpaper changed successfully
+ Setting wallpaper…
+ Wallpaper set successfully
About