From 1a7c0861c3ee2533921b18ca74ec3d61a4d60c39 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 8 Oct 2016 17:03:52 +0200 Subject: [PATCH] create an activity for setting a wallpaper --- app/src/main/AndroidManifest.xml | 23 +++++++++++++++---- .../activities/SetWallpaperActivity.kt | 12 ++++++++++ .../res/layout/activity_set_wallpaper.xml | 9 ++++++++ app/src/main/res/values-de/strings.xml | 5 ++-- app/src/main/res/values-es/strings.xml | 5 ++-- app/src/main/res/values-it/strings.xml | 5 ++-- app/src/main/res/values-ja/strings.xml | 5 ++-- app/src/main/res/values-pt-rPT/strings.xml | 5 ++-- app/src/main/res/values-sv/strings.xml | 5 ++-- app/src/main/res/values/strings.xml | 5 ++-- 10 files changed, 60 insertions(+), 19 deletions(-) create mode 100644 app/src/main/kotlin/com/simplemobiletools/gallery/activities/SetWallpaperActivity.kt create mode 100644 app/src/main/res/layout/activity_set_wallpaper.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 31b39e478..b1952f82b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -41,11 +41,6 @@ - - - - - + + + + + + + + + + + + + + + + diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SetWallpaperActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SetWallpaperActivity.kt new file mode 100644 index 000000000..14201f1ac --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SetWallpaperActivity.kt @@ -0,0 +1,12 @@ +package com.simplemobiletools.gallery.activities + +import android.os.Bundle +import com.simplemobiletools.gallery.R + +class SetWallpaperActivity : SimpleActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_set_wallpaper) + } +} diff --git a/app/src/main/res/layout/activity_set_wallpaper.xml b/app/src/main/res/layout/activity_set_wallpaper.xml new file mode 100644 index 000000000..93d6c62b4 --- /dev/null +++ b/app/src/main/res/layout/activity_set_wallpaper.xml @@ -0,0 +1,9 @@ + + + + diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 1034ddc01..2c11a7dcf 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -30,8 +30,6 @@ Absteigend OK Abbrechen - Als Hintergrundbild setzen - Setzen des Hintergrundbildes fehlgeschlagen 1 Ordner gelöscht @@ -56,6 +54,9 @@ Could not overwrite the source file + Wallpaper + Als Hintergrundbild setzen + Setzen des Hintergrundbildes fehlgeschlagen Set as wallpaper with: No app capable of it has been found Wallpaper changed successfully diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 3f4e5c935..f7cfa551f 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -30,8 +30,6 @@ Descendente Aceptar Cancelar - Establecer como fondo de pantalla - Error al establecer fondo de pantalla 1 carpeta eliminada @@ -56,6 +54,9 @@ Could not overwrite the source file + Wallpaper + Establecer como fondo de pantalla + Error al establecer fondo de pantalla Set as wallpaper with: No app capable of it has been found Wallpaper changed successfully diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 20a569ef8..e3b61abee 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -30,8 +30,6 @@ Descending OK Cancel - Set as Wallpaper - Setting as Wallpaper failed 1 cartella eliminata @@ -56,6 +54,9 @@ Could not overwrite the source file + Wallpaper + Set as Wallpaper + Setting as Wallpaper failed Set as wallpaper with: No app capable of it has been found Wallpaper changed successfully diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index a21b63ddc..f3eb86a7a 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -30,8 +30,6 @@ Descending OK Cancel - Set as Wallpaper - Setting as Wallpaper failed 1 フォルダーを削除しました @@ -56,6 +54,9 @@ Could not overwrite the source file + Wallpaper + Set as Wallpaper + Setting as Wallpaper failed Set as wallpaper with: No app capable of it has been found Wallpaper changed successfully diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index a96396dfd..d9f7ab405 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -30,8 +30,6 @@ Descendente OK Cancelar - Definir como fundo de ecrã - Falha ao definir como fundo de ecrã 1 pasta eliminada @@ -56,6 +54,9 @@ Could not overwrite the source file + Wallpaper + Definir como fundo de ecrã + Falha ao definir como fundo de ecrã Set as wallpaper with: No app capable of it has been found Wallpaper changed successfully diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index b74a36ce6..beaec85d8 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -30,8 +30,6 @@ Descending OK Cancel - Set as Wallpaper - Setting as Wallpaper failed 1 mapp borttagen @@ -56,6 +54,9 @@ Could not overwrite the source file + Wallpaper + Set as Wallpaper + Setting as Wallpaper failed Set as wallpaper with: No app capable of it has been found Wallpaper changed successfully diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2da2f6cf8..165306346 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -30,8 +30,6 @@ Descending OK Cancel - Set as Wallpaper - Setting as Wallpaper failed 1 folder deleted @@ -56,6 +54,9 @@ Could not overwrite the source file + Wallpaper + Set as Wallpaper + Setting as Wallpaper failed Set as wallpaper with: No app capable of it has been found Wallpaper changed successfully