Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b01b9a87d6 | ||
|
|
c4395b364c | ||
|
|
dc1f8b9802 | ||
|
|
4279dd3be7 | ||
|
|
373f784fb6 | ||
|
|
fe12b2116c | ||
|
|
9f906aa11c | ||
|
|
e20b3c7c49 | ||
|
|
9bab8ad4b6 | ||
|
|
31b976c258 | ||
|
|
660116fb60 | ||
|
|
984e34f425 | ||
|
|
cd06c87263 | ||
|
|
633ae66a80 | ||
|
|
005843ec00 | ||
|
|
4327a94c14 | ||
|
|
fb4ffea292 | ||
|
|
7570ab5405 | ||
|
|
8899c5c743 | ||
|
|
cc69b4b63b | ||
|
|
0f77761380 | ||
|
|
cdf124319f | ||
|
|
63fe703a6d | ||
|
|
84043b06e7 | ||
|
|
bf35b34ce2 | ||
|
|
1cde08bef6 | ||
|
|
e37f7e36db | ||
|
|
e6c6184c9d | ||
|
|
512637b23c | ||
|
|
398e43469f | ||
|
|
1f5cab1d5b | ||
|
|
a185c727a2 | ||
|
|
28b9a74c3d | ||
|
|
2e8d8b8603 | ||
|
|
a0a4bc9e4e | ||
|
|
97c23f9d44 | ||
|
|
bde2f7dd1f | ||
|
|
d005102716 | ||
|
|
953dc65428 | ||
|
|
69f8a09ceb | ||
|
|
bf56df28fa | ||
|
|
3e49bc1836 | ||
|
|
ad069e5e9f | ||
|
|
5adfac4db2 | ||
|
|
1ecfa1566f | ||
|
|
724cb5e9f5 | ||
|
|
69a9f36100 | ||
|
|
450dfed0a3 | ||
|
|
c1404ec522 | ||
|
|
bcff2f338f | ||
|
|
5582a5851f | ||
|
|
1d0794d135 | ||
|
|
0e20f211f2 | ||
|
|
6f4a2bec97 | ||
|
|
85e5e3007b | ||
|
|
4760ab01d5 | ||
|
|
d8fc106a89 | ||
|
|
f4bf2786de | ||
|
|
c2e7e38f97 | ||
|
|
343d358d22 | ||
|
|
c219aa2b30 | ||
|
|
5ba325b93f | ||
|
|
dc1a65f234 | ||
|
|
48a198091e | ||
|
|
81020c9ba0 | ||
|
|
c47f3957bf | ||
|
|
68e94fe284 | ||
|
|
265edf8f63 | ||
|
|
322a10bf0c | ||
|
|
f6688c84ab | ||
|
|
62a5934220 | ||
|
|
64dedae516 | ||
|
|
1ff2539574 | ||
|
|
219a4cdb52 | ||
|
|
322e6907ab | ||
|
|
c39527b3b5 | ||
|
|
068f78f86c | ||
|
|
87ef7ebaf0 | ||
|
|
996208b03d | ||
|
|
ec54bbb8c5 | ||
|
|
b52a47770d | ||
|
|
61e3144de4 | ||
|
|
895af4f865 | ||
|
|
c956f6a3e3 |
No files matched your search
@@ -4,6 +4,6 @@
|
||||
<option name="jvmTarget" value="1.8" />
|
||||
</component>
|
||||
<component name="KotlinJpsPluginSettings">
|
||||
<option name="version" value="1.9.22" />
|
||||
<option name="version" value="2.0.0" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,263 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="direct_access_persist.xml">
|
||||
<option name="deviceSelectionList">
|
||||
<list>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="27" />
|
||||
<option name="brand" value="DOCOMO" />
|
||||
<option name="codename" value="F01L" />
|
||||
<option name="id" value="F01L" />
|
||||
<option name="manufacturer" value="FUJITSU" />
|
||||
<option name="name" value="F-01L" />
|
||||
<option name="screenDensity" value="360" />
|
||||
<option name="screenX" value="720" />
|
||||
<option name="screenY" value="1280" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="28" />
|
||||
<option name="brand" value="DOCOMO" />
|
||||
<option name="codename" value="SH-01L" />
|
||||
<option name="id" value="SH-01L" />
|
||||
<option name="manufacturer" value="SHARP" />
|
||||
<option name="name" value="AQUOS sense2 SH-01L" />
|
||||
<option name="screenDensity" value="480" />
|
||||
<option name="screenX" value="1080" />
|
||||
<option name="screenY" value="2160" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="31" />
|
||||
<option name="brand" value="samsung" />
|
||||
<option name="codename" value="a51" />
|
||||
<option name="id" value="a51" />
|
||||
<option name="manufacturer" value="Samsung" />
|
||||
<option name="name" value="Galaxy A51" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="1080" />
|
||||
<option name="screenY" value="2400" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="34" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="akita" />
|
||||
<option name="id" value="akita" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel 8a" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="1080" />
|
||||
<option name="screenY" value="2400" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="33" />
|
||||
<option name="brand" value="samsung" />
|
||||
<option name="codename" value="b0q" />
|
||||
<option name="id" value="b0q" />
|
||||
<option name="manufacturer" value="Samsung" />
|
||||
<option name="name" value="Galaxy S22 Ultra" />
|
||||
<option name="screenDensity" value="600" />
|
||||
<option name="screenX" value="1440" />
|
||||
<option name="screenY" value="3088" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="32" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="bluejay" />
|
||||
<option name="id" value="bluejay" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel 6a" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="1080" />
|
||||
<option name="screenY" value="2400" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="29" />
|
||||
<option name="brand" value="samsung" />
|
||||
<option name="codename" value="crownqlteue" />
|
||||
<option name="id" value="crownqlteue" />
|
||||
<option name="manufacturer" value="Samsung" />
|
||||
<option name="name" value="Galaxy Note9" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="2220" />
|
||||
<option name="screenY" value="1080" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="34" />
|
||||
<option name="brand" value="samsung" />
|
||||
<option name="codename" value="dm3q" />
|
||||
<option name="id" value="dm3q" />
|
||||
<option name="manufacturer" value="Samsung" />
|
||||
<option name="name" value="Galaxy S23 Ultra" />
|
||||
<option name="screenDensity" value="600" />
|
||||
<option name="screenX" value="1440" />
|
||||
<option name="screenY" value="3088" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="33" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="felix" />
|
||||
<option name="id" value="felix" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel Fold" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="2208" />
|
||||
<option name="screenY" value="1840" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="33" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="felix_camera" />
|
||||
<option name="id" value="felix_camera" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel Fold (Camera-enabled)" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="2208" />
|
||||
<option name="screenY" value="1840" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="33" />
|
||||
<option name="brand" value="samsung" />
|
||||
<option name="codename" value="gts8uwifi" />
|
||||
<option name="id" value="gts8uwifi" />
|
||||
<option name="manufacturer" value="Samsung" />
|
||||
<option name="name" value="Galaxy Tab S8 Ultra" />
|
||||
<option name="screenDensity" value="320" />
|
||||
<option name="screenX" value="1848" />
|
||||
<option name="screenY" value="2960" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="34" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="husky" />
|
||||
<option name="id" value="husky" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel 8 Pro" />
|
||||
<option name="screenDensity" value="390" />
|
||||
<option name="screenX" value="1008" />
|
||||
<option name="screenY" value="2244" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="30" />
|
||||
<option name="brand" value="motorola" />
|
||||
<option name="codename" value="java" />
|
||||
<option name="id" value="java" />
|
||||
<option name="manufacturer" value="Motorola" />
|
||||
<option name="name" value="G20" />
|
||||
<option name="screenDensity" value="280" />
|
||||
<option name="screenX" value="720" />
|
||||
<option name="screenY" value="1600" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="33" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="lynx" />
|
||||
<option name="id" value="lynx" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel 7a" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="1080" />
|
||||
<option name="screenY" value="2400" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="31" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="oriole" />
|
||||
<option name="id" value="oriole" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel 6" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="1080" />
|
||||
<option name="screenY" value="2400" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="33" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="panther" />
|
||||
<option name="id" value="panther" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel 7" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="1080" />
|
||||
<option name="screenY" value="2400" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="31" />
|
||||
<option name="brand" value="samsung" />
|
||||
<option name="codename" value="q2q" />
|
||||
<option name="id" value="q2q" />
|
||||
<option name="manufacturer" value="Samsung" />
|
||||
<option name="name" value="Galaxy Z Fold3" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="1768" />
|
||||
<option name="screenY" value="2208" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="34" />
|
||||
<option name="brand" value="samsung" />
|
||||
<option name="codename" value="q5q" />
|
||||
<option name="id" value="q5q" />
|
||||
<option name="manufacturer" value="Samsung" />
|
||||
<option name="name" value="Galaxy Z Fold5" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="1812" />
|
||||
<option name="screenY" value="2176" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="30" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="r11" />
|
||||
<option name="id" value="r11" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel Watch" />
|
||||
<option name="screenDensity" value="320" />
|
||||
<option name="screenX" value="384" />
|
||||
<option name="screenY" value="384" />
|
||||
<option name="type" value="WEAR_OS" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="30" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="redfin" />
|
||||
<option name="id" value="redfin" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel 5" />
|
||||
<option name="screenDensity" value="440" />
|
||||
<option name="screenX" value="1080" />
|
||||
<option name="screenY" value="2340" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="34" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="shiba" />
|
||||
<option name="id" value="shiba" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel 8" />
|
||||
<option name="screenDensity" value="420" />
|
||||
<option name="screenX" value="1080" />
|
||||
<option name="screenY" value="2400" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="33" />
|
||||
<option name="brand" value="google" />
|
||||
<option name="codename" value="tangorpro" />
|
||||
<option name="id" value="tangorpro" />
|
||||
<option name="manufacturer" value="Google" />
|
||||
<option name="name" value="Pixel Tablet" />
|
||||
<option name="screenDensity" value="320" />
|
||||
<option name="screenX" value="1600" />
|
||||
<option name="screenY" value="2560" />
|
||||
</PersistentDeviceSelectionData>
|
||||
<PersistentDeviceSelectionData>
|
||||
<option name="api" value="29" />
|
||||
<option name="brand" value="samsung" />
|
||||
<option name="codename" value="x1q" />
|
||||
<option name="id" value="x1q" />
|
||||
<option name="manufacturer" value="Samsung" />
|
||||
<option name="name" value="Galaxy S20" />
|
||||
<option name="screenDensity" value="480" />
|
||||
<option name="screenX" value="1440" />
|
||||
<option name="screenY" value="3200" />
|
||||
</PersistentDeviceSelectionData>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
@@ -12,31 +12,30 @@
|
||||
## Features
|
||||
- **Dynamic Wallpaper Changer**: Set your wallpaper to change at specific time intervals
|
||||
- **Supports Various Image Types**: Paperize can handle a wide range of image types
|
||||
- JPEG, PNG, AVIF, WEBP
|
||||
- Including: JPEG, PNG, AVIF, WEBP
|
||||
- **Folder Support**: Organize your wallpapers into folders for auto-updating
|
||||
- **Home and Lock Screen Wallpaper**: Choose to change either your home screen, lock screen, or both
|
||||
- **On-Device Storage**: All your wallpapers and settings are stored on your device
|
||||
<div align="center">
|
||||
<br/>
|
||||
<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/eebec922-70a6-4d54-97d9-ab02cbfb7a36" width="30%" alt="onboarding" />
|
||||
<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/e22c1928-81f5-4b9a-822f-2d3c901bab3f" width="30%" alt="wallpaper" />
|
||||
<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/e106c0dc-23ff-4f4a-adfc-5ebe93219ae0" width="30%" alt="album" />
|
||||
<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/57122f72-78f8-45ed-a9ac-de943061d6a2" width="30%" alt="onboarding" />
|
||||
<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/9f41d715-7b14-4ff2-9c30-87ad3d86d94c" width="30%" alt="wallpaper" />
|
||||
<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/47aa95c3-ef80-4c3c-a8cd-a51ac6824507" width="30%" alt="interval" />
|
||||
<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/4ce1b28d-f4b2-4048-a261-203156222263" width="30%" alt="album" />
|
||||
<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/66b092e5-4af4-4396-b145-63ee506d9257" width="30%" alt="settings" />
|
||||
<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/54ebd285-8da4-4446-83f1-ba0e7ee9476d" width="30%" alt="adding" />
|
||||
<br/>
|
||||
<br/>
|
||||
<div><video controls src="https://github.com/Anthonyy232/Paperize/assets/60626873/086f27da-1648-456a-8581-79e56f4f4881" muted="false"></video></div>
|
||||
<div><video controls src="https://github.com/Anthonyy232/Paperize/assets/60626873/015afb04-e3f3-4641-b8f9-707cfa26d16f" muted="true"></video></div>
|
||||
</div>
|
||||
|
||||
|
||||
## Download
|
||||
|
||||
[<img src="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png" alt="Download app from Google Play" height="80">](https://play.google.com/store/apps/details?id=com.anthonyla.paperize)
|
||||
[<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/1c034414-21cd-4a0a-838d-89fe7bd56910" alt="Download app from GitHub" height="80">](https://github.com/Anthonyy232/Paperize/releases)
|
||||
|
||||
Playstore and F-Droid will be added soon
|
||||
F-Droid will be added soon
|
||||
|
||||
## Localization
|
||||
I want to allow more people to use the app. Currently, translations are provided using machine translation and AI -- which is not optimal.
|
||||
I want to allow more people to use the app. Currently, most of the translations are provided using machine translation and AI -- which is not optimal.
|
||||
|
||||
I would love some help translating the app! Help me out with that [here](https://crowdin.com/project/paperize/invite?h=d8d7a7513d2beb0c96ba9b2a5f85473e2084922)!
|
||||
|
||||
@@ -54,18 +53,19 @@ I would love some help translating the app! Help me out with that [here](https:/
|
||||
- [Landscapist](https://github.com/skydoves/landscapist) - A Compose and KPP image loading library that streamlines Glide, Coil, and Fresco
|
||||
- [Zoomable](https://github.com/usuiat/Zoomable) - A library that provides a zoomable and pannable view, which can be used with any view you want
|
||||
- [AnimatedFABMenu](https://github.com/rajaumair7890/AnimatedFABMenu) - A animated floating action button with Material 3 design
|
||||
- [DocumentFileCompat](https://github.com/ItzNotABug/DocumentFileCompat) - A DocumentFile wrapper that caches the result to improve efficiency
|
||||
|
||||
Thanks to the creators and maintainers of the open-source libraries used in this project.
|
||||
|
||||
|
||||
## Build
|
||||
|
||||
This project is built using Kotlin, Java, and Gradle. Here are the steps to build the project:
|
||||
|
||||
### Prerequisites
|
||||
- Java 8 (1.8)
|
||||
- Android Studio Jellyfish | 2023.3.1 or later
|
||||
- Gradle 8.4.1 or later
|
||||
- Android Studio Jellyfish | 2024.1.1 or later
|
||||
- Android Gradle Plugin 8.5.0 or later
|
||||
- Gradle 8.9
|
||||
- Minimum SDK 26
|
||||
|
||||
### Steps
|
||||
|
||||
@@ -3,8 +3,9 @@ plugins {
|
||||
id("org.jetbrains.kotlin.android")
|
||||
id("com.google.devtools.ksp")
|
||||
id("com.google.dagger.hilt.android")
|
||||
id ("com.mikepenz.aboutlibraries.plugin")
|
||||
id ("org.jetbrains.kotlin.plugin.serialization")
|
||||
id("com.mikepenz.aboutlibraries.plugin")
|
||||
id("org.jetbrains.kotlin.plugin.serialization")
|
||||
id("org.jetbrains.kotlin.plugin.compose")
|
||||
}
|
||||
ksp {
|
||||
arg("room.schemaLocation", "$projectDir/schemas")
|
||||
@@ -18,16 +19,14 @@ android {
|
||||
applicationId = "com.anthonyla.paperize"
|
||||
minSdk = 26
|
||||
targetSdk = 34
|
||||
versionCode = 13
|
||||
versionName = "1.4.0"
|
||||
|
||||
versionCode = 26
|
||||
versionName = "1.6.1"
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
@@ -35,28 +34,46 @@ android {
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
ndk {
|
||||
debugSymbolLevel = "FULL"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
freeCompilerArgs += strongSkippingConfiguration()
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
compose = true
|
||||
viewBinding = true
|
||||
buildConfig = true
|
||||
}
|
||||
|
||||
composeOptions {
|
||||
kotlinCompilerExtensionVersion = "1.5.10"
|
||||
kotlinCompilerExtensionVersion = "1.5.14"
|
||||
}
|
||||
|
||||
androidResources {
|
||||
generateLocaleConfig = true
|
||||
}
|
||||
|
||||
ndkVersion = "26.3.11579264"
|
||||
buildToolsVersion = "34.0.0"
|
||||
dependenciesInfo {
|
||||
includeInApk = true
|
||||
includeInBundle = true
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
excludeFields = arrayOf("generated")
|
||||
}
|
||||
}
|
||||
|
||||
androidComponents {
|
||||
@@ -67,47 +84,46 @@ androidComponents {
|
||||
|
||||
dependencies {
|
||||
implementation("androidx.core:core-ktx:1.13.1")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.0")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.3")
|
||||
implementation("androidx.activity:activity-compose:1.9.0")
|
||||
implementation(platform("androidx.compose:compose-bom:2024.05.00"))
|
||||
implementation("androidx.compose.ui:ui:1.7.0-beta01")
|
||||
implementation("androidx.compose.ui:ui-graphics:1.7.0-beta01")
|
||||
implementation("androidx.compose.ui:ui-tooling-preview:1.7.0-beta01")
|
||||
implementation("androidx.compose.material3:material3:1.3.0-beta01")
|
||||
implementation("androidx.navigation:navigation-compose:2.8.0-beta01")
|
||||
implementation("androidx.compose.material:material:1.7.0-beta01")
|
||||
implementation(platform("androidx.compose:compose-bom:2024.06.00"))
|
||||
implementation("androidx.compose.ui:ui:1.7.0-beta05")
|
||||
implementation("androidx.compose.ui:ui-graphics:1.7.0-beta05")
|
||||
implementation("androidx.compose.ui:ui-tooling-preview:1.7.0-beta05")
|
||||
implementation("androidx.compose.material3:material3:1.3.0-beta04")
|
||||
implementation("androidx.navigation:navigation-compose:2.8.0-beta05")
|
||||
implementation("androidx.compose.material:material:1.7.0-beta05")
|
||||
implementation("androidx.datastore:datastore:1.1.1")
|
||||
implementation("androidx.datastore:datastore-preferences:1.1.1")
|
||||
implementation("androidx.compose.material:material-icons-extended:1.7.0-beta01")
|
||||
implementation("com.google.accompanist:accompanist-adaptive:0.34.0")
|
||||
implementation("androidx.compose.material:material-icons-extended:1.7.0-beta05")
|
||||
implementation("androidx.hilt:hilt-navigation-compose:1.2.0")
|
||||
implementation("androidx.compose.animation:animation:1.7.0-beta01")
|
||||
implementation("androidx.compose.animation:animation:1.7.0-beta05")
|
||||
implementation("androidx.core:core-splashscreen:1.2.0-alpha01")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.0")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.3")
|
||||
implementation("com.google.code.gson:gson:2.11.0")
|
||||
implementation("androidx.documentfile:documentfile:1.1.0-alpha01")
|
||||
implementation("net.engawapg.lib:zoomable:1.7.0-beta02")
|
||||
implementation("com.github.skydoves:landscapist-glide:2.3.3")
|
||||
implementation("com.github.skydoves:landscapist-glide:2.3.6")
|
||||
implementation("androidx.work:work-runtime-ktx:2.10.0-alpha02")
|
||||
implementation("androidx.hilt:hilt-work:1.2.0")
|
||||
implementation("com.airbnb.android:lottie-compose:6.4.0")
|
||||
implementation("com.airbnb.android:lottie-compose:6.4.1")
|
||||
implementation("com.google.accompanist:accompanist-permissions:0.35.0-alpha")
|
||||
implementation("com.mikepenz:aboutlibraries-core:11.2.0")
|
||||
implementation("com.mikepenz:aboutlibraries-compose-m3:11.2.0")
|
||||
implementation("androidx.compose.foundation:foundation:1.7.0-beta01")
|
||||
implementation("com.mikepenz:aboutlibraries-core:11.2.2")
|
||||
implementation("com.mikepenz:aboutlibraries-compose-m3:11.2.2")
|
||||
implementation("androidx.compose.foundation:foundation:1.7.0-beta05")
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.0-beta01")
|
||||
androidTestImplementation("androidx.compose.ui:ui-test-junit4:1.7.0-beta01")
|
||||
debugImplementation("androidx.compose.ui:ui-tooling:1.7.0-beta01")
|
||||
debugImplementation("androidx.compose.ui:ui-test-manifest:1.7.0-beta01")
|
||||
androidTestImplementation("androidx.test.ext:junit:1.2.1")
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
|
||||
androidTestImplementation("androidx.compose.ui:ui-test-junit4:1.7.0-beta05")
|
||||
debugImplementation("androidx.compose.ui:ui-tooling:1.7.0-beta05")
|
||||
debugImplementation("androidx.compose.ui:ui-test-manifest:1.7.0-beta05")
|
||||
implementation("com.google.dagger:hilt-android:2.51.1")
|
||||
ksp("com.google.dagger:hilt-android-compiler:2.51.1")
|
||||
implementation("androidx.room:room-runtime:2.6.1")
|
||||
ksp("androidx.room:room-compiler:2.6.1")
|
||||
implementation("androidx.room:room-ktx:2.6.1")
|
||||
implementation("com.lazygeniouz:dfc:1.0.8")
|
||||
implementation ("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
|
||||
implementation ("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
|
||||
implementation("com.github.android:renderscript-intrinsics-replacement-toolkit:b6363490c3")
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
|
||||
@@ -2,19 +2,13 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
||||
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.service.wallpaper.WallpaperService" />
|
||||
</intent>
|
||||
</queries>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:allowBackup="false"
|
||||
android:name=".App"
|
||||
android:persistent="true"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
@@ -33,11 +27,23 @@
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<service android:name=".feature.wallpaper.wallpaper_service.WallpaperService" android:foregroundServiceType="mediaPlayback"/>
|
||||
<receiver android:name=".feature.wallpaper.wallpaper_service.WallpaperBootReceiver"
|
||||
android:exported="true">
|
||||
<receiver android:name=".feature.wallpaper.wallpaper_alarmmanager.WallpaperReceiver" />
|
||||
<service android:name=".feature.wallpaper.wallpaper_service.WallpaperService1"/>
|
||||
<service android:name=".feature.wallpaper.wallpaper_service.WallpaperService2"/>
|
||||
<service
|
||||
android:name=".feature.wallpaper.wallpaper_tile.ChangeWallpaperTileService"
|
||||
android:exported="true"
|
||||
android:label="@string/change_wallpaper"
|
||||
android:icon="@drawable/notification_icon"
|
||||
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
||||
<intent-filter> <action android:name="android.service.quicksettings.action.QS_TILE" /> </intent-filter>
|
||||
</service>
|
||||
<receiver android:name=".feature.wallpaper.wallpaper_alarmmanager.WallpaperBootAndChangeReceiver"
|
||||
android:exported="false">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
||||
<action android:name="android.intent.action.TIME_SET" />
|
||||
<action android:name="android.intent.action.TIMEZONE_CHANGED" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
<provider
|
||||
|
||||
@@ -24,4 +24,6 @@ object SettingsConstants {
|
||||
const val SCHEDULE_SEPARATELY = "schedule_separately"
|
||||
const val BLUR = "blur"
|
||||
const val BLUR_PERCENTAGE = "blur_percentage"
|
||||
const val NEXT_SET_TIME_1 = "next_set_time_1"
|
||||
const val NEXT_SET_TIME_2 = "next_set_time_2"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
package com.anthonyla.paperize.core
|
||||
import android.app.WallpaperManager
|
||||
import android.content.Context
|
||||
import android.graphics.Bitmap
|
||||
import android.graphics.BitmapFactory
|
||||
@@ -10,28 +11,41 @@ import android.net.Uri
|
||||
import android.util.Log
|
||||
import android.util.Size
|
||||
import androidx.compose.ui.util.fastRoundToInt
|
||||
import androidx.core.net.toUri
|
||||
import androidx.documentfile.provider.DocumentFile
|
||||
import androidx.exifinterface.media.ExifInterface
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Folder
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Wallpaper
|
||||
import com.google.android.renderscript.Toolkit
|
||||
import com.lazygeniouz.dfc.file.DocumentFileCompat
|
||||
|
||||
enum class Type { HOME, LOCK, BOTH, REFRESH }
|
||||
|
||||
/**
|
||||
* Get the dimensions of the image from the uri
|
||||
*/
|
||||
fun Uri.getImageDimensions(context: Context): Size? {
|
||||
context.contentResolver.openInputStream(this)?.use { inputStream ->
|
||||
val exif = ExifInterface(inputStream)
|
||||
var width = exif.getAttributeInt(ExifInterface.TAG_IMAGE_WIDTH, 0)
|
||||
var height = exif.getAttributeInt(ExifInterface.TAG_IMAGE_LENGTH, 0)
|
||||
if (width == 0 || height == 0) {
|
||||
val options = BitmapFactory.Options().apply {
|
||||
inJustDecodeBounds = true
|
||||
try {
|
||||
context.contentResolver.openInputStream(this)?.use { inputStream ->
|
||||
val exif = ExifInterface(inputStream)
|
||||
var width = exif.getAttributeInt(ExifInterface.TAG_IMAGE_WIDTH, 0)
|
||||
var height = exif.getAttributeInt(ExifInterface.TAG_IMAGE_LENGTH, 0)
|
||||
if (width == 0 || height == 0) {
|
||||
val options = BitmapFactory.Options().apply {
|
||||
inJustDecodeBounds = true
|
||||
}
|
||||
BitmapFactory.decodeStream(
|
||||
context.contentResolver.openInputStream(this),
|
||||
null,
|
||||
options
|
||||
)
|
||||
width = options.outWidth
|
||||
height = options.outHeight
|
||||
}
|
||||
BitmapFactory.decodeStream(context.contentResolver.openInputStream(this), null, options)
|
||||
width = options.outWidth
|
||||
height = options.outHeight
|
||||
return Size(width, height)
|
||||
}
|
||||
return Size(width, height)
|
||||
}
|
||||
return null
|
||||
return null
|
||||
} catch (e: Exception) { return null }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -132,3 +146,118 @@ fun blurBitmap(source: Bitmap, percent: Int): Bitmap {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve wallpaper URIs from a folder directory URI
|
||||
*/
|
||||
fun getWallpaperFromFolder(folderUri: String, context: Context): List<String> {
|
||||
try {
|
||||
val folderDocumentFile = DocumentFileCompat.fromTreeUri(context, folderUri.toUri())
|
||||
return listFilesRecursive(folderDocumentFile, context)
|
||||
} catch (e: Exception) {
|
||||
val folderDocumentFile = DocumentFile.fromTreeUri(context, folderUri.toUri())
|
||||
return listFilesRecursive(folderDocumentFile, context)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to recursively list files in a directory for DocumentFileCompat
|
||||
*/
|
||||
fun listFilesRecursive(parent: DocumentFileCompat?, context: Context): List<String> {
|
||||
val files = mutableListOf<String>()
|
||||
parent?.listFiles()?.forEach { file ->
|
||||
if (file.isDirectory()) {
|
||||
files.addAll(listFilesRecursive(file, context))
|
||||
} else {
|
||||
val allowedExtensions = listOf("jpg", "jpeg", "png", "heif", "webp", "JPG", "JPEG", "PNG", "HEIF", "WEBP")
|
||||
if (file.extension in allowedExtensions) {
|
||||
files.add(file.uri.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
return files
|
||||
}
|
||||
/** Overloaded version of the function for DocumentFile */
|
||||
fun listFilesRecursive(parent: DocumentFile?, context: Context): List<String> {
|
||||
val files = mutableListOf<String>()
|
||||
parent?.listFiles()?.forEach { file ->
|
||||
if (file.isDirectory) {
|
||||
files.addAll(listFilesRecursive(file, context))
|
||||
} else {
|
||||
val allowedExtensions = listOf("jpg", "jpeg", "png", "heif", "webp", "JPG", "JPEG", "PNG", "HEIF", "WEBP")
|
||||
if ((file.name?.substringAfterLast(".") ?: "") in allowedExtensions) {
|
||||
files.add(file.uri.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
return files
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to find the first valid URI from a list of wallpapers
|
||||
* It will search through all wallpapers of an album first, and then all wallpapers of every folder of an album
|
||||
*/
|
||||
fun findFirstValidUri(context: Context, wallpapers: List<Wallpaper>, folders: List<Folder>): String? {
|
||||
wallpapers.forEach { wallpaper ->
|
||||
try {
|
||||
val file = DocumentFileCompat.fromSingleUri(context, wallpaper.wallpaperUri.toUri())
|
||||
if (file?.exists() == true) {
|
||||
return wallpaper.wallpaperUri
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
val file = DocumentFile.fromSingleUri(context, wallpaper.wallpaperUri.toUri())
|
||||
if (file?.exists() == true) {
|
||||
return wallpaper.wallpaperUri
|
||||
}
|
||||
}
|
||||
}
|
||||
folders.forEach { folder ->
|
||||
folder.wallpapers.forEach { wallpaper ->
|
||||
try {
|
||||
val file = DocumentFileCompat.fromSingleUri(context, wallpaper.toUri())
|
||||
if (file?.exists() == true) {
|
||||
return wallpaper
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
val file = DocumentFile.fromSingleUri(context, wallpaper.toUri())
|
||||
if (file?.exists() == true) {
|
||||
return wallpaper
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the folder name from the folder URI
|
||||
*/
|
||||
fun getFolderNameFromUri(folderUri: String, context: Context): String? {
|
||||
return try {
|
||||
DocumentFileCompat.fromTreeUri(context, folderUri.toUri())?.name
|
||||
} catch (e: Exception) {
|
||||
DocumentFile.fromTreeUri(context, folderUri.toUri())?.name
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a URI is valid
|
||||
*/
|
||||
fun isValidUri(context: Context, uriString: String?): Boolean {
|
||||
val uri = uriString?.toUri()
|
||||
return try {
|
||||
uri?.let {
|
||||
val inputStream = context.contentResolver.openInputStream(it)
|
||||
inputStream?.close()
|
||||
}
|
||||
true
|
||||
} catch (e: Exception) { false }
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if device uses a live wallpaper
|
||||
*/
|
||||
fun isLiveWallpaperSet(context: Context): Boolean {
|
||||
val wallpaperManager = WallpaperManager.getInstance(context)
|
||||
return wallpaperManager.wallpaperInfo != null
|
||||
}
|
||||
|
||||
@@ -3,12 +3,14 @@ package com.anthonyla.paperize.feature.wallpaper.presentation
|
||||
import android.Manifest
|
||||
import android.animation.ObjectAnimator
|
||||
import android.app.Activity
|
||||
import android.app.ActivityManager
|
||||
import android.app.AlarmManager
|
||||
import android.app.PendingIntent
|
||||
import android.content.Intent
|
||||
import android.content.pm.PackageManager
|
||||
import android.graphics.Color
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.provider.Settings
|
||||
import android.view.View
|
||||
import android.view.animation.AccelerateInterpolator
|
||||
import androidx.activity.ComponentActivity
|
||||
@@ -29,6 +31,7 @@ import androidx.lifecycle.compose.LifecycleEventEffect
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import com.anthonyla.paperize.core.SettingsConstants
|
||||
import com.anthonyla.paperize.core.Type
|
||||
import com.anthonyla.paperize.data.settings.SettingsDataStore
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.album.AlbumsEvent
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.album.AlbumsViewModel
|
||||
@@ -37,12 +40,12 @@ import com.anthonyla.paperize.feature.wallpaper.presentation.settings_screen.Set
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.themes.PaperizeTheme
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.WallpaperEvent
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.WallpaperScreenViewModel
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_service.WallpaperService
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager.WallpaperAlarmItem
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager.WallpaperReceiver
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager.WallpaperScheduler
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import kotlinx.coroutines.withContext
|
||||
import javax.inject.Inject
|
||||
|
||||
|
||||
@@ -78,11 +81,11 @@ class MainActivity : ComponentActivity() {
|
||||
splashScreen.setKeepOnScreenCondition { settingsViewModel.setKeepOnScreenCondition }
|
||||
|
||||
setContent {
|
||||
val scheduler = WallpaperScheduler(context)
|
||||
val settingsState = settingsViewModel.state.collectAsStateWithLifecycle()
|
||||
val selectedState = wallpaperScreenViewModel.state.collectAsStateWithLifecycle()
|
||||
val isFirstLaunch = runBlocking { settingsDataStoreImpl.getBoolean(SettingsConstants.FIRST_LAUNCH) } ?: true
|
||||
|
||||
if (isFirstLaunch) {
|
||||
scheduler.cancelWallpaperAlarm()
|
||||
wallpaperScreenViewModel.onEvent(WallpaperEvent.Reset)
|
||||
settingsViewModel.onEvent(SettingsEvent.Reset)
|
||||
albumsViewModel.onEvent(AlbumsEvent.Reset)
|
||||
@@ -92,40 +95,44 @@ class MainActivity : ComponentActivity() {
|
||||
contentResolver.releasePersistableUriPermission(permission.uri, Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
|
||||
}
|
||||
}
|
||||
|
||||
LifecycleEventEffect(Lifecycle.Event.ON_RESUME) {
|
||||
LifecycleEventEffect(Lifecycle.Event.ON_CREATE) {
|
||||
lifecycleScope.launch {
|
||||
val serviceIntent = Intent(this@MainActivity, WallpaperService::class.java)
|
||||
val isAlreadyRunning = withContext(Dispatchers.IO) {
|
||||
val activityManager = getSystemService(ACTIVITY_SERVICE) as? ActivityManager
|
||||
activityManager?.getRunningServices(Integer.MAX_VALUE)?.any {
|
||||
it.service == serviceIntent.component
|
||||
} ?: false
|
||||
}
|
||||
if (selectedState.value.selectedAlbum != null && settingsState.value.enableChanger) {
|
||||
if (!isAlreadyRunning) {
|
||||
settingsViewModel.onEvent(SettingsEvent.RefreshNextSetTime)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.START.toString()
|
||||
putExtra("timeInMinutes1", settingsState.value.homeInterval)
|
||||
putExtra("timeInMinutes2", settingsState.value.lockInterval)
|
||||
putExtra("scheduleSeparately", settingsState.value.scheduleSeparately)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
if (settingsDataStoreImpl.getBoolean(SettingsConstants.ENABLE_CHANGER) == true) {
|
||||
val shouldScheduleSeparately = settingsDataStoreImpl.getBoolean(SettingsConstants.SCHEDULE_SEPARATELY) ?: false
|
||||
val shouldScheduleAlarm = if (shouldScheduleSeparately) {
|
||||
!(isPendingIntentSet(Type.HOME.ordinal) && isPendingIntentSet(Type.LOCK.ordinal))
|
||||
} else {
|
||||
!isPendingIntentSet(Type.BOTH.ordinal)
|
||||
}
|
||||
} else {
|
||||
if (isAlreadyRunning) {
|
||||
Intent(context, WallpaperService::class.java).also {
|
||||
it.action = WallpaperService.Actions.STOP.toString()
|
||||
context.startForegroundService(it)
|
||||
}
|
||||
if (shouldScheduleAlarm) {
|
||||
scheduler.scheduleWallpaperAlarm(
|
||||
WallpaperAlarmItem(
|
||||
timeInMinutes1 = settingsDataStoreImpl.getInt(SettingsConstants.HOME_WALLPAPER_CHANGE_INTERVAL) ?: SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT,
|
||||
timeInMinutes2 = settingsDataStoreImpl.getInt(SettingsConstants.LOCK_WALLPAPER_CHANGE_INTERVAL) ?: SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT,
|
||||
scheduleSeparately = shouldScheduleSeparately
|
||||
), null, true, true
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PaperizeTheme(settingsState.value.darkMode, settingsState.value.dynamicTheming) {
|
||||
Surface(tonalElevation = 5.dp) {
|
||||
PaperizeApp(isFirstLaunch, topInset)
|
||||
PaperizeApp(isFirstLaunch, scheduler, topInset)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
val alarmManager = ContextCompat.getSystemService(context, AlarmManager::class.java)
|
||||
if (alarmManager?.canScheduleExactAlarms() == false) {
|
||||
Intent().also { intent ->
|
||||
intent.action = Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM
|
||||
context.startActivity(intent)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -136,4 +143,15 @@ class MainActivity : ComponentActivity() {
|
||||
super.onAttachedToWindow()
|
||||
topInset = window.decorView.rootWindowInsets.stableInsetTop.dp
|
||||
}
|
||||
|
||||
private fun isPendingIntentSet(requestCode: Int): Boolean {
|
||||
val intent = Intent(context.applicationContext, WallpaperReceiver::class.java)
|
||||
val pendingIntent = PendingIntent.getBroadcast(
|
||||
context.applicationContext,
|
||||
requestCode,
|
||||
intent,
|
||||
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_NO_CREATE
|
||||
)
|
||||
return pendingIntent != null
|
||||
}
|
||||
}
|
||||
@@ -17,11 +17,9 @@ import androidx.compose.ui.unit.Dp
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.hilt.navigation.compose.hiltViewModel
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import androidx.navigation.NavType
|
||||
import androidx.navigation.compose.NavHost
|
||||
import androidx.navigation.compose.composable
|
||||
import androidx.navigation.compose.rememberNavController
|
||||
import androidx.navigation.navArgument
|
||||
import androidx.navigation.toRoute
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.SelectedAlbum
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Wallpaper
|
||||
@@ -45,10 +43,10 @@ import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.Wa
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_view_screen.WallpaperViewScreen
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.AddEdit
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.AlbumView
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.FolderView
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.Home
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.Licenses
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.NavConstants.INITIAL_OFFSET
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.NavScreens
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.Notification
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.Privacy
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.Settings
|
||||
@@ -56,20 +54,18 @@ import com.anthonyla.paperize.feature.wallpaper.util.navigation.Startup
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.WallpaperView
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.sharedXTransitionIn
|
||||
import com.anthonyla.paperize.feature.wallpaper.util.navigation.sharedXTransitionOut
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_service.WallpaperService
|
||||
import com.google.gson.Gson
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager.WallpaperAlarmItem
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager.WallpaperScheduler
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import kotlinx.coroutines.withContext
|
||||
import java.net.URLEncoder
|
||||
import java.nio.charset.StandardCharsets
|
||||
|
||||
@Composable
|
||||
fun PaperizeApp(
|
||||
firstLaunch: Boolean,
|
||||
scheduler : WallpaperScheduler,
|
||||
topInsets: Dp,
|
||||
albumsViewModel: AlbumsViewModel = hiltViewModel(),
|
||||
settingsViewModel: SettingsViewModel = hiltViewModel(),
|
||||
@@ -92,13 +88,13 @@ fun PaperizeApp(
|
||||
albumsViewModel.onEvent(AlbumsEvent.InitializeAlbum(albumWithWallpapers))
|
||||
} else if (albumWithWallpapers.wallpapers.isEmpty() && albumWithWallpapers.folders.isEmpty() && albumWithWallpapers.album.initialized) {
|
||||
if (navController.currentDestination?.route == Home::class.simpleName) {
|
||||
navController.popBackStack<Home>(inclusive = false)
|
||||
try {
|
||||
navController.popBackStack<Home>(inclusive = false)
|
||||
} catch (e: Exception) {
|
||||
navController.navigate(Home)
|
||||
}
|
||||
}
|
||||
albumsViewModel.onEvent(
|
||||
AlbumsEvent.DeleteAlbumWithWallpapers(
|
||||
albumWithWallpapers
|
||||
)
|
||||
)
|
||||
albumsViewModel.onEvent(AlbumsEvent.DeleteAlbumWithWallpapers(albumWithWallpapers))
|
||||
}
|
||||
}
|
||||
selectedState.value.selectedAlbum?.let { selectedAlbum ->
|
||||
@@ -115,13 +111,21 @@ fun PaperizeApp(
|
||||
)
|
||||
}
|
||||
}
|
||||
val wallpaperUriSet = wallpapers.map { it.wallpaperUri }.toSet()
|
||||
val wallpapersUri = wallpapers.map { it.wallpaperUri }.toSet()
|
||||
val newSelectedAlbum = SelectedAlbum(
|
||||
album = foundAlbum.album.copy(
|
||||
homeWallpapersInQueue = selectedAlbum.album.homeWallpapersInQueue.filter { it in wallpaperUriSet },
|
||||
lockWallpapersInQueue = selectedAlbum.album.lockWallpapersInQueue.filter { it in wallpaperUriSet },
|
||||
currentHomeWallpaper = selectedAlbum.album.currentHomeWallpaper,
|
||||
currentLockWallpaper = selectedAlbum.album.currentLockWallpaper,
|
||||
homeWallpapersInQueue = if (selectedAlbum.album.homeWallpapersInQueue.firstOrNull() in wallpapersUri) {
|
||||
val firstElement = selectedAlbum.album.homeWallpapersInQueue.first()
|
||||
val modifiedWallpapersUri = wallpapersUri.filter { it != firstElement }
|
||||
listOf(firstElement) + modifiedWallpapersUri.shuffled()
|
||||
} else { wallpapersUri.shuffled() },
|
||||
lockWallpapersInQueue = if (selectedAlbum.album.lockWallpapersInQueue.firstOrNull() in wallpapersUri) {
|
||||
val firstElement = selectedAlbum.album.lockWallpapersInQueue.first()
|
||||
val modifiedWallpapersUri = wallpapersUri.filter { it != firstElement }
|
||||
listOf(firstElement) + modifiedWallpapersUri.shuffled()
|
||||
} else { wallpapersUri.shuffled() },
|
||||
currentHomeWallpaper = if (selectedAlbum.album.currentHomeWallpaper in wallpapersUri) selectedAlbum.album.currentHomeWallpaper else selectedAlbum.album.homeWallpapersInQueue.firstOrNull { it in wallpapersUri },
|
||||
currentLockWallpaper = if (selectedAlbum.album.currentLockWallpaper in wallpapersUri) selectedAlbum.album.currentLockWallpaper else selectedAlbum.album.lockWallpapersInQueue.firstOrNull { it in wallpapersUri }
|
||||
),
|
||||
wallpapers = wallpapers
|
||||
)
|
||||
@@ -134,10 +138,7 @@ fun PaperizeApp(
|
||||
)
|
||||
} ?: run {
|
||||
wallpaperScreenViewModel.onEvent(WallpaperEvent.Reset)
|
||||
Intent(context, WallpaperService::class.java).also {
|
||||
it.action = WallpaperService.Actions.STOP.toString()
|
||||
context.startForegroundService(it)
|
||||
}
|
||||
scheduler.cancelWallpaperAlarm()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -175,9 +176,6 @@ fun PaperizeApp(
|
||||
onAgree = {
|
||||
if (ContextCompat.checkSelfPermission(context, Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED) {
|
||||
settingsViewModel.onEvent(SettingsEvent.SetFirstLaunch)
|
||||
navController.navigate(Home) {
|
||||
popUpTo<Startup> { inclusive = true }
|
||||
}
|
||||
}
|
||||
else { navController.navigate(Notification) }
|
||||
}
|
||||
@@ -207,12 +205,7 @@ fun PaperizeApp(
|
||||
}
|
||||
) {
|
||||
NotificationScreen(
|
||||
onAgree = {
|
||||
settingsViewModel.onEvent(SettingsEvent.SetFirstLaunch)
|
||||
navController.navigate(Home) {
|
||||
popUpTo<Notification> { inclusive = true }
|
||||
}
|
||||
}
|
||||
onAgree = { settingsViewModel.onEvent(SettingsEvent.SetFirstLaunch) }
|
||||
)
|
||||
}
|
||||
// Navigate to the home screen to view all albums and wallpapers
|
||||
@@ -251,13 +244,13 @@ fun PaperizeApp(
|
||||
if (settingsState.value.enableChanger) {
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.START.toString()
|
||||
putExtra("timeInMinutes1", timeInMinutes)
|
||||
putExtra("timeInMinutes2", settingsState.value.lockInterval)
|
||||
putExtra("scheduleSeparately", settingsState.value.scheduleSeparately)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
val alarmItem = WallpaperAlarmItem(
|
||||
timeInMinutes1 = timeInMinutes,
|
||||
timeInMinutes2 = settingsState.value.lockInterval,
|
||||
scheduleSeparately = settingsState.value.scheduleSeparately
|
||||
)
|
||||
alarmItem.let{scheduler.scheduleWallpaperAlarm(it, null, true, true)}
|
||||
scheduler.scheduleRefresh()
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -266,13 +259,13 @@ fun PaperizeApp(
|
||||
if (settingsState.value.enableChanger) {
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.START.toString()
|
||||
putExtra("timeInMinutes1", settingsState.value.homeInterval)
|
||||
putExtra("timeInMinutes2", timeInMinutes)
|
||||
putExtra("scheduleSeparately", settingsState.value.scheduleSeparately)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
val alarmItem = WallpaperAlarmItem(
|
||||
timeInMinutes1 = settingsState.value.homeInterval,
|
||||
timeInMinutes2 = timeInMinutes,
|
||||
scheduleSeparately = settingsState.value.scheduleSeparately
|
||||
)
|
||||
alarmItem.let{scheduler.scheduleWallpaperAlarm(it, null, true, true)}
|
||||
scheduler.scheduleRefresh()
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -282,13 +275,13 @@ fun PaperizeApp(
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(3000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.REQUEUE.toString()
|
||||
putExtra("timeInMinutes1", timeInMinutes)
|
||||
putExtra("timeInMinutes2", settingsState.value.lockInterval)
|
||||
putExtra("scheduleSeparately", settingsState.value.scheduleSeparately)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
val alarmItem = WallpaperAlarmItem(
|
||||
timeInMinutes1 = timeInMinutes,
|
||||
timeInMinutes2 = settingsState.value.lockInterval,
|
||||
scheduleSeparately = settingsState.value.scheduleSeparately
|
||||
)
|
||||
alarmItem.let{scheduler.updateWallpaperAlarm(it)}
|
||||
scheduler.scheduleRefresh()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -299,13 +292,13 @@ fun PaperizeApp(
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(3000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.REQUEUE.toString()
|
||||
putExtra("timeInMinutes1", settingsState.value.homeInterval)
|
||||
putExtra("timeInMinutes2", timeInMinutes)
|
||||
putExtra("scheduleSeparately", settingsState.value.scheduleSeparately)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
val alarmItem = WallpaperAlarmItem(
|
||||
timeInMinutes1 = settingsState.value.homeInterval,
|
||||
timeInMinutes2 = timeInMinutes,
|
||||
scheduleSeparately = settingsState.value.scheduleSeparately
|
||||
)
|
||||
alarmItem.let{scheduler.updateWallpaperAlarm(it)}
|
||||
scheduler.scheduleRefresh()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,10 +307,7 @@ fun PaperizeApp(
|
||||
if (selectedState.value.selectedAlbum != null) {
|
||||
wallpaperScreenViewModel.onEvent(WallpaperEvent.Reset)
|
||||
settingsViewModel.onEvent(SettingsEvent.SetChangerToggle(false))
|
||||
Intent(context, WallpaperService::class.java).also {
|
||||
it.action = WallpaperService.Actions.STOP.toString()
|
||||
context.startForegroundService(it)
|
||||
}
|
||||
scheduler.cancelWallpaperAlarm()
|
||||
}
|
||||
},
|
||||
animate = settingsState.value.animate,
|
||||
@@ -334,44 +324,57 @@ fun PaperizeApp(
|
||||
scheduleSeparately = settingsState.value.scheduleSeparately,
|
||||
blur = settingsState.value.blur,
|
||||
blurPercentage = settingsState.value.blurPercentage,
|
||||
firstSet = settingsState.value.firstSet,
|
||||
onToggleChanger = { enableWallpaperChanger ->
|
||||
settingsViewModel.onEvent(SettingsEvent.SetChangerToggle(enableWallpaperChanger))
|
||||
if (selectedState.value.selectedAlbum!= null && enableWallpaperChanger && (settingsState.value.setHomeWallpaper || settingsState.value.setLockWallpaper)) {
|
||||
if (selectedState.value.selectedAlbum != null && enableWallpaperChanger && (settingsState.value.setHomeWallpaper || settingsState.value.setLockWallpaper)) {
|
||||
wallpaperScreenViewModel.onEvent(
|
||||
WallpaperEvent.UpdateSelectedAlbum(
|
||||
selectedState.value.selectedAlbum!!.copy(
|
||||
album = selectedState.value.selectedAlbum!!.album.copy(
|
||||
currentHomeWallpaper = if (settingsState.value.setHomeWallpaper) selectedState.value.selectedAlbum!!.album.homeWallpapersInQueue.firstOrNull() else null,
|
||||
currentLockWallpaper = if (settingsState.value.scheduleSeparately && settingsState.value.setLockWallpaper) selectedState.value.selectedAlbum!!.album.lockWallpapersInQueue.firstOrNull() else if (settingsState.value.setLockWallpaper) selectedState.value.selectedAlbum!!.album.homeWallpapersInQueue.firstOrNull() else null
|
||||
)
|
||||
),
|
||||
null,
|
||||
settingsState.value.scheduleSeparately,
|
||||
settingsState.value.setHomeWallpaper,
|
||||
settingsState.value.setLockWallpaper
|
||||
)
|
||||
)
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.START.toString()
|
||||
putExtra("timeInMinutes1", settingsState.value.homeInterval)
|
||||
putExtra("timeInMinutes2", settingsState.value.lockInterval)
|
||||
putExtra("scheduleSeparately", settingsState.value.scheduleSeparately)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
}
|
||||
}
|
||||
else {
|
||||
Intent(context, WallpaperService::class.java).also {
|
||||
it.action = WallpaperService.Actions.STOP.toString()
|
||||
context.startForegroundService(it)
|
||||
val alarmItem = WallpaperAlarmItem(
|
||||
timeInMinutes1 = settingsState.value.homeInterval,
|
||||
timeInMinutes2 = settingsState.value.lockInterval,
|
||||
scheduleSeparately = settingsState.value.scheduleSeparately
|
||||
)
|
||||
alarmItem.let{scheduler.scheduleWallpaperAlarm(it, null, true, true)}
|
||||
scheduler.scheduleRefresh()
|
||||
}
|
||||
}
|
||||
else { scheduler.cancelWallpaperAlarm() }
|
||||
},
|
||||
onSelectAlbum = {album ->
|
||||
settingsViewModel.onEvent(SettingsEvent.SetChangerToggle(true))
|
||||
wallpaperScreenViewModel.onEvent(WallpaperEvent.UpdateSelectedAlbum(null, album, settingsState.value.scheduleSeparately))
|
||||
if (settingsState.value.firstSet) {
|
||||
settingsViewModel.onEvent(SettingsEvent.SetFirstSet)
|
||||
}
|
||||
wallpaperScreenViewModel.onEvent(
|
||||
WallpaperEvent.UpdateSelectedAlbum(
|
||||
null,
|
||||
album,
|
||||
settingsState.value.scheduleSeparately,
|
||||
settingsState.value.setHomeWallpaper,
|
||||
settingsState.value.setLockWallpaper
|
||||
)
|
||||
)
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.START.toString()
|
||||
putExtra("timeInMinutes1", settingsState.value.homeInterval)
|
||||
putExtra("timeInMinutes2", settingsState.value.lockInterval)
|
||||
putExtra("scheduleSeparately", settingsState.value.scheduleSeparately)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
val alarmItem = WallpaperAlarmItem(
|
||||
timeInMinutes1 = settingsState.value.homeInterval,
|
||||
timeInMinutes2 = settingsState.value.lockInterval,
|
||||
scheduleSeparately = settingsState.value.scheduleSeparately
|
||||
)
|
||||
alarmItem.let{scheduler.scheduleWallpaperAlarm(it, null, true, true)}
|
||||
scheduler.scheduleRefresh()
|
||||
}
|
||||
},
|
||||
onDarkenPercentage = {
|
||||
@@ -380,10 +383,7 @@ fun PaperizeApp(
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.UPDATE.toString()
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
scheduler.updateWallpaper(settingsState.value.scheduleSeparately)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -393,10 +393,7 @@ fun PaperizeApp(
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.UPDATE.toString()
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
scheduler.updateWallpaper(settingsState.value.scheduleSeparately)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -408,10 +405,7 @@ fun PaperizeApp(
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.UPDATE.toString()
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
scheduler.updateWallpaper(settingsState.value.scheduleSeparately)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -423,33 +417,27 @@ fun PaperizeApp(
|
||||
selectedState.value.selectedAlbum?.let {
|
||||
wallpaperScreenViewModel.onEvent(WallpaperEvent.Reset)
|
||||
}
|
||||
Intent(context, WallpaperService::class.java).also {
|
||||
it.action = WallpaperService.Actions.STOP.toString()
|
||||
context.startForegroundService(it)
|
||||
}
|
||||
scheduler.cancelWallpaperAlarm()
|
||||
}
|
||||
else if (selectedState.value.selectedAlbum!= null && (enableHome && !settingsState.value.setLockWallpaper) || (!enableHome && settingsState.value.setLockWallpaper)) {
|
||||
settingsViewModel.onEvent(SettingsEvent.SetScheduleSeparately(false))
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.START.toString()
|
||||
putExtra("timeInMinutes1", settingsState.value.homeInterval)
|
||||
putExtra("timeInMinutes2", settingsState.value.lockInterval)
|
||||
putExtra("scheduleSeparately", false)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
val alarmItem = WallpaperAlarmItem(
|
||||
timeInMinutes1 = settingsState.value.homeInterval,
|
||||
timeInMinutes2 = settingsState.value.lockInterval,
|
||||
scheduleSeparately = false
|
||||
)
|
||||
alarmItem.let{scheduler.scheduleWallpaperAlarm(it, null, true, true)}
|
||||
scheduler.scheduleRefresh()
|
||||
}
|
||||
}
|
||||
else if (selectedState.value.selectedAlbum != null && settingsState.value.enableChanger) {
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.UPDATE.toString()
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
scheduler.updateWallpaper(settingsState.value.scheduleSeparately)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -460,49 +448,58 @@ fun PaperizeApp(
|
||||
selectedState.value.selectedAlbum?.let {
|
||||
wallpaperScreenViewModel.onEvent(WallpaperEvent.Reset)
|
||||
}
|
||||
Intent(context, WallpaperService::class.java).also {
|
||||
it.action = WallpaperService.Actions.STOP.toString()
|
||||
context.startForegroundService(it)
|
||||
}
|
||||
scheduler.cancelWallpaperAlarm()
|
||||
}
|
||||
else if (selectedState.value.selectedAlbum!= null && (enableLock && !settingsState.value.setHomeWallpaper) || (!enableLock && settingsState.value.setHomeWallpaper)) {
|
||||
settingsViewModel.onEvent(SettingsEvent.SetScheduleSeparately(false))
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.START.toString()
|
||||
putExtra("timeInMinutes1", settingsState.value.homeInterval)
|
||||
putExtra("timeInMinutes2", settingsState.value.lockInterval)
|
||||
putExtra("scheduleSeparately", false)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
val alarmItem = WallpaperAlarmItem(
|
||||
timeInMinutes1 = settingsState.value.homeInterval,
|
||||
timeInMinutes2 = settingsState.value.lockInterval,
|
||||
scheduleSeparately = false
|
||||
)
|
||||
alarmItem.let{scheduler.scheduleWallpaperAlarm(it, null, true, true)}
|
||||
scheduler.scheduleRefresh()
|
||||
}
|
||||
}
|
||||
else if (selectedState.value.selectedAlbum != null && settingsState.value.enableChanger) {
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.UPDATE.toString()
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
scheduler.updateWallpaper(settingsState.value.scheduleSeparately)
|
||||
}
|
||||
}
|
||||
},
|
||||
onScheduleSeparatelyChange = {
|
||||
settingsViewModel.onEvent(SettingsEvent.SetScheduleSeparately(it))
|
||||
onScheduleSeparatelyChange = { changeSeparately ->
|
||||
settingsViewModel.onEvent(SettingsEvent.SetScheduleSeparately(changeSeparately))
|
||||
if (selectedState.value.selectedAlbum!= null && settingsState.value.enableChanger) {
|
||||
wallpaperScreenViewModel.onEvent(
|
||||
WallpaperEvent.UpdateSelectedAlbum(
|
||||
selectedState.value.selectedAlbum!!.copy(
|
||||
album = selectedState.value.selectedAlbum!!.album.copy(
|
||||
currentHomeWallpaper = if (settingsState.value.setHomeWallpaper) selectedState.value.selectedAlbum!!.album.homeWallpapersInQueue.firstOrNull() else null,
|
||||
currentLockWallpaper = if (changeSeparately && settingsState.value.setLockWallpaper) selectedState.value.selectedAlbum!!.album.lockWallpapersInQueue.firstOrNull() else if (settingsState.value.setLockWallpaper) selectedState.value.selectedAlbum!!.album.homeWallpapersInQueue.firstOrNull() else null
|
||||
)
|
||||
|
||||
),
|
||||
null,
|
||||
settingsState.value.scheduleSeparately,
|
||||
settingsState.value.setHomeWallpaper,
|
||||
settingsState.value.setLockWallpaper
|
||||
)
|
||||
)
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.START.toString()
|
||||
putExtra("timeInMinutes1", settingsState.value.homeInterval)
|
||||
putExtra("timeInMinutes2", settingsState.value.lockInterval)
|
||||
putExtra("scheduleSeparately", it)
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
val alarmItem = WallpaperAlarmItem(
|
||||
timeInMinutes1 = settingsState.value.homeInterval,
|
||||
timeInMinutes2 = settingsState.value.lockInterval,
|
||||
scheduleSeparately = changeSeparately
|
||||
)
|
||||
alarmItem.let{scheduler.scheduleWallpaperAlarm(it, null, true, true)}
|
||||
scheduler.scheduleRefresh()
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -512,10 +509,7 @@ fun PaperizeApp(
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.UPDATE.toString()
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
scheduler.updateWallpaper(settingsState.value.scheduleSeparately)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -525,10 +519,7 @@ fun PaperizeApp(
|
||||
job?.cancel()
|
||||
job = scope.launch {
|
||||
delay(2000)
|
||||
val intent = Intent(context, WallpaperService::class.java).apply {
|
||||
action = WallpaperService.Actions.UPDATE.toString()
|
||||
}
|
||||
context.startForegroundService(intent)
|
||||
scheduler.updateWallpaper(settingsState.value.scheduleSeparately)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -566,8 +557,7 @@ fun PaperizeApp(
|
||||
navController.navigate(WallpaperView(it))
|
||||
},
|
||||
onShowFolderView = { folderName, wallpapers ->
|
||||
val encodedWallpapers = runBlocking { encodeUri(uri = Gson().toJson(wallpapers)) }
|
||||
navController.navigate("${NavScreens.FolderView.route}/$folderName/$encodedWallpapers")
|
||||
navController.navigate(FolderView(folderName, wallpapers))
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -601,12 +591,7 @@ fun PaperizeApp(
|
||||
animate = settingsState.value.animate
|
||||
)
|
||||
}
|
||||
composable(
|
||||
route = NavScreens.FolderView.route.plus("/{folderName}/{wallpapers}"),
|
||||
arguments = listOf(
|
||||
navArgument("folderName") { type = NavType.StringType },
|
||||
navArgument("wallpapers") { type = NavType.StringType }
|
||||
),
|
||||
composable<FolderView>(
|
||||
enterTransition = {
|
||||
if (settingsState.value.animate) {
|
||||
sharedXTransitionIn(initial = { (it * INITIAL_OFFSET).toInt() })
|
||||
@@ -628,15 +613,11 @@ fun PaperizeApp(
|
||||
} else { null }
|
||||
}
|
||||
) { backStackEntry ->
|
||||
val folderName = backStackEntry.arguments?.getString("folderName")
|
||||
val wallpapers = Gson().fromJson(
|
||||
backStackEntry.arguments?.getString("wallpapers"),
|
||||
Array<String>::class.java
|
||||
).toList()
|
||||
if (wallpapers.isNotEmpty()) {
|
||||
val folderView: FolderView = backStackEntry.toRoute()
|
||||
if (folderView.wallpapers.isNotEmpty()) {
|
||||
FolderViewScreen(
|
||||
folderName = folderName,
|
||||
wallpapers = wallpapers,
|
||||
folderName = folderView.folderName,
|
||||
wallpapers = folderView.wallpapers,
|
||||
onBackClick = { navController.navigateUp() },
|
||||
onShowWallpaperView = {
|
||||
navController.navigate(WallpaperView(it))
|
||||
@@ -678,8 +659,7 @@ fun PaperizeApp(
|
||||
navController.navigate(WallpaperView(it))
|
||||
},
|
||||
onShowFolderView = { folderName, wallpapers ->
|
||||
val encodedWallpapers = runBlocking { encodeUri(uri = Gson().toJson(wallpapers)) }
|
||||
navController.navigate("${NavScreens.FolderView.route}/$folderName/$encodedWallpapers")
|
||||
navController.navigate(FolderView(folderName, wallpapers))
|
||||
},
|
||||
onDeleteAlbum = {
|
||||
navController.navigateUp()
|
||||
@@ -737,17 +717,11 @@ fun PaperizeApp(
|
||||
navController.navigate(Licenses)
|
||||
},
|
||||
onResetClick = {
|
||||
navController.navigate(Startup) {
|
||||
popUpTo<Settings> { inclusive = true }
|
||||
}
|
||||
settingsViewModel.onEvent(SettingsEvent.Reset)
|
||||
wallpaperScreenViewModel.onEvent(WallpaperEvent.Reset)
|
||||
albumsViewModel.onEvent(AlbumsEvent.Reset)
|
||||
addAlbumViewModel.onEvent(AddAlbumEvent.Reset)
|
||||
Intent(context, WallpaperService::class.java).also {
|
||||
it.action = WallpaperService.Actions.STOP.toString()
|
||||
context.startForegroundService(it)
|
||||
}
|
||||
scheduler.cancelWallpaperAlarm()
|
||||
val contentResolver = context.contentResolver
|
||||
val persistedUris = contentResolver.persistedUriPermissions
|
||||
for (permission in persistedUris) {
|
||||
@@ -813,10 +787,4 @@ fun PaperizeApp(
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Encode an URI so it can be passed with navigation
|
||||
suspend fun encodeUri(uri: String): String =
|
||||
withContext(Dispatchers.IO) {
|
||||
URLEncoder.encode(uri, StandardCharsets.UTF_8.toString())
|
||||
}
|
||||
}
|
||||
@@ -188,7 +188,7 @@ fun AddAlbumScreen(
|
||||
)
|
||||
},
|
||||
onFolderViewClick = {
|
||||
onShowFolderView(folder.folderName, folder.wallpapers)
|
||||
if (folder.wallpapers.isNotEmpty()) onShowFolderView(folder.folderName, folder.wallpapers)
|
||||
},
|
||||
modifier = Modifier.padding(4.dp).animateItem(
|
||||
placementSpec = tween(
|
||||
|
||||
@@ -3,15 +3,15 @@ package com.anthonyla.paperize.feature.wallpaper.presentation.add_album_screen
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import androidx.core.net.toUri
|
||||
import androidx.lifecycle.AndroidViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import com.anthonyla.paperize.core.getFolderNameFromUri
|
||||
import com.anthonyla.paperize.core.getWallpaperFromFolder
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Album
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.AlbumWithWallpaperAndFolder
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Folder
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Wallpaper
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.repository.AlbumRepository
|
||||
import com.lazygeniouz.dfc.file.DocumentFileCompat
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.SharingStarted
|
||||
@@ -140,6 +140,7 @@ class AddAlbumViewModel @Inject constructor(
|
||||
viewModelScope.launch {
|
||||
if (event.directoryUri !in _state.value.folders.map { it.folderUri }) {
|
||||
val wallpapers: List<String> = getWallpaperFromFolder(event.directoryUri, context)
|
||||
if (wallpapers.isEmpty()) { return@launch }
|
||||
val folderName = getFolderNameFromUri(event.directoryUri, context)
|
||||
_state.update {
|
||||
it.copy(
|
||||
@@ -256,28 +257,4 @@ class AddAlbumViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun getWallpaperFromFolder(folderUri: String, context: Context): List<String> {
|
||||
val folderDocumentFile = DocumentFileCompat.fromTreeUri(context, folderUri.toUri())
|
||||
return listFilesRecursive(folderDocumentFile, context)
|
||||
}
|
||||
|
||||
private fun listFilesRecursive(parent: DocumentFileCompat?, context: Context): List<String> {
|
||||
val files = mutableListOf<String>()
|
||||
parent?.listFiles()?.forEach { file ->
|
||||
if (file.isDirectory()) {
|
||||
files.addAll(listFilesRecursive(file, context))
|
||||
} else {
|
||||
val allowedExtensions = listOf("jpg", "jpeg", "png", "heif", "webp", "JPG", "JPEG", "PNG", "HEIF", "WEBP")
|
||||
if (file.extension in allowedExtensions) {
|
||||
files.add(file.uri.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
return files
|
||||
}
|
||||
|
||||
private fun getFolderNameFromUri(folderUri: String, context: Context): String? {
|
||||
return DocumentFileCompat.fromTreeUri(context, folderUri.toUri())?.name
|
||||
}
|
||||
}
|
||||
@@ -102,7 +102,6 @@ fun AddAlbumSmallTopBar(
|
||||
), label = stringResource(R.string.circle_3_animation)
|
||||
)
|
||||
|
||||
|
||||
TopAppBar(
|
||||
colors = TopAppBarDefaults.centerAlignedTopAppBarColors(containerColor = MaterialTheme.colorScheme.surface),
|
||||
title = {
|
||||
@@ -174,7 +173,7 @@ fun AddAlbumSmallTopBar(
|
||||
},
|
||||
actions = {
|
||||
if(!selectionMode) {
|
||||
if (!isEmpty) {
|
||||
if (!isEmpty && editableTitle.isNotEmpty()) {
|
||||
Box {
|
||||
val primaryColor = MaterialTheme.colorScheme.inversePrimary
|
||||
val secondaryColor = MaterialTheme.colorScheme.secondary
|
||||
|
||||
@@ -3,10 +3,11 @@ package com.anthonyla.paperize.feature.wallpaper.presentation.album
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import androidx.core.net.toUri
|
||||
import androidx.documentfile.provider.DocumentFile
|
||||
import androidx.lifecycle.AndroidViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Folder
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Wallpaper
|
||||
import com.anthonyla.paperize.core.findFirstValidUri
|
||||
import com.anthonyla.paperize.core.getWallpaperFromFolder
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.repository.AlbumRepository
|
||||
import com.lazygeniouz.dfc.file.DocumentFileCompat
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
@@ -85,34 +86,119 @@ class AlbumsViewModel @Inject constructor (
|
||||
albumWithWallpapers.forEach { albumWithWallpaper ->
|
||||
// Delete wallpaper if the URI is invalid
|
||||
val invalidWallpapers = albumWithWallpaper.wallpapers.filterNot { wallpaper ->
|
||||
val file = DocumentFileCompat.fromSingleUri(context, wallpaper.wallpaperUri.toUri())
|
||||
file?.exists() == true
|
||||
try {
|
||||
val file = DocumentFileCompat.fromSingleUri(
|
||||
context,
|
||||
wallpaper.wallpaperUri.toUri()
|
||||
)
|
||||
file?.exists() == true
|
||||
} catch (e: Exception) {
|
||||
val file =
|
||||
DocumentFile.fromSingleUri(context, wallpaper.wallpaperUri.toUri())
|
||||
file?.exists() == true
|
||||
}
|
||||
}
|
||||
if (invalidWallpapers.isNotEmpty()) {
|
||||
repository.deleteWallpaperList(invalidWallpapers)
|
||||
}
|
||||
|
||||
// Update folder cover uri and children uri
|
||||
// Update folder cover uri and wallpapers uri
|
||||
albumWithWallpaper.folders.forEach { folder ->
|
||||
DocumentFileCompat.fromTreeUri(context, folder.folderUri.toUri())?.let { folderDirectory ->
|
||||
if (!folderDirectory.isDirectory()) {
|
||||
repository.deleteFolder(folder)
|
||||
} else {
|
||||
val wallpapers = getWallpaperFromFolder(folder.folderUri, context)
|
||||
val folderCoverFile = folder.coverUri?.let { DocumentFileCompat.fromSingleUri(context, it.toUri()) }
|
||||
val folderCover = folderCoverFile?.takeIf { it.exists() }?.uri?.toString() ?: wallpapers.randomOrNull()
|
||||
repository.updateFolder(folder.copy(coverUri = folderCover, wallpapers = wallpapers))
|
||||
}
|
||||
try {
|
||||
DocumentFileCompat.fromTreeUri(context, folder.folderUri.toUri())
|
||||
?.let { folderDirectory ->
|
||||
if (!folderDirectory.isDirectory()) {
|
||||
repository.deleteFolder(folder)
|
||||
} else {
|
||||
val wallpapers =
|
||||
getWallpaperFromFolder(folder.folderUri, context)
|
||||
val folderCoverFile = folder.coverUri?.let {
|
||||
DocumentFileCompat.fromSingleUri(
|
||||
context,
|
||||
it.toUri()
|
||||
)
|
||||
}
|
||||
val folderCover =
|
||||
folderCoverFile?.takeIf { it.exists() }?.uri?.toString()
|
||||
?: wallpapers.randomOrNull()
|
||||
repository.updateFolder(
|
||||
folder.copy(
|
||||
coverUri = folderCover,
|
||||
wallpapers = wallpapers
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
DocumentFile.fromTreeUri(context, folder.folderUri.toUri())
|
||||
?.let { folderDirectory ->
|
||||
if (!folderDirectory.isDirectory) {
|
||||
repository.deleteFolder(folder)
|
||||
} else {
|
||||
val wallpapers =
|
||||
getWallpaperFromFolder(folder.folderUri, context)
|
||||
try {
|
||||
val folderCoverFile = folder.coverUri?.let {
|
||||
DocumentFileCompat.fromSingleUri(
|
||||
context,
|
||||
it.toUri()
|
||||
)
|
||||
}
|
||||
val folderCover =
|
||||
folderCoverFile?.takeIf { it.exists() }?.uri?.toString()
|
||||
?: wallpapers.randomOrNull()
|
||||
repository.updateFolder(
|
||||
folder.copy(
|
||||
coverUri = folderCover,
|
||||
wallpapers = wallpapers
|
||||
)
|
||||
)
|
||||
} catch (e: Exception) {
|
||||
val folderCoverFile = folder.coverUri?.let {
|
||||
DocumentFile.fromSingleUri(
|
||||
context,
|
||||
it.toUri()
|
||||
)
|
||||
}
|
||||
val folderCover =
|
||||
folderCoverFile?.takeIf { it.exists() }?.uri?.toString()
|
||||
?: wallpapers.randomOrNull()
|
||||
repository.updateFolder(
|
||||
folder.copy(
|
||||
coverUri = folderCover,
|
||||
wallpapers = wallpapers
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
albumWithWallpapers = repository.getAlbumsWithWallpaperAndFolder().first()
|
||||
albumWithWallpapers.forEach { albumWithWallpaper ->
|
||||
// Update album cover uri if null or invalid
|
||||
val albumCoverFile = albumWithWallpaper.album.coverUri?.toUri()?.let { DocumentFileCompat.fromSingleUri(context, it) }
|
||||
if (albumCoverFile == null || !albumCoverFile.exists()) {
|
||||
val newCoverUri = findFirstValidUri(albumWithWallpaper.wallpapers, albumWithWallpaper.folders)
|
||||
repository.updateAlbum(albumWithWallpaper.album.copy(coverUri = newCoverUri))
|
||||
albumWithWallpapers = repository.getAlbumsWithWallpaperAndFolder().first()
|
||||
albumWithWallpapers.forEach { album ->
|
||||
// Delete empty albums
|
||||
if (album.wallpapers.isEmpty() && album.folders.all { it.wallpapers.isEmpty() }) {
|
||||
repository.deleteAlbum(album.album)
|
||||
} else {
|
||||
// Update album cover uri if null or invalid
|
||||
try {
|
||||
val albumCoverFile = album.album.coverUri?.toUri()
|
||||
?.let { DocumentFileCompat.fromSingleUri(context, it) }
|
||||
if (albumCoverFile == null || !albumCoverFile.exists()) {
|
||||
val newCoverUri =
|
||||
findFirstValidUri(context, album.wallpapers, album.folders)
|
||||
repository.updateAlbum(album.album.copy(coverUri = newCoverUri))
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
val albumCoverFile = album.album.coverUri?.toUri()
|
||||
?.let { DocumentFile.fromSingleUri(context, it) }
|
||||
if (albumCoverFile == null || !albumCoverFile.exists()) {
|
||||
val newCoverUri =
|
||||
findFirstValidUri(context, album.wallpapers, album.folders)
|
||||
repository.updateAlbum(album.album.copy(coverUri = newCoverUri))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -130,53 +216,5 @@ class AlbumsViewModel @Inject constructor (
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve wallpaper URIs from a folder directory URI
|
||||
*/
|
||||
private fun getWallpaperFromFolder(folderUri: String, context: Context): List<String> {
|
||||
val folderDocumentFile = DocumentFileCompat.fromTreeUri(context, folderUri.toUri())
|
||||
return listFilesRecursive(folderDocumentFile, context)
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to recursively list files in a directory
|
||||
*/
|
||||
private fun listFilesRecursive(parent: DocumentFileCompat?, context: Context): List<String> {
|
||||
val files = mutableListOf<String>()
|
||||
parent?.listFiles()?.forEach { file ->
|
||||
if (file.isDirectory()) {
|
||||
files.addAll(listFilesRecursive(file, context))
|
||||
} else {
|
||||
val allowedExtensions = listOf("jpg", "jpeg", "png", "heif", "webp", "JPG", "JPEG", "PNG", "HEIF", "WEBP")
|
||||
if (file.extension in allowedExtensions) {
|
||||
files.add(file.uri.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
return files
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to find the first valid URI from a list of wallpapers
|
||||
* It will search through all wallpapers of an album first, and then all wallpapers of every folder of an album
|
||||
*/
|
||||
private fun findFirstValidUri(wallpapers: List<Wallpaper>, folders: List<Folder>): String? {
|
||||
wallpapers.forEach { wallpaper ->
|
||||
val file = DocumentFileCompat.fromSingleUri(context, wallpaper.wallpaperUri.toUri())
|
||||
if (file?.exists() == true) {
|
||||
return wallpaper.wallpaperUri
|
||||
}
|
||||
}
|
||||
folders.forEach { folder ->
|
||||
folder.wallpapers.forEach { wallpaper ->
|
||||
val file = DocumentFileCompat.fromSingleUri(context, wallpaper.toUri())
|
||||
if (file?.exists() == true) {
|
||||
return wallpaper
|
||||
}
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ fun AlbumViewScreen(
|
||||
)
|
||||
},
|
||||
onFolderViewClick = {
|
||||
onShowFolderView(folder.folderName, folder.wallpapers)
|
||||
if (folder.wallpapers.isNotEmpty()) onShowFolderView(folder.folderName, folder.wallpapers)
|
||||
},
|
||||
modifier = Modifier.padding(4.dp).animateItem(
|
||||
placementSpec = tween(
|
||||
@@ -208,7 +208,7 @@ fun AlbumViewScreen(
|
||||
)
|
||||
},
|
||||
onFolderViewClick = {
|
||||
onShowFolderView(folder.folderName, folder.wallpapers)
|
||||
if (folder.wallpapers.isNotEmpty()) onShowFolderView(folder.folderName, folder.wallpapers)
|
||||
},
|
||||
modifier = Modifier.padding(4.dp),
|
||||
animate = false
|
||||
|
||||
@@ -3,13 +3,13 @@ package com.anthonyla.paperize.feature.wallpaper.presentation.album_view_screen
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import androidx.core.net.toUri
|
||||
import androidx.lifecycle.AndroidViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import com.anthonyla.paperize.core.getFolderNameFromUri
|
||||
import com.anthonyla.paperize.core.getWallpaperFromFolder
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Folder
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Wallpaper
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.repository.AlbumRepository
|
||||
import com.lazygeniouz.dfc.file.DocumentFileCompat
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.SharingStarted
|
||||
@@ -189,6 +189,7 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
viewModelScope.launch {
|
||||
if (event.directoryUri !in event.album.folders.map { it.folderUri }) {
|
||||
val wallpapers: List<String> = getWallpaperFromFolder(event.directoryUri, context)
|
||||
if (wallpapers.isEmpty()) { return@launch }
|
||||
val folderName = getFolderNameFromUri(event.directoryUri, context)
|
||||
repository.upsertFolder(
|
||||
Folder(
|
||||
@@ -215,27 +216,4 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
private fun getWallpaperFromFolder(folderUri: String, context: Context): List<String> {
|
||||
val folderDocumentFile = DocumentFileCompat.fromTreeUri(context, folderUri.toUri())
|
||||
return listFilesRecursive(folderDocumentFile, context)
|
||||
}
|
||||
|
||||
private fun listFilesRecursive(parent: DocumentFileCompat?, context: Context): List<String> {
|
||||
val files = mutableListOf<String>()
|
||||
parent?.listFiles()?.forEach { file ->
|
||||
if (file.isDirectory()) {
|
||||
files.addAll(listFilesRecursive(file, context))
|
||||
} else {
|
||||
val allowedExtensions = listOf("jpg", "jpeg", "png", "heif", "webp", "JPG", "JPEG", "PNG", "HEIF", "WEBP")
|
||||
if (file.extension in allowedExtensions) {
|
||||
files.add(file.uri.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
return files
|
||||
}
|
||||
|
||||
private fun getFolderNameFromUri(folderUri: String, context: Context): String? {
|
||||
return DocumentFileCompat.fromTreeUri(context, folderUri.toUri())?.name
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,6 @@ import androidx.compose.runtime.mutableIntStateOf
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.saveable.rememberSaveable
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.runtime.snapshotFlow
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.anthonyla.paperize.core.ScalingConstants
|
||||
@@ -66,17 +65,23 @@ fun HomeScreen(
|
||||
onBlurPercentageChange: (Int) -> Unit,
|
||||
onBlurChange: (Boolean) -> Unit,
|
||||
blurPercentage: Int,
|
||||
firstSet: Boolean
|
||||
) {
|
||||
var tabIndex by rememberSaveable { mutableIntStateOf(0) }
|
||||
val tabItems = getTabItems()
|
||||
val pagerState = rememberPagerState { tabItems.size }
|
||||
val pagerState = rememberPagerState(0) { tabItems.size }
|
||||
var tabIndex by rememberSaveable { mutableIntStateOf(pagerState.currentPage) }
|
||||
var addAlbumDialog by rememberSaveable { mutableStateOf(false) }
|
||||
if (addAlbumDialog) AddAlbumDialog(
|
||||
onDismissRequest = { addAlbumDialog = false },
|
||||
onConfirmation = { navigateToAddWallpaperScreen(it) }
|
||||
)
|
||||
|
||||
LaunchedEffect(tabIndex) {
|
||||
pagerState.animateScrollToPage(tabIndex)
|
||||
}
|
||||
LaunchedEffect(pagerState.currentPage) {
|
||||
tabIndex = pagerState.currentPage
|
||||
}
|
||||
|
||||
Scaffold (
|
||||
topBar = {
|
||||
HomeTopBar(
|
||||
@@ -85,24 +90,12 @@ fun HomeScreen(
|
||||
onSettingsClick = onSettingsClick,
|
||||
)
|
||||
}
|
||||
) { padding ->
|
||||
LaunchedEffect(tabIndex) {
|
||||
if (tabIndex in tabItems.indices) {
|
||||
pagerState.animateScrollToPage(tabIndex)
|
||||
}
|
||||
}
|
||||
LaunchedEffect(pagerState) {
|
||||
snapshotFlow { pagerState.currentPage }.collect { page ->
|
||||
if (page in tabItems.indices) {
|
||||
tabIndex = page
|
||||
}
|
||||
}
|
||||
}
|
||||
Column(modifier = Modifier.padding(padding)) {
|
||||
) {
|
||||
Column(modifier = Modifier.padding(it)) {
|
||||
TabRow(
|
||||
selectedTabIndex = tabIndex,
|
||||
indicator = { tabPositions ->
|
||||
if (tabIndex < tabPositions.size) {
|
||||
if (tabIndex in tabPositions.indices) {
|
||||
TabRowDefaults.PrimaryIndicator(
|
||||
modifier = Modifier.tabIndicatorOffset(tabPositions[tabIndex]),
|
||||
shape = RoundedCornerShape(
|
||||
@@ -124,10 +117,8 @@ fun HomeScreen(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector =
|
||||
if (index == tabIndex)
|
||||
item.filledIcon
|
||||
else
|
||||
item.unfilledIcon,
|
||||
if (index == tabIndex) item.filledIcon
|
||||
else item.unfilledIcon,
|
||||
contentDescription = item.title
|
||||
)
|
||||
}
|
||||
@@ -136,10 +127,9 @@ fun HomeScreen(
|
||||
}
|
||||
HorizontalPager(
|
||||
state = pagerState,
|
||||
beyondViewportPageCount = 1,
|
||||
userScrollEnabled = true,
|
||||
beyondViewportPageCount = 1
|
||||
) { index ->
|
||||
when(index) {
|
||||
when(index.coerceIn(tabItems.indices)) {
|
||||
0 -> WallpaperScreen(
|
||||
animate = animate,
|
||||
darken = darken,
|
||||
@@ -155,25 +145,24 @@ fun HomeScreen(
|
||||
onDarkenPercentage = onDarkenPercentage,
|
||||
onHomeCheckedChange = onHomeCheckedChange,
|
||||
onLockCheckedChange = onLockCheckedChange,
|
||||
scheduleSeparately = scheduleSeparately,
|
||||
onScheduleSeparatelyChange = onScheduleSeparatelyChange,
|
||||
onScheduleWallpaperChanger1 = onScheduleWallpaperChanger1,
|
||||
onScheduleWallpaperChanger2 = onScheduleWallpaperChanger2,
|
||||
onScalingChange = onScalingChange,
|
||||
onSelectAlbum = onSelectAlbum,
|
||||
onTimeChange1 = onTimeChange1,
|
||||
onTimeChange2 = onTimeChange2,
|
||||
onStop = onStop,
|
||||
onToggleChanger = onToggleChanger,
|
||||
scaling = scaling,
|
||||
selectedAlbum = selectedAlbum,
|
||||
scheduleSeparately = scheduleSeparately,
|
||||
onScheduleSeparatelyChange = onScheduleSeparatelyChange,
|
||||
onTimeChange1 = onTimeChange1,
|
||||
onTimeChange2 = onTimeChange2,
|
||||
blur = blur,
|
||||
onBlurPercentageChange = onBlurPercentageChange,
|
||||
onBlurChange = onBlurChange,
|
||||
blurPercentage = blurPercentage,
|
||||
firstSet = firstSet
|
||||
blurPercentage = blurPercentage
|
||||
)
|
||||
1 -> LibraryScreen(
|
||||
else -> LibraryScreen(
|
||||
onAddNewAlbumClick = { addAlbumDialog = true },
|
||||
onViewAlbum = onAlbumViewClick,
|
||||
animate = animate
|
||||
|
||||
@@ -7,7 +7,6 @@ sealed class SettingsEvent {
|
||||
data object Refresh: SettingsEvent()
|
||||
data object Reset: SettingsEvent()
|
||||
data object SetFirstLaunch: SettingsEvent()
|
||||
data object SetFirstSet: SettingsEvent()
|
||||
data object RefreshNextSetTime: SettingsEvent()
|
||||
data class SetDarkMode(val darkMode: Boolean?): SettingsEvent()
|
||||
data class SetDynamicTheming(val dynamicTheming: Boolean): SettingsEvent()
|
||||
|
||||
@@ -4,7 +4,6 @@ import com.anthonyla.paperize.core.SettingsConstants.WALLPAPER_CHANGE_INTERVAL_D
|
||||
|
||||
data class SettingsState(
|
||||
val firstLaunch: Boolean = true,
|
||||
val firstSet: Boolean = true,
|
||||
// App settings
|
||||
val darkMode: Boolean? = null,
|
||||
val dynamicTheming: Boolean = false,
|
||||
|
||||
@@ -35,10 +35,9 @@ class SettingsViewModel @Inject constructor (
|
||||
init {
|
||||
currentGetJob = viewModelScope.launch(Dispatchers.IO) {
|
||||
val firstLaunch = async { settingsDataStoreImpl.getBoolean(SettingsConstants.FIRST_LAUNCH) ?: true }
|
||||
val firstSet = async { settingsDataStoreImpl.getBoolean(SettingsConstants.FIRST_SET) ?: false }
|
||||
val darkMode = async { settingsDataStoreImpl.getBoolean(SettingsConstants.DARK_MODE_TYPE) }
|
||||
val dynamicTheming = async { settingsDataStoreImpl.getBoolean(SettingsConstants.DYNAMIC_THEME_TYPE) ?: false }
|
||||
val enableChanger = async { settingsDataStoreImpl.getBoolean(SettingsConstants.ENABLE_CHANGER) ?: false }
|
||||
val enableChanger = async { settingsDataStoreImpl.getBoolean(SettingsConstants.ENABLE_CHANGER) ?: true }
|
||||
val setHomeWallpaper = async { settingsDataStoreImpl.getBoolean(SettingsConstants.HOME_WALLPAPER) ?: false }
|
||||
val setLockWallpaper = async { settingsDataStoreImpl.getBoolean(SettingsConstants.LOCK_WALLPAPER) ?: false }
|
||||
val homeWallpaperInterval = async { settingsDataStoreImpl.getInt(SettingsConstants.HOME_WALLPAPER_CHANGE_INTERVAL) ?: SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT }
|
||||
@@ -60,7 +59,6 @@ class SettingsViewModel @Inject constructor (
|
||||
homeInterval = homeWallpaperInterval.await(),
|
||||
lockInterval = lockWallpaperInterval.await(),
|
||||
firstLaunch = firstLaunch.await(),
|
||||
firstSet = firstSet.await(),
|
||||
lastSetTime = lastSetTime.await(),
|
||||
nextSetTime = nextSetTime.await(),
|
||||
animate = animate.await(),
|
||||
@@ -121,7 +119,6 @@ class SettingsViewModel @Inject constructor (
|
||||
val scheduleSeparately = async { settingsDataStoreImpl.getBoolean(SettingsConstants.SCHEDULE_SEPARATELY) ?: false }
|
||||
val blur = async { settingsDataStoreImpl.getBoolean(SettingsConstants.BLUR) ?: false }
|
||||
val blurPercentage = async { settingsDataStoreImpl.getInt(SettingsConstants.BLUR_PERCENTAGE) ?: 0 }
|
||||
val firstSet = async { settingsDataStoreImpl.getBoolean(SettingsConstants.FIRST_SET) ?: true }
|
||||
_state.update {
|
||||
it.copy(
|
||||
darkMode = darkMode.await(),
|
||||
@@ -140,7 +137,6 @@ class SettingsViewModel @Inject constructor (
|
||||
scheduleSeparately = scheduleSeparately.await(),
|
||||
blur = blur.await(),
|
||||
blurPercentage = blurPercentage.await(),
|
||||
firstSet = firstSet.await()
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -186,7 +182,6 @@ class SettingsViewModel @Inject constructor (
|
||||
is SettingsEvent.SetHomeWallpaperInterval -> {
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
settingsDataStoreImpl.putInt(SettingsConstants.HOME_WALLPAPER_CHANGE_INTERVAL, event.interval)
|
||||
|
||||
val formatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)
|
||||
val currentTime = LocalDateTime.now()
|
||||
val nextSetTime: String?
|
||||
@@ -196,10 +191,14 @@ class SettingsViewModel @Inject constructor (
|
||||
val nextSetTime2 = currentTime.plusMinutes(_state.value.lockInterval.toLong())
|
||||
nextSetTime = (if (nextSetTime1!!.isBefore(nextSetTime2)) nextSetTime1 else nextSetTime2)!!.format(formatter)
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, nextSetTime)
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_1, nextSetTime1.toString())
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_2, nextSetTime2.toString())
|
||||
}
|
||||
else {
|
||||
nextSetTime = currentTime.plusMinutes(event.interval.toLong()).format(formatter)
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, nextSetTime)
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_1, currentTime.plusMinutes(event.interval.toLong()).toString())
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_2, currentTime.plusMinutes(event.interval.toLong()).toString())
|
||||
}
|
||||
_state.update {
|
||||
it.copy(
|
||||
@@ -211,21 +210,9 @@ class SettingsViewModel @Inject constructor (
|
||||
}
|
||||
}
|
||||
|
||||
is SettingsEvent.SetFirstSet -> {
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
settingsDataStoreImpl.putBoolean(SettingsConstants.FIRST_SET, false)
|
||||
_state.update {
|
||||
it.copy(
|
||||
firstSet = false
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is SettingsEvent.SetLockWallpaperInterval -> {
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
settingsDataStoreImpl.putInt(SettingsConstants.LOCK_WALLPAPER_CHANGE_INTERVAL, event.interval)
|
||||
|
||||
val formatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)
|
||||
val currentTime = LocalDateTime.now()
|
||||
val nextSetTime: String?
|
||||
@@ -235,10 +222,14 @@ class SettingsViewModel @Inject constructor (
|
||||
val nextSetTime2 = currentTime.plusMinutes(event.interval.toLong())
|
||||
nextSetTime = (if (nextSetTime1!!.isBefore(nextSetTime2)) nextSetTime1 else nextSetTime2)!!.format(formatter)
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, nextSetTime)
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_1, nextSetTime1.toString())
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_2, nextSetTime2.toString())
|
||||
}
|
||||
else {
|
||||
nextSetTime = currentTime.plusMinutes(event.interval.toLong()).format(formatter)
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, nextSetTime)
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_1, currentTime.plusMinutes(event.interval.toLong()).toString())
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_2, currentTime.plusMinutes(event.interval.toLong()).toString())
|
||||
}
|
||||
_state.update {
|
||||
it.copy(
|
||||
@@ -380,6 +371,8 @@ class SettingsViewModel @Inject constructor (
|
||||
settingsDataStoreImpl.deleteBoolean(SettingsConstants.BLUR)
|
||||
settingsDataStoreImpl.deleteInt(SettingsConstants.BLUR_PERCENTAGE)
|
||||
settingsDataStoreImpl.deleteBoolean(SettingsConstants.FIRST_SET)
|
||||
settingsDataStoreImpl.deleteString(SettingsConstants.NEXT_SET_TIME_1)
|
||||
settingsDataStoreImpl.deleteString(SettingsConstants.NEXT_SET_TIME_2)
|
||||
|
||||
_state.update {
|
||||
it.copy(
|
||||
@@ -399,8 +392,7 @@ class SettingsViewModel @Inject constructor (
|
||||
homeInterval = SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT,
|
||||
scheduleSeparately = false,
|
||||
blur = false,
|
||||
blurPercentage = 0,
|
||||
firstSet = true
|
||||
blurPercentage = 0
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,10 @@ sealed class WallpaperEvent {
|
||||
data class UpdateSelectedAlbum(
|
||||
val selectedAlbum: SelectedAlbum?,
|
||||
val album: AlbumWithWallpaperAndFolder?,
|
||||
val scheduleSeparately: Boolean = false
|
||||
val scheduleSeparately: Boolean = false,
|
||||
val setHome: Boolean = false,
|
||||
val setLock: Boolean = false
|
||||
): WallpaperEvent()
|
||||
object Reset : WallpaperEvent()
|
||||
object Refresh : WallpaperEvent()
|
||||
data object Reset : WallpaperEvent()
|
||||
data object Refresh : WallpaperEvent()
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen
|
||||
|
||||
import android.app.AlarmManager
|
||||
import android.app.WallpaperManager
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.Build
|
||||
import android.provider.Settings
|
||||
import androidx.compose.animation.AnimatedVisibility
|
||||
import androidx.compose.animation.fadeOut
|
||||
import androidx.compose.animation.slideInVertically
|
||||
@@ -28,6 +32,7 @@ import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.hilt.navigation.compose.hiltViewModel
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import com.anthonyla.paperize.R
|
||||
@@ -41,7 +46,6 @@ import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.co
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.components.CurrentAndNextChange
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.components.CurrentSelectedAlbum
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.components.DarkenSwitchAndSlider
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.components.ShowDelayNoticeDialog
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.components.ShowLiveWallpaperEnabledDialog
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.components.TimeSliders
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.components.WallpaperPreviewAndScale
|
||||
@@ -79,8 +83,7 @@ fun WallpaperScreen(
|
||||
blur: Boolean,
|
||||
onBlurPercentageChange: (Int) -> Unit,
|
||||
onBlurChange: (Boolean) -> Unit,
|
||||
blurPercentage: Int,
|
||||
firstSet: Boolean
|
||||
blurPercentage: Int
|
||||
) {
|
||||
val context = LocalContext.current
|
||||
val albumState = albumsViewModel.state.collectAsStateWithLifecycle()
|
||||
@@ -88,22 +91,14 @@ fun WallpaperScreen(
|
||||
val scope = rememberCoroutineScope()
|
||||
val snackbarHostState = remember { SnackbarHostState() }
|
||||
val openLiveDialog = rememberSaveable { mutableStateOf(false) }
|
||||
val openNoticeDialog = rememberSaveable { mutableStateOf(false) }
|
||||
val showInterval = rememberSaveable { mutableStateOf(false) }
|
||||
val scrollState = rememberScrollState()
|
||||
|
||||
if (openLiveDialog.value) {
|
||||
ShowLiveWallpaperEnabledDialog(
|
||||
onDismissRequest = { openLiveDialog.value = false }
|
||||
)
|
||||
}
|
||||
if (openNoticeDialog.value) {
|
||||
ShowDelayNoticeDialog(
|
||||
onDismissRequest = {
|
||||
openNoticeDialog.value = false
|
||||
openBottomSheet = true
|
||||
}
|
||||
)
|
||||
}
|
||||
val scrollState = rememberScrollState()
|
||||
|
||||
Scaffold(
|
||||
snackbarHost = {
|
||||
@@ -140,12 +135,7 @@ fun WallpaperScreen(
|
||||
if (isLiveWallpaperSet(context)) {
|
||||
openLiveDialog.value = true
|
||||
} else {
|
||||
if (firstSet) {
|
||||
openNoticeDialog.value = true
|
||||
}
|
||||
else {
|
||||
openBottomSheet = true
|
||||
}
|
||||
openBottomSheet = true
|
||||
}
|
||||
} else {
|
||||
scope.launch {
|
||||
@@ -357,8 +347,23 @@ fun WallpaperScreen(
|
||||
onDismiss = { openBottomSheet = false },
|
||||
onSelect = { album ->
|
||||
openBottomSheet = false
|
||||
onSelectAlbum(album)
|
||||
onScheduleWallpaperChanger1(interval1)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
val alarmManager = ContextCompat.getSystemService(context, AlarmManager::class.java)
|
||||
if (alarmManager?.canScheduleExactAlarms() == false) {
|
||||
Intent().also { intent ->
|
||||
intent.action = Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM
|
||||
context.startActivity(intent)
|
||||
}
|
||||
}
|
||||
else {
|
||||
onSelectAlbum(album)
|
||||
onScheduleWallpaperChanger1(interval1)
|
||||
}
|
||||
}
|
||||
else {
|
||||
onSelectAlbum(album)
|
||||
onScheduleWallpaperChanger1(interval1)
|
||||
}
|
||||
},
|
||||
animate = animate
|
||||
)
|
||||
|
||||
@@ -43,6 +43,7 @@ class WallpaperScreenViewModel @Inject constructor (
|
||||
when (event) {
|
||||
is WallpaperEvent.UpdateSelectedAlbum -> {
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
if (!event.setHome && !event.setLock) return@launch
|
||||
if (event.selectedAlbum != null) {
|
||||
_state.update {
|
||||
it.copy(
|
||||
@@ -67,8 +68,8 @@ class WallpaperScreenViewModel @Inject constructor (
|
||||
album = event.album.album.copy(
|
||||
homeWallpapersInQueue = shuffledWallpapers1,
|
||||
lockWallpapersInQueue = shuffledWallpapers2,
|
||||
currentHomeWallpaper = shuffledWallpapers1.firstOrNull(),
|
||||
currentLockWallpaper = if (event.scheduleSeparately) shuffledWallpapers2.firstOrNull() else shuffledWallpapers1.firstOrNull(),
|
||||
currentHomeWallpaper = if (event.setHome) shuffledWallpapers1.firstOrNull() else null,
|
||||
currentLockWallpaper = if (event.scheduleSeparately && event.setLock) shuffledWallpapers2.firstOrNull() else if (event.setLock) shuffledWallpapers1.firstOrNull() else null,
|
||||
),
|
||||
wallpapers = wallpapers
|
||||
)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.components
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Build
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Box
|
||||
@@ -35,8 +34,8 @@ import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.IntSize
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.core.net.toUri
|
||||
import com.anthonyla.paperize.R
|
||||
import com.anthonyla.paperize.core.isValidUri
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.AlbumWithWallpaperAndFolder
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.SelectedAlbum
|
||||
import com.skydoves.landscapist.ImageOptions
|
||||
@@ -55,17 +54,6 @@ fun AlbumBottomSheet(
|
||||
onSelect: (AlbumWithWallpaperAndFolder) -> Unit,
|
||||
animate: Boolean
|
||||
) {
|
||||
fun isValidUri(context: Context, uriString: String?): Boolean {
|
||||
val uri = uriString?.toUri()
|
||||
return try {
|
||||
uri?.let {
|
||||
val inputStream = context.contentResolver.openInputStream(it)
|
||||
inputStream?.close()
|
||||
}
|
||||
true
|
||||
} catch (e: Exception) { false }
|
||||
}
|
||||
|
||||
val modalBottomSheetState = rememberModalBottomSheetState()
|
||||
val scope = rememberCoroutineScope()
|
||||
ModalBottomSheet(
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.components
|
||||
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Notifications
|
||||
import androidx.compose.material3.AlertDialog
|
||||
import androidx.compose.material3.Button
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import com.anthonyla.paperize.R
|
||||
|
||||
/**
|
||||
* Dialog to let the user know of the app's potential delays when it comes to scheduling wallpapers.
|
||||
*/
|
||||
@Composable
|
||||
fun ShowDelayNoticeDialog(
|
||||
onDismissRequest: () -> Unit
|
||||
) {
|
||||
AlertDialog(
|
||||
onDismissRequest = { onDismissRequest() },
|
||||
icon = { Icon(Icons.Filled.Notifications, stringResource(R.string.delay_notice)) },
|
||||
title = {
|
||||
Text(stringResource(R.string.delay_notice_dialog))
|
||||
},
|
||||
text = {
|
||||
Text(stringResource(R.string.to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply))
|
||||
},
|
||||
confirmButton = {
|
||||
Button(
|
||||
onClick = { onDismissRequest() }
|
||||
) {
|
||||
Text(stringResource(R.string.ok))
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -57,12 +57,8 @@ data class AddEdit(val wallpaper: String)
|
||||
@Serializable
|
||||
data class WallpaperView(val wallpaper: String)
|
||||
|
||||
/** Reverted back to passing JSON due to bug in navigation compose causing crash
|
||||
/**
|
||||
* Data class for FolderView screen
|
||||
*/
|
||||
@Serializable
|
||||
data class FolderView(val folderName: String?, val wallpapers: List<String>)
|
||||
*/
|
||||
|
||||
sealed class NavScreens(val route: String) {
|
||||
data object FolderView : NavScreens("folder_view_screen")
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager
|
||||
|
||||
import com.anthonyla.paperize.core.SettingsConstants
|
||||
|
||||
/**
|
||||
* Data class for storing wallpaper alarm item
|
||||
* @param timeInMinutes1: Int - time in minutes for home wallpaper or both if scheduled together
|
||||
* @param timeInMinutes2: Int - time in minutes for lock wallpaper
|
||||
* @param scheduleSeparately: Boolean - schedule wallpapers separately
|
||||
*/
|
||||
data class WallpaperAlarmItem(
|
||||
val timeInMinutes1: Int = SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT,
|
||||
val timeInMinutes2: Int = SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT,
|
||||
val scheduleSeparately: Boolean = false
|
||||
)
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager
|
||||
|
||||
interface WallpaperAlarmScheduler {
|
||||
/**
|
||||
* Schedule a wallpaper alarm to change the wallpaper
|
||||
* @param wallpaperAlarmItem the wallpaper alarm item to schedule
|
||||
* @param origin where the request came from (null if not from a specific origin, 0 if home screen, 1 if lock screen, 2 if both)
|
||||
* @param changeImmediate whether to change the wallpaper immediately or just schedule the alarm
|
||||
* @param cancelImmediate whether to cancel all alarms before scheduling the new one
|
||||
*/
|
||||
fun scheduleWallpaperAlarm(wallpaperAlarmItem: WallpaperAlarmItem, origin: Int? = null, changeImmediate: Boolean = false, cancelImmediate: Boolean = false)
|
||||
|
||||
/**
|
||||
* Update the wallpaper alarm with new times without changing the wallpaper
|
||||
*/
|
||||
fun updateWallpaperAlarm(wallpaperAlarmItem: WallpaperAlarmItem)
|
||||
|
||||
/**
|
||||
* Update the wallpaper without changing the alarm
|
||||
*/
|
||||
fun updateWallpaper(scheduleSeparately: Boolean)
|
||||
|
||||
/**
|
||||
* Cancel all wallpaper alarms
|
||||
*/
|
||||
fun cancelWallpaperAlarm()
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import com.anthonyla.paperize.core.SettingsConstants
|
||||
import com.anthonyla.paperize.data.settings.SettingsDataStore
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.DelicateCoroutinesApi
|
||||
import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.launch
|
||||
import javax.inject.Inject
|
||||
import kotlin.coroutines.CoroutineContext
|
||||
import kotlin.coroutines.EmptyCoroutineContext
|
||||
|
||||
/**
|
||||
* Receiver for boot and time change and wallpaper change events to restart alarm manager
|
||||
*/
|
||||
@AndroidEntryPoint
|
||||
class WallpaperBootAndChangeReceiver : BroadcastReceiver() {
|
||||
@Inject lateinit var settingsDataStoreImpl: SettingsDataStore
|
||||
@SuppressLint("UnsafeProtectedBroadcastReceiver")
|
||||
override fun onReceive(context: Context, intent: Intent) = goAsync {
|
||||
try {
|
||||
val scheduler = WallpaperScheduler(context)
|
||||
val toggleChanger = settingsDataStoreImpl.getBoolean(SettingsConstants.ENABLE_CHANGER) ?: false
|
||||
if (toggleChanger) {
|
||||
val timeInMinutes1 = settingsDataStoreImpl.getInt(SettingsConstants.HOME_WALLPAPER_CHANGE_INTERVAL) ?: SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
val timeInMinutes2 = settingsDataStoreImpl.getInt(SettingsConstants.LOCK_WALLPAPER_CHANGE_INTERVAL) ?: SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
val scheduleSeparately = settingsDataStoreImpl.getBoolean(SettingsConstants.SCHEDULE_SEPARATELY) ?: false
|
||||
val alarmItem = WallpaperAlarmItem(
|
||||
timeInMinutes1 = timeInMinutes1,
|
||||
timeInMinutes2 = timeInMinutes2,
|
||||
scheduleSeparately = scheduleSeparately
|
||||
)
|
||||
val changeImmediate = intent.getBooleanExtra("changeImmediate", false)
|
||||
alarmItem.let{scheduler.scheduleWallpaperAlarm(it, null, changeImmediate, true)}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
|
||||
/* https://stackoverflow.com/questions/74111692/run-coroutine-functions-on-broadcast-receiver */
|
||||
private fun BroadcastReceiver.goAsync(
|
||||
context: CoroutineContext = EmptyCoroutineContext,
|
||||
block: suspend CoroutineScope.() -> Unit
|
||||
) {
|
||||
val pendingResult = goAsync()
|
||||
@OptIn(DelicateCoroutinesApi::class)
|
||||
GlobalScope.launch(context) {
|
||||
try {
|
||||
block()
|
||||
} finally {
|
||||
pendingResult.finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager
|
||||
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import com.anthonyla.paperize.core.SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
import com.anthonyla.paperize.core.Type
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_service.WallpaperService1
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_service.WallpaperService2
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
|
||||
/**
|
||||
* Receiver for the alarm manager to change wallpaper
|
||||
*/
|
||||
@AndroidEntryPoint
|
||||
class WallpaperReceiver: BroadcastReceiver() {
|
||||
override fun onReceive(context: Context?, intent: Intent?) {
|
||||
if (context != null) {
|
||||
val refresh = intent?.getBooleanExtra("refresh", false) ?: false
|
||||
if (refresh) {
|
||||
val serviceIntent = Intent(context, WallpaperService1::class.java).apply {
|
||||
action = WallpaperService1.Actions.REFRESH.toString()
|
||||
}
|
||||
context.startService(serviceIntent)
|
||||
WallpaperScheduler(context).scheduleRefresh()
|
||||
}
|
||||
else {
|
||||
val timeInMinutes1 = intent?.getIntExtra("timeInMinutes1", WALLPAPER_CHANGE_INTERVAL_DEFAULT) ?: WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
val timeInMinutes2 = intent?.getIntExtra("timeInMinutes2", WALLPAPER_CHANGE_INTERVAL_DEFAULT) ?: WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
val scheduleSeparately = intent?.getBooleanExtra("scheduleSeparately", false) ?: false
|
||||
val type = intent?.getIntExtra("type", Type.BOTH.ordinal) ?: Type.BOTH.ordinal
|
||||
val serviceIntent = Intent().apply {
|
||||
putExtra("timeInMinutes1", timeInMinutes1)
|
||||
putExtra("timeInMinutes2", timeInMinutes2)
|
||||
putExtra("scheduleSeparately", scheduleSeparately)
|
||||
putExtra("type", type)
|
||||
}
|
||||
if (type == Type.BOTH.ordinal || type == Type.HOME.ordinal) {
|
||||
serviceIntent.setClass(context, WallpaperService1::class.java).apply {
|
||||
action = WallpaperService1.Actions.START.toString()
|
||||
}
|
||||
} else {
|
||||
serviceIntent.setClass(context, WallpaperService2::class.java).apply {
|
||||
action = WallpaperService2.Actions.START.toString()
|
||||
}
|
||||
}
|
||||
context.startService(serviceIntent)
|
||||
|
||||
// Schedule next alarm for next wallpaper change
|
||||
val origin = intent?.getIntExtra("origin", -1)?.takeIf { it != -1 }
|
||||
WallpaperScheduler(context).scheduleWallpaperAlarm(
|
||||
WallpaperAlarmItem(
|
||||
timeInMinutes1 = timeInMinutes1,
|
||||
timeInMinutes2 = timeInMinutes2,
|
||||
scheduleSeparately = scheduleSeparately
|
||||
),
|
||||
origin
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,260 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager
|
||||
|
||||
import android.app.AlarmManager
|
||||
import android.app.PendingIntent
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.Build
|
||||
import com.anthonyla.paperize.core.Type
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_service.WallpaperService1
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_service.WallpaperService2
|
||||
import java.time.LocalDateTime
|
||||
import java.time.ZoneId
|
||||
|
||||
/**
|
||||
* This class is responsible for scheduling wallpaper alarms.
|
||||
* It uses the AlarmManager to schedule alarms for the WallpaperReceiver.
|
||||
* It also uses the WallpaperService to change the wallpaper due to receiver limitations.
|
||||
*/
|
||||
class WallpaperScheduler (
|
||||
private val context: Context,
|
||||
): WallpaperAlarmScheduler {
|
||||
private val alarmManager = context.getSystemService(Context.ALARM_SERVICE) as AlarmManager
|
||||
|
||||
/**
|
||||
* Schedules the wallpaper alarm based on the origin and changeImmediate
|
||||
*/
|
||||
override fun scheduleWallpaperAlarm(wallpaperAlarmItem: WallpaperAlarmItem, origin: Int?, changeImmediate: Boolean, cancelImmediate: Boolean) {
|
||||
if (cancelImmediate) cancelWallpaperAlarm()
|
||||
else {
|
||||
when(origin) {
|
||||
Type.HOME.ordinal -> cancelAlarm(Type.HOME)
|
||||
Type.LOCK.ordinal -> cancelAlarm(Type.LOCK)
|
||||
null -> {
|
||||
cancelAlarm(Type.HOME)
|
||||
cancelAlarm(Type.LOCK)
|
||||
cancelAlarm(Type.BOTH)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (wallpaperAlarmItem.scheduleSeparately) {
|
||||
when (origin) {
|
||||
Type.LOCK.ordinal -> {
|
||||
if (changeImmediate) changeWallpaperImmediate(wallpaperAlarmItem, Type.LOCK)
|
||||
scheduleWallpaper(wallpaperAlarmItem, Type.LOCK, origin)
|
||||
}
|
||||
Type.HOME.ordinal -> {
|
||||
if (changeImmediate) changeWallpaperImmediate(wallpaperAlarmItem, Type.HOME)
|
||||
scheduleWallpaper(wallpaperAlarmItem, Type.HOME, origin)
|
||||
}
|
||||
null -> {
|
||||
if (changeImmediate) {
|
||||
changeWallpaperImmediate(wallpaperAlarmItem, Type.LOCK)
|
||||
changeWallpaperImmediate(wallpaperAlarmItem, Type.HOME)
|
||||
}
|
||||
scheduleWallpaper(wallpaperAlarmItem, Type.LOCK, Type.LOCK.ordinal)
|
||||
scheduleWallpaper(wallpaperAlarmItem, Type.HOME, Type.HOME.ordinal)
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (changeImmediate) changeWallpaperImmediate(wallpaperAlarmItem, Type.BOTH)
|
||||
scheduleWallpaper(wallpaperAlarmItem, Type.BOTH)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the alarms
|
||||
*/
|
||||
override fun updateWallpaperAlarm(wallpaperAlarmItem: WallpaperAlarmItem) {
|
||||
cancelWallpaperAlarm()
|
||||
if (wallpaperAlarmItem.scheduleSeparately) {
|
||||
scheduleWallpaper(wallpaperAlarmItem, Type.LOCK, null, true)
|
||||
scheduleWallpaper(wallpaperAlarmItem, Type.HOME, null, true)
|
||||
}
|
||||
else {
|
||||
scheduleWallpaper(wallpaperAlarmItem, Type.BOTH, null, true)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the wallpaper without scheduling alarms
|
||||
*/
|
||||
override fun updateWallpaper(scheduleSeparately: Boolean) {
|
||||
if (scheduleSeparately) {
|
||||
updateWallpaper(Type.LOCK)
|
||||
updateWallpaper(Type.HOME)
|
||||
}
|
||||
else {
|
||||
updateWallpaper(Type.BOTH)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels all active alarms
|
||||
*/
|
||||
override fun cancelWallpaperAlarm() {
|
||||
cancelAlarm(Type.HOME)
|
||||
cancelAlarm(Type.LOCK)
|
||||
cancelAlarm(Type.BOTH)
|
||||
cancelAlarm(Type.REFRESH)
|
||||
}
|
||||
|
||||
/**
|
||||
* Schedules the wallpaper alarm based on type and time
|
||||
*/
|
||||
private fun scheduleWallpaper(wallpaperAlarmItem: WallpaperAlarmItem, type: Type, origin: Int? = null, update: Boolean = false) {
|
||||
val nextTime = when (type) {
|
||||
Type.HOME, Type.BOTH -> LocalDateTime.now().plusMinutes(wallpaperAlarmItem.timeInMinutes1.toLong())
|
||||
Type.LOCK -> LocalDateTime.now().plusMinutes(wallpaperAlarmItem.timeInMinutes2.toLong())
|
||||
else -> LocalDateTime.now()
|
||||
}
|
||||
val intent = Intent(context, WallpaperReceiver::class.java).apply {
|
||||
putExtra("timeInMinutes1", wallpaperAlarmItem.timeInMinutes1)
|
||||
putExtra("timeInMinutes2", wallpaperAlarmItem.timeInMinutes2)
|
||||
putExtra("scheduleSeparately", wallpaperAlarmItem.scheduleSeparately)
|
||||
putExtra("type", type.ordinal)
|
||||
putExtra("origin", origin)
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
if (!alarmManager.canScheduleExactAlarms()) {
|
||||
cancelWallpaperAlarm()
|
||||
}
|
||||
else {
|
||||
alarmManager.setExactAndAllowWhileIdle(
|
||||
AlarmManager.RTC_WAKEUP,
|
||||
nextTime.atZone(ZoneId.systemDefault()).toEpochSecond() * 1000,
|
||||
PendingIntent.getBroadcast(
|
||||
context,
|
||||
type.ordinal,
|
||||
intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
else {
|
||||
alarmManager.setExactAndAllowWhileIdle(
|
||||
AlarmManager.RTC_WAKEUP,
|
||||
nextTime.atZone(ZoneId.systemDefault()).toEpochSecond() * 1000,
|
||||
PendingIntent.getBroadcast(
|
||||
context,
|
||||
type.ordinal,
|
||||
intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
|
||||
)
|
||||
)
|
||||
}
|
||||
if (update) {
|
||||
val serviceIntent = Intent().apply {
|
||||
putExtra("timeInMinutes1", wallpaperAlarmItem.timeInMinutes1)
|
||||
putExtra("timeInMinutes2", wallpaperAlarmItem.timeInMinutes2)
|
||||
putExtra("scheduleSeparately", wallpaperAlarmItem.scheduleSeparately)
|
||||
putExtra("type", type.ordinal)
|
||||
}
|
||||
if (type == Type.BOTH || type == Type.HOME) {
|
||||
serviceIntent.setClass(context, WallpaperService1::class.java).apply {
|
||||
action = WallpaperService1.Actions.REQUEUE.toString()
|
||||
}
|
||||
} else {
|
||||
serviceIntent.setClass(context, WallpaperService2::class.java).apply {
|
||||
action = WallpaperService2.Actions.REQUEUE.toString()
|
||||
}
|
||||
}
|
||||
context.startService(serviceIntent)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Schedules a refresh alarm every 24hrs
|
||||
*/
|
||||
fun scheduleRefresh() {
|
||||
cancelAlarm(Type.REFRESH)
|
||||
val intent = Intent(context, WallpaperReceiver::class.java).apply {
|
||||
putExtra("refresh", true)
|
||||
}
|
||||
val nextMidnight = LocalDateTime.now().plusDays(1).withHour(0).withMinute(0).withSecond(0).withNano(0)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
if (!alarmManager.canScheduleExactAlarms()) {
|
||||
cancelWallpaperAlarm()
|
||||
}
|
||||
else {
|
||||
alarmManager.setExact(
|
||||
AlarmManager.RTC_WAKEUP,
|
||||
nextMidnight.atZone(ZoneId.systemDefault()).toEpochSecond() * 1000,
|
||||
PendingIntent.getBroadcast(
|
||||
context,
|
||||
Type.REFRESH.ordinal,
|
||||
intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
else {
|
||||
alarmManager.setExact(
|
||||
AlarmManager.RTC_WAKEUP,
|
||||
nextMidnight.atZone(ZoneId.systemDefault()).toEpochSecond() * 1000,
|
||||
PendingIntent.getBroadcast(
|
||||
context,
|
||||
Type.REFRESH.ordinal,
|
||||
intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Use the service to change the wallpaper
|
||||
*/
|
||||
private fun changeWallpaperImmediate(wallpaperAlarmItem: WallpaperAlarmItem, type: Type) {
|
||||
val serviceIntent = Intent().apply {
|
||||
putExtra("timeInMinutes1", wallpaperAlarmItem.timeInMinutes1)
|
||||
putExtra("timeInMinutes2", wallpaperAlarmItem.timeInMinutes2)
|
||||
putExtra("scheduleSeparately", wallpaperAlarmItem.scheduleSeparately)
|
||||
putExtra("type", type.ordinal)
|
||||
}
|
||||
if (type == Type.BOTH || type == Type.HOME) {
|
||||
serviceIntent.setClass(context, WallpaperService1::class.java).apply {
|
||||
action = WallpaperService1.Actions.START.toString()
|
||||
}
|
||||
} else {
|
||||
serviceIntent.setClass(context, WallpaperService2::class.java).apply {
|
||||
action = WallpaperService2.Actions.START.toString()
|
||||
}
|
||||
}
|
||||
context.startService(serviceIntent)
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the wallpaper without changing the alarm
|
||||
*/
|
||||
private fun updateWallpaper(type: Type) {
|
||||
val serviceIntent = Intent()
|
||||
if (type == Type.BOTH || type == Type.HOME) {
|
||||
serviceIntent.setClass(context, WallpaperService1::class.java).apply {
|
||||
action = WallpaperService1.Actions.UPDATE.toString()
|
||||
}
|
||||
} else {
|
||||
serviceIntent.setClass(context, WallpaperService2::class.java).apply {
|
||||
action = WallpaperService2.Actions.UPDATE.toString()
|
||||
}
|
||||
}
|
||||
context.startService(serviceIntent)
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels the alarm based on type
|
||||
*/
|
||||
private fun cancelAlarm(type: Type) {
|
||||
val pendingIntent = PendingIntent.getBroadcast(
|
||||
context,
|
||||
type.ordinal,
|
||||
Intent(context, WallpaperReceiver::class.java),
|
||||
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
|
||||
)
|
||||
alarmManager.cancel(pendingIntent)
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.wallpaper_service
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import com.anthonyla.paperize.core.SettingsConstants
|
||||
import com.anthonyla.paperize.data.settings.SettingsDataStore
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import javax.inject.Inject
|
||||
|
||||
@AndroidEntryPoint
|
||||
class WallpaperBootReceiver : BroadcastReceiver() {
|
||||
@Inject lateinit var settingsDataStoreImpl: SettingsDataStore
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
if (Intent.ACTION_BOOT_COMPLETED == intent.action) {
|
||||
val serviceIntent = Intent(context, WallpaperService::class.java)
|
||||
serviceIntent.action = WallpaperService.Actions.START.toString()
|
||||
runBlocking {
|
||||
val timeInMinutes1 = settingsDataStoreImpl.getInt(SettingsConstants.HOME_WALLPAPER_CHANGE_INTERVAL) ?: SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
val timeInMinutes2 = settingsDataStoreImpl.getInt(SettingsConstants.LOCK_WALLPAPER_CHANGE_INTERVAL) ?: SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
val scheduleSeparately = settingsDataStoreImpl.getBoolean(SettingsConstants.SCHEDULE_SEPARATELY) ?: false
|
||||
serviceIntent.putExtra("timeInMinutes1", timeInMinutes1)
|
||||
serviceIntent.putExtra("timeInMinutes2", timeInMinutes2)
|
||||
serviceIntent.putExtra("scheduleSeparately", scheduleSeparately)
|
||||
}
|
||||
context.startForegroundService(serviceIntent)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,29 +13,36 @@ import android.graphics.ImageDecoder
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Handler
|
||||
import android.os.HandlerThread
|
||||
import android.os.IBinder
|
||||
import android.os.Looper
|
||||
import android.util.DisplayMetrics
|
||||
import android.util.Log
|
||||
import androidx.core.app.NotificationCompat
|
||||
import androidx.core.net.toUri
|
||||
import androidx.documentfile.provider.DocumentFile
|
||||
import com.anthonyla.paperize.R
|
||||
import com.anthonyla.paperize.core.ScalingConstants
|
||||
import com.anthonyla.paperize.core.SettingsConstants
|
||||
import com.anthonyla.paperize.core.Type
|
||||
import com.anthonyla.paperize.core.blurBitmap
|
||||
import com.anthonyla.paperize.core.calculateInSampleSize
|
||||
import com.anthonyla.paperize.core.darkenBitmap
|
||||
import com.anthonyla.paperize.core.fillBitmap
|
||||
import com.anthonyla.paperize.core.fitBitmap
|
||||
import com.anthonyla.paperize.core.getImageDimensions
|
||||
import com.anthonyla.paperize.core.getWallpaperFromFolder
|
||||
import com.anthonyla.paperize.core.stretchBitmap
|
||||
import com.anthonyla.paperize.data.settings.SettingsDataStore
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.SelectedAlbum
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.Wallpaper
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.repository.AlbumRepository
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.repository.SelectedAlbumRepository
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.MainActivity
|
||||
import com.lazygeniouz.dfc.file.DocumentFileCompat
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.flow.first
|
||||
import kotlinx.coroutines.launch
|
||||
import java.io.IOException
|
||||
@@ -45,280 +52,137 @@ import java.time.format.FormatStyle
|
||||
import javax.inject.Inject
|
||||
import kotlin.math.min
|
||||
|
||||
|
||||
/**
|
||||
* Main service for changing the wallpaper if wallpapers are scheduled together
|
||||
*/
|
||||
@AndroidEntryPoint
|
||||
class WallpaperService: Service() {
|
||||
class WallpaperService1: Service() {
|
||||
private val handleThread = HandlerThread("MyThread1")
|
||||
private lateinit var workerHandler: Handler
|
||||
@Inject lateinit var selectedRepository: SelectedAlbumRepository
|
||||
@Inject lateinit var albumRepository: AlbumRepository
|
||||
@Inject lateinit var settingsDataStoreImpl: SettingsDataStore
|
||||
private val handler1 = Handler(Looper.getMainLooper())
|
||||
private val handler2 = Handler(Looper.getMainLooper())
|
||||
private lateinit var runnableCode1: Runnable
|
||||
private lateinit var runnableCode2: Runnable
|
||||
private var scheduleSeparately: Boolean = false
|
||||
private var timeInMinutes1: Int = SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
private var timeInMinutes2: Int = SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
private var nextSetTime1: LocalDateTime? = null
|
||||
private var nextSetTime2: LocalDateTime? = null
|
||||
private var scheduleSeparately: Boolean = false
|
||||
private var lastRan1: LocalDateTime? = null
|
||||
private var lastRan2: LocalDateTime? = null
|
||||
private var nextSetTime: LocalDateTime? = null
|
||||
|
||||
enum class Actions {
|
||||
START,
|
||||
REQUEUE,
|
||||
STOP,
|
||||
UPDATE
|
||||
UPDATE,
|
||||
REFRESH
|
||||
}
|
||||
|
||||
override fun onBind(p0: Intent?): IBinder? {
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
* Set up the runnable code to change the wallpaper to prevent runnableCode from being null
|
||||
*/
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
startForeground(1, createNotification())
|
||||
runnableCode1 = object : Runnable {
|
||||
override fun run() {
|
||||
val self = this
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
try {
|
||||
changeWallpaper(this@WallpaperService, true)
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in runnableCode", e)
|
||||
} finally {
|
||||
handler1.postDelayed(self, timeInMinutes1 * 60 * 1000L)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
runnableCode2 = object : Runnable {
|
||||
override fun run() {
|
||||
val self = this
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
try {
|
||||
changeWallpaper(this@WallpaperService, false)
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in runnableCode", e)
|
||||
} finally {
|
||||
handler2.postDelayed(self, timeInMinutes2 * 60 * 1000L + 10000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
handleThread.start()
|
||||
workerHandler = Handler(handleThread.looper)
|
||||
}
|
||||
|
||||
/**
|
||||
* Start the service and schedule the wallpaper change
|
||||
*/
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
when(intent?.action) {
|
||||
Actions.START.toString() -> {
|
||||
handler1.removeCallbacks(runnableCode1)
|
||||
handler2.removeCallbacks(runnableCode2)
|
||||
timeInMinutes1 = intent.getIntExtra("timeInMinutes1", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
timeInMinutes2 = intent.getIntExtra("timeInMinutes2", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
scheduleSeparately = intent.getBooleanExtra("scheduleSeparately", false)
|
||||
nextSetTime1 = null
|
||||
nextSetTime2 = null
|
||||
lastRan1 = null
|
||||
lastRan2 = null
|
||||
|
||||
if (!scheduleSeparately) {
|
||||
runnableCode1 = object : Runnable {
|
||||
override fun run() {
|
||||
val self = this
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
try {
|
||||
changeWallpaper(this@WallpaperService, null)
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in runnableCode", e)
|
||||
} finally {
|
||||
handler1.postDelayed(self, timeInMinutes1 * 60 * 1000L)
|
||||
}
|
||||
}
|
||||
if (intent != null) {
|
||||
when (intent.action) {
|
||||
Actions.START.toString() -> {
|
||||
timeInMinutes1 = intent.getIntExtra("timeInMinutes1", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
timeInMinutes2 = intent.getIntExtra("timeInMinutes2", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
scheduleSeparately = intent.getBooleanExtra("scheduleSeparately", false)
|
||||
val setHomeOrLock = if (scheduleSeparately) {
|
||||
when (intent.getIntExtra("type", Type.BOTH.ordinal)) {
|
||||
Type.HOME.ordinal -> true
|
||||
Type.LOCK.ordinal -> false
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
handler1.postDelayed(runnableCode1, 1000)
|
||||
} else { null }
|
||||
workerTaskStart(setHomeOrLock)
|
||||
}
|
||||
else {
|
||||
runnableCode1 = object : Runnable {
|
||||
override fun run() {
|
||||
val self = this
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
try {
|
||||
changeWallpaper(this@WallpaperService, true)
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in runnableCode", e)
|
||||
} finally {
|
||||
handler1.postDelayed(self, timeInMinutes1 * 60 * 1000L)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
handler1.postDelayed(runnableCode1, 1000)
|
||||
runnableCode2 = object : Runnable {
|
||||
override fun run() {
|
||||
val self = this
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
try {
|
||||
changeWallpaper(this@WallpaperService, false)
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in runnableCode", e)
|
||||
} finally {
|
||||
handler2.postDelayed(self, timeInMinutes2 * 60 * 1000L + 10000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
handler2.postDelayed(runnableCode2, 5000)
|
||||
Actions.REQUEUE.toString() -> {
|
||||
timeInMinutes1 = intent.getIntExtra("timeInMinutes1", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
timeInMinutes2 = intent.getIntExtra("timeInMinutes2", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
scheduleSeparately = intent.getBooleanExtra("scheduleSeparately", false)
|
||||
workerTaskRequeue()
|
||||
}
|
||||
}
|
||||
Actions.REQUEUE.toString() -> {
|
||||
handler1.removeCallbacks(runnableCode1)
|
||||
handler2.removeCallbacks(runnableCode2)
|
||||
timeInMinutes1 = intent.getIntExtra("timeInMinutes1", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
timeInMinutes2 = intent.getIntExtra("timeInMinutes2", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
scheduleSeparately = intent.getBooleanExtra("scheduleSeparately", false)
|
||||
nextSetTime1 = null
|
||||
nextSetTime2 = null
|
||||
lastRan1 = null
|
||||
lastRan2 = null
|
||||
|
||||
|
||||
val formatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)
|
||||
val currentTime = LocalDateTime.now()
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
settingsDataStoreImpl.putString(SettingsConstants.LAST_SET_TIME, currentTime.format(formatter))
|
||||
if (scheduleSeparately) {
|
||||
nextSetTime1 = currentTime.plusMinutes(timeInMinutes1.toLong())
|
||||
nextSetTime2 = currentTime.plusMinutes(timeInMinutes2.toLong())
|
||||
val earliestTime = (if (nextSetTime1!!.isBefore(nextSetTime2)) nextSetTime1 else nextSetTime2)!!.format(formatter)
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, earliestTime)
|
||||
}
|
||||
else {
|
||||
nextSetTime1 = currentTime.plusMinutes(timeInMinutes1.toLong())
|
||||
nextSetTime2 = nextSetTime1
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, currentTime.plusMinutes(timeInMinutes1.toLong()).format(formatter))
|
||||
}
|
||||
Actions.UPDATE.toString() -> {
|
||||
workerTaskUpdate()
|
||||
}
|
||||
|
||||
|
||||
val notification = createNotification()
|
||||
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
notificationManager.notify(1, notification)
|
||||
if (!scheduleSeparately) {
|
||||
runnableCode1 = object : Runnable {
|
||||
override fun run() {
|
||||
val self = this
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
try {
|
||||
changeWallpaper(this@WallpaperService, null)
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in runnableCode", e)
|
||||
} finally {
|
||||
handler1.postDelayed(self, timeInMinutes1 * 60 * 1000L)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
handler1.postDelayed(runnableCode1, timeInMinutes1 * 60 * 1000L)
|
||||
Actions.REFRESH.toString() -> {
|
||||
workerTaskRefresh()
|
||||
}
|
||||
else {
|
||||
runnableCode1 = object : Runnable {
|
||||
override fun run() {
|
||||
val self = this
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
try {
|
||||
changeWallpaper(this@WallpaperService, true)
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in runnableCode", e)
|
||||
} finally {
|
||||
handler1.postDelayed(self, timeInMinutes1 * 60 * 1000L)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
handler1.postDelayed(runnableCode1, timeInMinutes1 * 60 * 1000L)
|
||||
runnableCode2 = object : Runnable {
|
||||
override fun run() {
|
||||
val self = this
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
try {
|
||||
changeWallpaper(this@WallpaperService, false)
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in runnableCode", e)
|
||||
} finally {
|
||||
handler2.postDelayed(self, timeInMinutes2 * 60 * 1000L + 10000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
handler2.postDelayed(runnableCode2, timeInMinutes2 * 60 * 1000L + 10000)
|
||||
}
|
||||
}
|
||||
Actions.UPDATE.toString() -> {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
try {
|
||||
updateCurrentWallpaper(this@WallpaperService)
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in changing brightness", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
Actions.STOP.toString() -> {
|
||||
handler1.removeCallbacks(runnableCode1)
|
||||
handler2.removeCallbacks(runnableCode2)
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
settingsDataStoreImpl.putString(SettingsConstants.LAST_SET_TIME, "")
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, "")
|
||||
}
|
||||
stopSelf()
|
||||
}
|
||||
}
|
||||
return START_STICKY
|
||||
return START_NOT_STICKY
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up the service when it is destroyed
|
||||
*/
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
handler1.removeCallbacks(runnableCode1)
|
||||
handler2.removeCallbacks(runnableCode2)
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
settingsDataStoreImpl.putString(SettingsConstants.LAST_SET_TIME, "")
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, "")
|
||||
workerHandler.removeCallbacksAndMessages(null)
|
||||
handleThread.quitSafely()
|
||||
}
|
||||
|
||||
private fun workerTaskStart(setHomeOrLock: Boolean? = null) {
|
||||
workerHandler.post {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
if (scheduleSeparately) delay(5000)
|
||||
changeWallpaper(this@WallpaperService1, setHomeOrLock)
|
||||
}
|
||||
stopSelf()
|
||||
}
|
||||
}
|
||||
|
||||
private fun workerTaskRequeue() {
|
||||
workerHandler.post {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
nextSetTime1 = LocalDateTime.parse(settingsDataStoreImpl.getString(SettingsConstants.NEXT_SET_TIME_1))
|
||||
nextSetTime2 = LocalDateTime.parse(settingsDataStoreImpl.getString(SettingsConstants.NEXT_SET_TIME_2))
|
||||
nextSetTime = (if (nextSetTime1!!.isBefore(nextSetTime2)) nextSetTime1 else nextSetTime2)
|
||||
val notification = createNotification()
|
||||
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
notification?.let { notificationManager.notify(1, it) }
|
||||
}
|
||||
stopSelf()
|
||||
}
|
||||
}
|
||||
|
||||
private fun workerTaskUpdate(setHomeOrLock: Boolean? = null) {
|
||||
workerHandler.post {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
updateCurrentWallpaper(this@WallpaperService1, setHomeOrLock)
|
||||
}
|
||||
stopSelf()
|
||||
}
|
||||
}
|
||||
|
||||
private fun workerTaskRefresh() {
|
||||
workerHandler.post {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
refreshAlbum(this@WallpaperService1)
|
||||
}
|
||||
stopSelf()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a notification for the wallpaper service
|
||||
*/
|
||||
private fun createNotification(): Notification {
|
||||
private fun createNotification(): Notification? {
|
||||
val formatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)
|
||||
var earliestTime = when {
|
||||
nextSetTime1 != null && nextSetTime2 != null -> (if (nextSetTime1!!.isBefore(nextSetTime2)) nextSetTime1 else nextSetTime2)!!.format(formatter)
|
||||
nextSetTime1 != null -> nextSetTime1!!.format(formatter)
|
||||
nextSetTime2 != null -> nextSetTime2!!.format(formatter)
|
||||
else -> LocalDateTime.now().format(formatter)
|
||||
if (nextSetTime != null) {
|
||||
val intent = Intent(this, MainActivity::class.java)
|
||||
val pendingIntent = PendingIntent.getActivity(this, 3, intent, PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
return NotificationCompat.Builder(this, "wallpaper_service_channel")
|
||||
.setContentTitle(getString(R.string.app_name))
|
||||
.setContentText(getString(R.string.next_wallpaper_change, nextSetTime!!.format(formatter)))
|
||||
.setSmallIcon(R.drawable.notification_icon)
|
||||
.setContentIntent(pendingIntent)
|
||||
.build()
|
||||
}
|
||||
if (earliestTime != null) { // Edge case where numbers like 2131689515 pass through
|
||||
if (earliestTime.length <= 10) {
|
||||
earliestTime = LocalDateTime.now().format(formatter)
|
||||
}
|
||||
}
|
||||
|
||||
val intent = Intent(this, MainActivity::class.java)
|
||||
val pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
return NotificationCompat.Builder(this, "wallpaper_service_channel")
|
||||
.setContentTitle(getString(R.string.app_name))
|
||||
.setContentText(getString(R.string.next_wallpaper_change, earliestTime))
|
||||
.setSmallIcon(R.drawable.notification_icon)
|
||||
.setContentIntent(pendingIntent)
|
||||
.build()
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -336,6 +200,8 @@ class WallpaperService: Service() {
|
||||
val toggled = settingsDataStoreImpl.getBoolean(SettingsConstants.ENABLE_CHANGER) ?: false
|
||||
val setHome = settingsDataStoreImpl.getBoolean(SettingsConstants.HOME_WALLPAPER) ?: false
|
||||
val setLock = settingsDataStoreImpl.getBoolean(SettingsConstants.LOCK_WALLPAPER) ?: false
|
||||
nextSetTime1 = LocalDateTime.parse(settingsDataStoreImpl.getString(SettingsConstants.NEXT_SET_TIME_1))
|
||||
nextSetTime2 = LocalDateTime.parse(settingsDataStoreImpl.getString(SettingsConstants.NEXT_SET_TIME_2))
|
||||
if (!toggled || (!setHome && !setLock)) {
|
||||
onDestroy()
|
||||
return
|
||||
@@ -347,26 +213,27 @@ class WallpaperService: Service() {
|
||||
if (setHomeOrLock == null) {
|
||||
nextSetTime1 = currentTime.plusMinutes(timeInMinutes1.toLong())
|
||||
nextSetTime2 = nextSetTime1
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, currentTime.plusMinutes(timeInMinutes1.toLong()).format(formatter))
|
||||
nextSetTime = nextSetTime1
|
||||
nextSetTime?.let { settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, it.format(formatter)) }
|
||||
}
|
||||
else {
|
||||
if (setHomeOrLock) { nextSetTime1 = currentTime.plusMinutes(timeInMinutes1.toLong()) }
|
||||
else { nextSetTime2 = currentTime.plusMinutes(timeInMinutes2.toLong()) }
|
||||
if (nextSetTime1 == null && nextSetTime2 != null) {
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, nextSetTime2!!.format(formatter))
|
||||
}
|
||||
else if (nextSetTime1 != null && nextSetTime2 == null) {
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, nextSetTime1!!.format(formatter))
|
||||
}
|
||||
else {
|
||||
val earliestTime = if (nextSetTime1!!.isBefore(nextSetTime2)) nextSetTime1 else nextSetTime2
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, earliestTime!!.format(formatter))
|
||||
nextSetTime = if (nextSetTime1 == null && nextSetTime2 != null) {
|
||||
nextSetTime2
|
||||
} else if (nextSetTime1 != null && nextSetTime2 == null) {
|
||||
nextSetTime1
|
||||
} else {
|
||||
if (nextSetTime1!!.isBefore(nextSetTime2)) nextSetTime1 else nextSetTime2
|
||||
}
|
||||
nextSetTime?.let { settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, it.format(formatter)) }
|
||||
}
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_1, nextSetTime1.toString())
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_2, nextSetTime2.toString())
|
||||
|
||||
val notification = createNotification()
|
||||
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
notificationManager.notify(1, notification)
|
||||
notification?.let { notificationManager.notify(1, it) }
|
||||
|
||||
val scaling = settingsDataStoreImpl.getString(SettingsConstants.WALLPAPER_SCALING)?.let { ScalingConstants.valueOf(it) } ?: ScalingConstants.FILL
|
||||
val darken = settingsDataStoreImpl.getBoolean(SettingsConstants.DARKEN) ?: false
|
||||
@@ -397,9 +264,7 @@ class WallpaperService: Service() {
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = if (setHomeOrLock) it.album.homeWallpapersInQueue.drop(1) else it.album.homeWallpapersInQueue,
|
||||
lockWallpapersInQueue = if (!setHomeOrLock) it.album.lockWallpapersInQueue.drop(1) else it.album.lockWallpapersInQueue,
|
||||
currentHomeWallpaper = if (setHomeOrLock) wallpaper else it.album.currentHomeWallpaper,
|
||||
currentLockWallpaper = if (!setHomeOrLock) wallpaper else it.album.currentLockWallpaper
|
||||
lockWallpapersInQueue = if (!setHomeOrLock) it.album.lockWallpapersInQueue.drop(1) else it.album.lockWallpapersInQueue
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 },
|
||||
)
|
||||
@@ -444,9 +309,7 @@ class WallpaperService: Service() {
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = if (setHomeOrLock) newWallpaperInQueue.drop(1) else it.album.homeWallpapersInQueue,
|
||||
lockWallpapersInQueue = if (!setHomeOrLock) newWallpaperInQueue.drop(1) else it.album.lockWallpapersInQueue,
|
||||
currentHomeWallpaper = if (setHomeOrLock) wallpaper else it.album.currentHomeWallpaper,
|
||||
currentLockWallpaper = if (!setHomeOrLock) wallpaper else it.album.currentLockWallpaper
|
||||
lockWallpapersInQueue = if (!setHomeOrLock) newWallpaperInQueue.drop(1) else it.album.lockWallpapersInQueue
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 }
|
||||
)
|
||||
@@ -489,9 +352,7 @@ class WallpaperService: Service() {
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.drop(1),
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper },
|
||||
currentHomeWallpaper = null,
|
||||
currentLockWallpaper = null
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper }
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 },
|
||||
)
|
||||
@@ -536,9 +397,7 @@ class WallpaperService: Service() {
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.drop(1),
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper },
|
||||
currentHomeWallpaper = null,
|
||||
currentLockWallpaper = null
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper }
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 }
|
||||
)
|
||||
@@ -566,7 +425,7 @@ class WallpaperService: Service() {
|
||||
}
|
||||
}
|
||||
|
||||
private suspend fun updateCurrentWallpaper(context: Context) {
|
||||
private suspend fun updateCurrentWallpaper(context: Context, setHomeOrLock: Boolean? = null) {
|
||||
try {
|
||||
val selectedAlbum = selectedRepository.getSelectedAlbum().first().firstOrNull()
|
||||
if (selectedAlbum == null) {
|
||||
@@ -580,10 +439,6 @@ class WallpaperService: Service() {
|
||||
onDestroy()
|
||||
return
|
||||
}
|
||||
val formatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)
|
||||
val time = LocalDateTime.now()
|
||||
settingsDataStoreImpl.putString(SettingsConstants.LAST_SET_TIME, time.format(formatter))
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, time.plusMinutes(timeInMinutes1.toLong()).format(formatter))
|
||||
val scaling = settingsDataStoreImpl.getString(SettingsConstants.WALLPAPER_SCALING)?.let { ScalingConstants.valueOf(it) } ?: ScalingConstants.FILL
|
||||
val darken = settingsDataStoreImpl.getBoolean(SettingsConstants.DARKEN) ?: false
|
||||
val darkenPercentage = settingsDataStoreImpl.getInt(SettingsConstants.DARKEN_PERCENTAGE) ?: 100
|
||||
@@ -593,37 +448,7 @@ class WallpaperService: Service() {
|
||||
selectedAlbum.let { it ->
|
||||
val wallpaper1 = it.album.currentHomeWallpaper
|
||||
val wallpaper2 = it.album.currentLockWallpaper
|
||||
if (wallpaper1 != null) {
|
||||
if (!setWallpaper(
|
||||
context = context,
|
||||
wallpaper = wallpaper1.toUri(),
|
||||
darken = darken,
|
||||
darkenPercent = darkenPercentage,
|
||||
scaling = scaling,
|
||||
setHome = setHome,
|
||||
setLock = setLock,
|
||||
setLockOrHome = true,
|
||||
blur = blur,
|
||||
blurPercent = blurPercentage
|
||||
)) {
|
||||
selectedAlbum.wallpapers.firstOrNull{ it.wallpaperUri == wallpaper1 }
|
||||
?.let { it1 ->
|
||||
selectedRepository.deleteWallpaper(it1)
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.filter { it != wallpaper1 },
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper1 },
|
||||
currentHomeWallpaper = null
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 },
|
||||
)
|
||||
)
|
||||
albumRepository.deleteWallpaper(it1)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (wallpaper2 != null) {
|
||||
if (wallpaper2 != null && (setHomeOrLock == null || setHomeOrLock == false)) {
|
||||
if (!setWallpaper(
|
||||
context = context,
|
||||
wallpaper = wallpaper2.toUri(),
|
||||
@@ -636,27 +461,50 @@ class WallpaperService: Service() {
|
||||
blur = blur,
|
||||
blurPercent = blurPercentage
|
||||
)) {
|
||||
selectedAlbum.wallpapers.firstOrNull{ it.wallpaperUri == wallpaper2 }
|
||||
?.let { it1 ->
|
||||
selectedRepository.deleteWallpaper(it1)
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.filter { it != wallpaper1 },
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper1 },
|
||||
currentLockWallpaper = null
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 },
|
||||
selectedAlbum.wallpapers.firstOrNull{ it.wallpaperUri == wallpaper2 }
|
||||
?.let { it1 ->
|
||||
selectedRepository.deleteWallpaper(it1)
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.filter { it != wallpaper1 },
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper1 }
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 },
|
||||
)
|
||||
)
|
||||
)
|
||||
albumRepository.deleteWallpaper(it1)
|
||||
}
|
||||
albumRepository.deleteWallpaper(it1)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (wallpaper1 != null || wallpaper2 != null) {
|
||||
val notification = createNotification()
|
||||
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
notificationManager.notify(1, notification)
|
||||
if (wallpaper1 != null && (setHomeOrLock == null || setHomeOrLock == true)) {
|
||||
if (!setWallpaper(
|
||||
context = context,
|
||||
wallpaper = wallpaper1.toUri(),
|
||||
darken = darken,
|
||||
darkenPercent = darkenPercentage,
|
||||
scaling = scaling,
|
||||
setHome = setHome,
|
||||
setLock = setLock,
|
||||
setLockOrHome = true,
|
||||
blur = blur,
|
||||
blurPercent = blurPercentage
|
||||
)) {
|
||||
selectedAlbum.wallpapers.firstOrNull{ it.wallpaperUri == wallpaper1 }
|
||||
?.let { it1 ->
|
||||
selectedRepository.deleteWallpaper(it1)
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.filter { it != wallpaper1 },
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper1 }
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 },
|
||||
)
|
||||
)
|
||||
albumRepository.deleteWallpaper(it1)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -677,21 +525,31 @@ class WallpaperService: Service() {
|
||||
setHome: Boolean, setLock: Boolean,
|
||||
setLockOrHome: Boolean? = null,
|
||||
blur: Boolean = false,
|
||||
blurPercent: Int
|
||||
blurPercent: Int,
|
||||
): Boolean {
|
||||
val wallpaperManager = WallpaperManager.getInstance(context)
|
||||
try {
|
||||
val imageSize = wallpaper.getImageDimensions(context) ?: return false
|
||||
val aspectRatio = imageSize.height.toFloat() / imageSize.width.toFloat()
|
||||
val device = context.resources.displayMetrics
|
||||
val targetWidth = min(4 * device.widthPixels, imageSize.width)
|
||||
val targetWidth = min(device.widthPixels, imageSize.width)
|
||||
val targetHeight = (targetWidth * aspectRatio).toInt()
|
||||
|
||||
val bitmap = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
val source = ImageDecoder.createSource(context.contentResolver, wallpaper)
|
||||
ImageDecoder.decodeBitmap(source) { decoder, _, _ ->
|
||||
decoder.setTargetSize(targetWidth, targetHeight)
|
||||
decoder.isMutableRequired = true
|
||||
try {
|
||||
val source = ImageDecoder.createSource(context.contentResolver, wallpaper)
|
||||
ImageDecoder.decodeBitmap(source) { decoder, _, _ ->
|
||||
decoder.setTargetSize(targetWidth, targetHeight)
|
||||
decoder.isMutableRequired = true
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
context.contentResolver.openInputStream(wallpaper)?.use { inputStream ->
|
||||
val options = BitmapFactory.Options().apply {
|
||||
inSampleSize = calculateInSampleSize(imageSize, targetWidth, targetHeight)
|
||||
inMutable = true
|
||||
}
|
||||
BitmapFactory.decodeStream(inputStream, null, options)
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -763,4 +621,102 @@ class WallpaperService: Service() {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
private fun refreshAlbum(context: Context) {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
try {
|
||||
var albumWithWallpapers = albumRepository.getAlbumsWithWallpaperAndFolder().first()
|
||||
albumWithWallpapers.forEach { albumWithWallpaper ->
|
||||
// Delete wallpaper if the URI is invalid
|
||||
val invalidWallpapers = albumWithWallpaper.wallpapers.filterNot { wallpaper ->
|
||||
val file = DocumentFileCompat.fromSingleUri(context, wallpaper.wallpaperUri.toUri())
|
||||
file?.exists() == true
|
||||
}
|
||||
if (invalidWallpapers.isNotEmpty()) {
|
||||
albumRepository.deleteWallpaperList(invalidWallpapers)
|
||||
}
|
||||
|
||||
// Update folder cover uri and wallpapers uri
|
||||
albumWithWallpaper.folders.forEach { folder ->
|
||||
try {
|
||||
DocumentFileCompat.fromTreeUri(context, folder.folderUri.toUri())?.let { folderDirectory ->
|
||||
if (!folderDirectory.isDirectory()) {
|
||||
albumRepository.deleteFolder(folder)
|
||||
} else {
|
||||
val wallpapers = getWallpaperFromFolder(folder.folderUri, context)
|
||||
val folderCoverFile = folder.coverUri?.let { DocumentFileCompat.fromSingleUri(context, it.toUri()) }
|
||||
val folderCover = folderCoverFile?.takeIf { it.exists() }?.uri?.toString() ?: wallpapers.randomOrNull()
|
||||
albumRepository.updateFolder(folder.copy(coverUri = folderCover, wallpapers = wallpapers))
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
DocumentFile.fromTreeUri(context, folder.folderUri.toUri())?.let { folderDirectory ->
|
||||
if (!folderDirectory.isDirectory) {
|
||||
albumRepository.deleteFolder(folder)
|
||||
} else {
|
||||
val wallpapers = getWallpaperFromFolder(folder.folderUri, context)
|
||||
val folderCoverFile = folder.coverUri?.let { DocumentFileCompat.fromSingleUri(context, it.toUri()) }
|
||||
val folderCover = folderCoverFile?.takeIf { it.exists() }?.uri?.toString() ?: wallpapers.randomOrNull()
|
||||
albumRepository.updateFolder(folder.copy(coverUri = folderCover, wallpapers = wallpapers))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Delete empty albums
|
||||
if (albumWithWallpaper.wallpapers.isEmpty() && albumWithWallpaper.folders.all { it.wallpapers.isEmpty() }) {
|
||||
albumRepository.deleteAlbum(albumWithWallpaper.album)
|
||||
}
|
||||
}
|
||||
|
||||
// Update selected album
|
||||
albumWithWallpapers = albumRepository.getAlbumsWithWallpaperAndFolder().first()
|
||||
val selectedAlbum = selectedRepository.getSelectedAlbum().first().firstOrNull()
|
||||
if (selectedAlbum != null) {
|
||||
albumWithWallpapers.find { it.album.initialAlbumName == selectedAlbum.album.initialAlbumName }
|
||||
?.let { foundAlbum ->
|
||||
val albumNameHashCode = foundAlbum.album.initialAlbumName.hashCode()
|
||||
val wallpapers: List<Wallpaper> =
|
||||
foundAlbum.wallpapers + foundAlbum.folders.flatMap { folder ->
|
||||
folder.wallpapers.map { wallpaper ->
|
||||
Wallpaper(
|
||||
initialAlbumName = foundAlbum.album.initialAlbumName,
|
||||
wallpaperUri = wallpaper,
|
||||
key = wallpaper.hashCode() + albumNameHashCode,
|
||||
)
|
||||
}
|
||||
}
|
||||
val wallpapersUri = wallpapers.map { it.wallpaperUri }.toSet()
|
||||
if (wallpapersUri.isEmpty()) {
|
||||
selectedRepository.deleteAll()
|
||||
onDestroy()
|
||||
}
|
||||
else {
|
||||
val newSelectedAlbum = SelectedAlbum(
|
||||
album = foundAlbum.album.copy(
|
||||
homeWallpapersInQueue = if (selectedAlbum.album.homeWallpapersInQueue.firstOrNull() in wallpapersUri) {
|
||||
val firstElement = selectedAlbum.album.homeWallpapersInQueue.first()
|
||||
val modifiedWallpapersUri = wallpapersUri.filter { it != firstElement }
|
||||
listOf(firstElement) + modifiedWallpapersUri.shuffled()
|
||||
} else { wallpapersUri.shuffled() },
|
||||
lockWallpapersInQueue = if (selectedAlbum.album.lockWallpapersInQueue.firstOrNull() in wallpapersUri) {
|
||||
val firstElement = selectedAlbum.album.lockWallpapersInQueue.first()
|
||||
val modifiedWallpapersUri = wallpapersUri.filter { it != firstElement }
|
||||
listOf(firstElement) + modifiedWallpapersUri.shuffled()
|
||||
} else { wallpapersUri.shuffled() },
|
||||
currentHomeWallpaper = if (selectedAlbum.album.currentHomeWallpaper in wallpapersUri) selectedAlbum.album.currentHomeWallpaper else selectedAlbum.album.homeWallpapersInQueue.firstOrNull { it in wallpapersUri },
|
||||
currentLockWallpaper = if (selectedAlbum.album.currentLockWallpaper in wallpapersUri) selectedAlbum.album.currentLockWallpaper else selectedAlbum.album.lockWallpapersInQueue.firstOrNull { it in wallpapersUri }
|
||||
),
|
||||
wallpapers = wallpapers
|
||||
)
|
||||
selectedRepository.upsertSelectedAlbum(newSelectedAlbum)
|
||||
}
|
||||
} ?: run { onDestroy() }
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error refreshing album", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,610 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.wallpaper_service
|
||||
|
||||
import android.app.Notification
|
||||
import android.app.NotificationManager
|
||||
import android.app.PendingIntent
|
||||
import android.app.Service
|
||||
import android.app.WallpaperManager
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.graphics.Bitmap
|
||||
import android.graphics.BitmapFactory
|
||||
import android.graphics.ImageDecoder
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Handler
|
||||
import android.os.HandlerThread
|
||||
import android.os.IBinder
|
||||
import android.util.DisplayMetrics
|
||||
import android.util.Log
|
||||
import androidx.core.app.NotificationCompat
|
||||
import androidx.core.net.toUri
|
||||
import com.anthonyla.paperize.R
|
||||
import com.anthonyla.paperize.core.ScalingConstants
|
||||
import com.anthonyla.paperize.core.SettingsConstants
|
||||
import com.anthonyla.paperize.core.Type
|
||||
import com.anthonyla.paperize.core.blurBitmap
|
||||
import com.anthonyla.paperize.core.calculateInSampleSize
|
||||
import com.anthonyla.paperize.core.darkenBitmap
|
||||
import com.anthonyla.paperize.core.fillBitmap
|
||||
import com.anthonyla.paperize.core.fitBitmap
|
||||
import com.anthonyla.paperize.core.getImageDimensions
|
||||
import com.anthonyla.paperize.core.stretchBitmap
|
||||
import com.anthonyla.paperize.data.settings.SettingsDataStore
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.repository.AlbumRepository
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.repository.SelectedAlbumRepository
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.MainActivity
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.flow.first
|
||||
import kotlinx.coroutines.launch
|
||||
import java.io.IOException
|
||||
import java.time.LocalDateTime
|
||||
import java.time.format.DateTimeFormatter
|
||||
import java.time.format.FormatStyle
|
||||
import javax.inject.Inject
|
||||
import kotlin.math.min
|
||||
|
||||
/**
|
||||
* Used in conjunction with [WallpaperService1] to schedule home screen and lock screen separately -- sets lock screen wallpaper
|
||||
*/
|
||||
@AndroidEntryPoint
|
||||
class WallpaperService2: Service() {
|
||||
private val handleThread = HandlerThread("MyThread2")
|
||||
private lateinit var workerHandler: Handler
|
||||
@Inject lateinit var selectedRepository: SelectedAlbumRepository
|
||||
@Inject lateinit var albumRepository: AlbumRepository
|
||||
@Inject lateinit var settingsDataStoreImpl: SettingsDataStore
|
||||
private var scheduleSeparately: Boolean = false
|
||||
private var timeInMinutes1: Int = SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
private var timeInMinutes2: Int = SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT
|
||||
private var nextSetTime1: LocalDateTime? = null
|
||||
private var nextSetTime2: LocalDateTime? = null
|
||||
private var nextSetTime: LocalDateTime? = null
|
||||
|
||||
enum class Actions {
|
||||
START,
|
||||
REQUEUE,
|
||||
UPDATE
|
||||
}
|
||||
|
||||
override fun onBind(p0: Intent?): IBinder? {
|
||||
return null
|
||||
}
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
handleThread.start()
|
||||
workerHandler = Handler(handleThread.looper)
|
||||
}
|
||||
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
if (intent != null) {
|
||||
when (intent.action) {
|
||||
Actions.START.toString() -> {
|
||||
timeInMinutes1 = intent.getIntExtra("timeInMinutes1", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
timeInMinutes2 = intent.getIntExtra("timeInMinutes2", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
scheduleSeparately = intent.getBooleanExtra("scheduleSeparately", false)
|
||||
val setHomeOrLock = if (scheduleSeparately) {
|
||||
when (intent.getIntExtra("type", Type.BOTH.ordinal)) {
|
||||
Type.HOME.ordinal -> true
|
||||
Type.LOCK.ordinal -> false
|
||||
else -> null
|
||||
}
|
||||
} else { null }
|
||||
workerTaskStart(setHomeOrLock)
|
||||
}
|
||||
Actions.REQUEUE.toString() -> {
|
||||
timeInMinutes1 = intent.getIntExtra("timeInMinutes1", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
timeInMinutes2 = intent.getIntExtra("timeInMinutes2", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
|
||||
scheduleSeparately = intent.getBooleanExtra("scheduleSeparately", false)
|
||||
workerTaskRequeue()
|
||||
}
|
||||
Actions.UPDATE.toString() -> {
|
||||
workerTaskUpdate()
|
||||
}
|
||||
}
|
||||
}
|
||||
return START_NOT_STICKY
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
workerHandler.removeCallbacksAndMessages(null)
|
||||
handleThread.quitSafely()
|
||||
}
|
||||
|
||||
private fun workerTaskStart(setHomeOrLock: Boolean? = null) {
|
||||
workerHandler.post {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
changeWallpaper(this@WallpaperService2, setHomeOrLock)
|
||||
if (setHomeOrLock != null && !setHomeOrLock) {
|
||||
updateCurrentWallpaper(this@WallpaperService2, true)
|
||||
}
|
||||
}
|
||||
stopSelf()
|
||||
}
|
||||
}
|
||||
|
||||
private fun workerTaskRequeue() {
|
||||
workerHandler.post {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
nextSetTime1 = LocalDateTime.parse(settingsDataStoreImpl.getString(SettingsConstants.NEXT_SET_TIME_1))
|
||||
nextSetTime2 = LocalDateTime.parse(settingsDataStoreImpl.getString(SettingsConstants.NEXT_SET_TIME_2))
|
||||
nextSetTime = (if (nextSetTime1!!.isBefore(nextSetTime2)) nextSetTime1 else nextSetTime2)
|
||||
val notification = createNotification()
|
||||
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
notification?.let { notificationManager.notify(1, it) }
|
||||
}
|
||||
stopSelf()
|
||||
}
|
||||
}
|
||||
|
||||
private fun workerTaskUpdate(setHomeOrLock: Boolean? = null) {
|
||||
workerHandler.post {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
updateCurrentWallpaper(this@WallpaperService2, setHomeOrLock)
|
||||
}
|
||||
stopSelf()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a notification for the wallpaper service
|
||||
*/
|
||||
private fun createNotification(): Notification? {
|
||||
val formatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)
|
||||
if (nextSetTime != null) {
|
||||
val intent = Intent(this, MainActivity::class.java)
|
||||
val pendingIntent = PendingIntent.getActivity(this, 3, intent, PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
return NotificationCompat.Builder(this, "wallpaper_service_channel")
|
||||
.setContentTitle(getString(R.string.app_name))
|
||||
.setContentText(getString(R.string.next_wallpaper_change, nextSetTime!!.format(formatter)))
|
||||
.setSmallIcon(R.drawable.notification_icon)
|
||||
.setContentIntent(pendingIntent)
|
||||
.build()
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
* Changes the wallpaper to the next wallpaper in the queue of the selected album
|
||||
* If none left, reshuffle the wallpapers and pick the first one
|
||||
*/
|
||||
private suspend fun changeWallpaper(context: Context, setHomeOrLock: Boolean? = null) {
|
||||
try {
|
||||
val selectedAlbum = selectedRepository.getSelectedAlbum().first().firstOrNull()
|
||||
if (selectedAlbum == null) {
|
||||
onDestroy()
|
||||
return
|
||||
}
|
||||
else {
|
||||
val toggled = settingsDataStoreImpl.getBoolean(SettingsConstants.ENABLE_CHANGER) ?: false
|
||||
val setHome = settingsDataStoreImpl.getBoolean(SettingsConstants.HOME_WALLPAPER) ?: false
|
||||
val setLock = settingsDataStoreImpl.getBoolean(SettingsConstants.LOCK_WALLPAPER) ?: false
|
||||
nextSetTime1 = LocalDateTime.parse(settingsDataStoreImpl.getString(SettingsConstants.NEXT_SET_TIME_1))
|
||||
nextSetTime2 = LocalDateTime.parse(settingsDataStoreImpl.getString(SettingsConstants.NEXT_SET_TIME_2))
|
||||
if (!toggled || (!setHome && !setLock)) {
|
||||
onDestroy()
|
||||
return
|
||||
}
|
||||
val formatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)
|
||||
val currentTime = LocalDateTime.now()
|
||||
settingsDataStoreImpl.putString(SettingsConstants.LAST_SET_TIME, currentTime.format(formatter))
|
||||
|
||||
if (setHomeOrLock == null) {
|
||||
nextSetTime1 = currentTime.plusMinutes(timeInMinutes1.toLong())
|
||||
nextSetTime2 = nextSetTime1
|
||||
nextSetTime = nextSetTime1
|
||||
nextSetTime?.let { settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, it.format(formatter)) }
|
||||
}
|
||||
else {
|
||||
if (setHomeOrLock) { nextSetTime1 = currentTime.plusMinutes(timeInMinutes1.toLong()) }
|
||||
else { nextSetTime2 = currentTime.plusMinutes(timeInMinutes2.toLong()) }
|
||||
if (nextSetTime1 == null && nextSetTime2 != null) {
|
||||
nextSetTime = nextSetTime2
|
||||
}
|
||||
else if (nextSetTime1 != null && nextSetTime2 == null) {
|
||||
nextSetTime = nextSetTime1
|
||||
}
|
||||
else {
|
||||
nextSetTime = if (nextSetTime1!!.isBefore(nextSetTime2)) nextSetTime1 else nextSetTime2
|
||||
}
|
||||
nextSetTime?.let { settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME, it.format(formatter)) }
|
||||
}
|
||||
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_1, nextSetTime1.toString())
|
||||
settingsDataStoreImpl.putString(SettingsConstants.NEXT_SET_TIME_2, nextSetTime2.toString())
|
||||
|
||||
val notification = createNotification()
|
||||
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
notification?.let { notificationManager.notify(1, it) }
|
||||
|
||||
val scaling = settingsDataStoreImpl.getString(SettingsConstants.WALLPAPER_SCALING)?.let { ScalingConstants.valueOf(it) } ?: ScalingConstants.FILL
|
||||
val darken = settingsDataStoreImpl.getBoolean(SettingsConstants.DARKEN) ?: false
|
||||
val darkenPercentage = settingsDataStoreImpl.getInt(SettingsConstants.DARKEN_PERCENTAGE) ?: 100
|
||||
val blur = settingsDataStoreImpl.getBoolean(SettingsConstants.BLUR) ?: false
|
||||
val blurPercentage = settingsDataStoreImpl.getInt(SettingsConstants.BLUR_PERCENTAGE) ?: 0
|
||||
|
||||
selectedAlbum.let { it ->
|
||||
if (setHomeOrLock != null) {
|
||||
var wallpaper = if (setHomeOrLock) it.album.homeWallpapersInQueue.firstOrNull() else it.album.lockWallpapersInQueue.firstOrNull()
|
||||
if (wallpaper != null) {
|
||||
if (!setWallpaper(
|
||||
context = context,
|
||||
wallpaper = wallpaper.toUri(),
|
||||
darken = darken,
|
||||
darkenPercent = darkenPercentage,
|
||||
scaling = scaling,
|
||||
setHome = setHome,
|
||||
setLock = setLock,
|
||||
setLockOrHome = setHomeOrLock,
|
||||
blur = blur,
|
||||
blurPercent = blurPercentage
|
||||
)) {
|
||||
selectedAlbum.wallpapers.firstOrNull { it.wallpaperUri == wallpaper }
|
||||
?.let { it1 ->
|
||||
selectedRepository.deleteWallpaper(it1)
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = if (setHomeOrLock) it.album.homeWallpapersInQueue.drop(1) else it.album.homeWallpapersInQueue,
|
||||
lockWallpapersInQueue = if (!setHomeOrLock) it.album.lockWallpapersInQueue.drop(1) else it.album.lockWallpapersInQueue,
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 },
|
||||
)
|
||||
)
|
||||
albumRepository.deleteWallpaper(it1)
|
||||
}
|
||||
} else {
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = if (setHomeOrLock) it.album.homeWallpapersInQueue.drop(1) else it.album.homeWallpapersInQueue,
|
||||
lockWallpapersInQueue = if (!setHomeOrLock) it.album.lockWallpapersInQueue.drop(1) else it.album.lockWallpapersInQueue,
|
||||
currentHomeWallpaper = if (setHomeOrLock) wallpaper else it.album.currentHomeWallpaper,
|
||||
currentLockWallpaper = if (!setHomeOrLock) wallpaper else it.album.currentLockWallpaper
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
// No more wallpapers in the queue -- reshuffle the wallpapers
|
||||
else {
|
||||
val newWallpaperInQueue = it.wallpapers.map { it.wallpaperUri }.shuffled()
|
||||
wallpaper = newWallpaperInQueue.firstOrNull()
|
||||
if (wallpaper != null) {
|
||||
if (!setWallpaper(
|
||||
context = context,
|
||||
wallpaper = wallpaper.toUri(),
|
||||
darken = darken,
|
||||
darkenPercent = darkenPercentage,
|
||||
scaling = scaling,
|
||||
setHome = setHome,
|
||||
setLock = setLock,
|
||||
setLockOrHome = setHomeOrLock,
|
||||
blur = blur,
|
||||
blurPercent = blurPercentage
|
||||
)
|
||||
) {
|
||||
selectedAlbum.wallpapers.firstOrNull { it.wallpaperUri == wallpaper }
|
||||
?.let { it1 ->
|
||||
selectedRepository.deleteWallpaper(it1)
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = if (setHomeOrLock) newWallpaperInQueue.drop(1) else it.album.homeWallpapersInQueue,
|
||||
lockWallpapersInQueue = if (!setHomeOrLock) newWallpaperInQueue.drop(1) else it.album.lockWallpapersInQueue
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 }
|
||||
)
|
||||
)
|
||||
albumRepository.deleteWallpaper(it1)
|
||||
}
|
||||
} else {
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = if (setHomeOrLock) newWallpaperInQueue.drop(1) else it.album.homeWallpapersInQueue,
|
||||
lockWallpapersInQueue = if (!setHomeOrLock) newWallpaperInQueue.drop(1) else it.album.lockWallpapersInQueue,
|
||||
currentHomeWallpaper = if (setHomeOrLock) wallpaper else it.album.currentHomeWallpaper,
|
||||
currentLockWallpaper = if (!setHomeOrLock) wallpaper else it.album.currentLockWallpaper
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
} else { onDestroy() }
|
||||
}
|
||||
}
|
||||
else {
|
||||
var wallpaper = it.album.homeWallpapersInQueue.firstOrNull()
|
||||
if (wallpaper != null) {
|
||||
if (!setWallpaper(
|
||||
context = context,
|
||||
wallpaper = wallpaper.toUri(),
|
||||
darken = darken,
|
||||
darkenPercent = darkenPercentage,
|
||||
scaling = scaling,
|
||||
setHome = setHome,
|
||||
setLock = setLock,
|
||||
blur = blur,
|
||||
blurPercent = blurPercentage
|
||||
)) {
|
||||
selectedAlbum.wallpapers.firstOrNull { it.wallpaperUri == wallpaper }
|
||||
?.let { it1 ->
|
||||
selectedRepository.deleteWallpaper(it1)
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.drop(1),
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper }
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 },
|
||||
)
|
||||
)
|
||||
albumRepository.deleteWallpaper(it1)
|
||||
}
|
||||
} else {
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.drop(1),
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper },
|
||||
currentHomeWallpaper = wallpaper,
|
||||
currentLockWallpaper = wallpaper,
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
// No more wallpapers in the queue -- reshuffle the wallpapers
|
||||
else {
|
||||
val newWallpaperInQueue = it.wallpapers.map { it.wallpaperUri }.shuffled()
|
||||
wallpaper = newWallpaperInQueue.firstOrNull()
|
||||
if (wallpaper != null) {
|
||||
if (!setWallpaper(
|
||||
context = context,
|
||||
wallpaper = wallpaper.toUri(),
|
||||
darken = darken,
|
||||
darkenPercent = darkenPercentage,
|
||||
scaling = scaling,
|
||||
setHome = setHome,
|
||||
setLock = setLock,
|
||||
setLockOrHome = setHomeOrLock,
|
||||
blur = blur,
|
||||
blurPercent = blurPercentage
|
||||
)
|
||||
) {
|
||||
selectedAlbum.wallpapers.firstOrNull { it.wallpaperUri == wallpaper }
|
||||
?.let { it1 ->
|
||||
selectedRepository.deleteWallpaper(it1)
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.drop(1),
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper }
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 }
|
||||
)
|
||||
)
|
||||
albumRepository.deleteWallpaper(it1)
|
||||
}
|
||||
} else {
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = newWallpaperInQueue.drop(1),
|
||||
currentHomeWallpaper = wallpaper,
|
||||
currentLockWallpaper = wallpaper
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
} else { onDestroy() }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in changing wallpaper", e)
|
||||
}
|
||||
}
|
||||
|
||||
private suspend fun updateCurrentWallpaper(context: Context, setHomeOrLock: Boolean? = null) {
|
||||
try {
|
||||
val selectedAlbum = selectedRepository.getSelectedAlbum().first().firstOrNull()
|
||||
if (selectedAlbum == null) {
|
||||
onDestroy()
|
||||
return
|
||||
}
|
||||
else {
|
||||
val setHome = settingsDataStoreImpl.getBoolean(SettingsConstants.HOME_WALLPAPER) ?: false
|
||||
val setLock = settingsDataStoreImpl.getBoolean(SettingsConstants.LOCK_WALLPAPER) ?: false
|
||||
if (!setHome && !setLock) {
|
||||
onDestroy()
|
||||
return
|
||||
}
|
||||
val scaling = settingsDataStoreImpl.getString(SettingsConstants.WALLPAPER_SCALING)?.let { ScalingConstants.valueOf(it) } ?: ScalingConstants.FILL
|
||||
val darken = settingsDataStoreImpl.getBoolean(SettingsConstants.DARKEN) ?: false
|
||||
val darkenPercentage = settingsDataStoreImpl.getInt(SettingsConstants.DARKEN_PERCENTAGE) ?: 100
|
||||
val blur = settingsDataStoreImpl.getBoolean(SettingsConstants.BLUR) ?: false
|
||||
val blurPercentage = settingsDataStoreImpl.getInt(SettingsConstants.BLUR_PERCENTAGE) ?: 0
|
||||
|
||||
selectedAlbum.let { it ->
|
||||
val wallpaper1 = it.album.currentHomeWallpaper
|
||||
val wallpaper2 = it.album.currentLockWallpaper
|
||||
if (wallpaper2 != null && (setHomeOrLock == null || setHomeOrLock == false)) {
|
||||
if (!setWallpaper(
|
||||
context = context,
|
||||
wallpaper = wallpaper2.toUri(),
|
||||
darken = darken,
|
||||
darkenPercent = darkenPercentage,
|
||||
scaling = scaling,
|
||||
setHome = setHome,
|
||||
setLock = setLock,
|
||||
setLockOrHome = false,
|
||||
blur = blur,
|
||||
blurPercent = blurPercentage
|
||||
)) {
|
||||
selectedAlbum.wallpapers.firstOrNull{ it.wallpaperUri == wallpaper2 }
|
||||
?.let { it1 ->
|
||||
selectedRepository.deleteWallpaper(it1)
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.filter { it != wallpaper1 },
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper1 }
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 },
|
||||
)
|
||||
)
|
||||
albumRepository.deleteWallpaper(it1)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (wallpaper1 != null && (setHomeOrLock == null || setHomeOrLock == true)) {
|
||||
if (!setWallpaper(
|
||||
context = context,
|
||||
wallpaper = wallpaper1.toUri(),
|
||||
darken = darken,
|
||||
darkenPercent = darkenPercentage,
|
||||
scaling = scaling,
|
||||
setHome = setHome,
|
||||
setLock = setLock,
|
||||
setLockOrHome = true,
|
||||
blur = blur,
|
||||
blurPercent = blurPercentage
|
||||
)) {
|
||||
selectedAlbum.wallpapers.firstOrNull{ it.wallpaperUri == wallpaper1 }
|
||||
?.let { it1 ->
|
||||
selectedRepository.deleteWallpaper(it1)
|
||||
selectedRepository.upsertSelectedAlbum(
|
||||
it.copy(
|
||||
album = it.album.copy(
|
||||
homeWallpapersInQueue = it.album.homeWallpapersInQueue.filter { it != wallpaper1 },
|
||||
lockWallpapersInQueue = it.album.lockWallpapersInQueue.filter { it != wallpaper1 }
|
||||
),
|
||||
wallpapers = it.wallpapers.filter { it == it1 },
|
||||
)
|
||||
)
|
||||
albumRepository.deleteWallpaper(it1)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error in updating", e)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the wallpaper to the given uri
|
||||
*/
|
||||
private fun setWallpaper(
|
||||
context: Context,
|
||||
wallpaper: Uri,
|
||||
darken: Boolean,
|
||||
darkenPercent: Int,
|
||||
scaling: ScalingConstants,
|
||||
setHome: Boolean, setLock: Boolean,
|
||||
setLockOrHome: Boolean? = null,
|
||||
blur: Boolean = false,
|
||||
blurPercent: Int,
|
||||
): Boolean {
|
||||
val wallpaperManager = WallpaperManager.getInstance(context)
|
||||
try {
|
||||
val imageSize = wallpaper.getImageDimensions(context) ?: return false
|
||||
val aspectRatio = imageSize.height.toFloat() / imageSize.width.toFloat()
|
||||
val device = context.resources.displayMetrics
|
||||
val targetWidth = min(device.widthPixels, imageSize.width)
|
||||
val targetHeight = (targetWidth * aspectRatio).toInt()
|
||||
|
||||
val bitmap = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
try {
|
||||
val source = ImageDecoder.createSource(context.contentResolver, wallpaper)
|
||||
ImageDecoder.decodeBitmap(source) { decoder, _, _ ->
|
||||
decoder.setTargetSize(targetWidth, targetHeight)
|
||||
decoder.isMutableRequired = true
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
context.contentResolver.openInputStream(wallpaper)?.use { inputStream ->
|
||||
val options = BitmapFactory.Options().apply {
|
||||
inSampleSize = calculateInSampleSize(imageSize, targetWidth, targetHeight)
|
||||
inMutable = true
|
||||
}
|
||||
BitmapFactory.decodeStream(inputStream, null, options)
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
context.contentResolver.openInputStream(wallpaper)?.use { inputStream ->
|
||||
val options = BitmapFactory.Options().apply {
|
||||
inSampleSize = calculateInSampleSize(imageSize, targetWidth, targetHeight)
|
||||
inMutable = true
|
||||
}
|
||||
BitmapFactory.decodeStream(inputStream, null, options)
|
||||
}
|
||||
}
|
||||
|
||||
if (bitmap == null) return false
|
||||
else {
|
||||
processBitmap(device, bitmap, darken, darkenPercent, scaling, blur, blurPercent)?.let { image ->
|
||||
when {
|
||||
setLockOrHome == true -> wallpaperManager.setBitmap(image, null, true, WallpaperManager.FLAG_SYSTEM)
|
||||
setLockOrHome == false -> wallpaperManager.setBitmap(image, null, true, WallpaperManager.FLAG_LOCK)
|
||||
setHome && setLock -> wallpaperManager.setBitmap(image, null, true, WallpaperManager.FLAG_LOCK or WallpaperManager.FLAG_SYSTEM)
|
||||
setHome -> wallpaperManager.setBitmap(image, null, true, WallpaperManager.FLAG_SYSTEM)
|
||||
setLock -> wallpaperManager.setBitmap(image, null, true, WallpaperManager.FLAG_LOCK)
|
||||
else -> {}
|
||||
}
|
||||
image.recycle()
|
||||
}
|
||||
bitmap.recycle()
|
||||
}
|
||||
return true
|
||||
} catch (e: IOException) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error setting wallpaper", e)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Darkens the bitmap by the given percentage and returns it
|
||||
* 0 - lightest, 100 - darkest
|
||||
*/
|
||||
private fun processBitmap(
|
||||
device: DisplayMetrics,
|
||||
source: Bitmap, darken: Boolean,
|
||||
darkenPercent: Int,
|
||||
scaling: ScalingConstants,
|
||||
blur: Boolean,
|
||||
blurPercent: Int
|
||||
): Bitmap? {
|
||||
try {
|
||||
var processedBitmap = source
|
||||
|
||||
// Apply wallpaper scaling effects
|
||||
processedBitmap = when (scaling) {
|
||||
ScalingConstants.FILL -> fillBitmap(processedBitmap, device.widthPixels, device.heightPixels)
|
||||
ScalingConstants.FIT -> fitBitmap(processedBitmap, device.widthPixels, device.heightPixels)
|
||||
ScalingConstants.STRETCH -> stretchBitmap(processedBitmap, device.widthPixels, device.heightPixels)
|
||||
}
|
||||
|
||||
// Apply brightness effect
|
||||
if (darken && darkenPercent < 100) {
|
||||
processedBitmap = darkenBitmap(processedBitmap, darkenPercent)
|
||||
}
|
||||
|
||||
// Apply blur effect
|
||||
if (blur && blurPercent > 0) {
|
||||
processedBitmap = blurBitmap(processedBitmap, blurPercent)
|
||||
}
|
||||
return processedBitmap
|
||||
} catch (e: Exception) {
|
||||
Log.e("PaperizeWallpaperChanger", "Error darkening bitmap", e)
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.wallpaper_tile
|
||||
|
||||
import android.content.Intent
|
||||
import android.service.quicksettings.TileService
|
||||
import com.anthonyla.paperize.data.settings.SettingsDataStore
|
||||
import com.anthonyla.paperize.feature.wallpaper.wallpaper_alarmmanager.WallpaperBootAndChangeReceiver
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import javax.inject.Inject
|
||||
|
||||
/**
|
||||
* Service for the quick settings tile to change the wallpaper
|
||||
*/
|
||||
@AndroidEntryPoint
|
||||
class ChangeWallpaperTileService: TileService() {
|
||||
@Inject lateinit var settingsDataStoreImpl: SettingsDataStore
|
||||
|
||||
override fun onTileAdded() {
|
||||
super.onTileAdded()
|
||||
}
|
||||
|
||||
override fun onStartListening() {
|
||||
super.onStartListening()
|
||||
}
|
||||
|
||||
override fun onStopListening() {
|
||||
super.onStopListening()
|
||||
}
|
||||
|
||||
override fun onClick() {
|
||||
super.onClick()
|
||||
val intent = Intent(this, WallpaperBootAndChangeReceiver::class.java).putExtra("changeImmediate", true)
|
||||
sendBroadcast(intent)
|
||||
}
|
||||
|
||||
override fun onTileRemoved() {
|
||||
super.onTileRemoved()
|
||||
}
|
||||
}
|
||||
@@ -82,7 +82,7 @@
|
||||
<string name="selected_count">%1$s gekies</string>
|
||||
<string name="please_read_and_agree_to_the_following_privacy_notice_to_use_the_app">Lees asseblief en stem in tot die volgende privaatheidskennisgewing om die toepassing te gebruik.</string>
|
||||
<string name="privacy_notice">Privaatheidskennisgewing</string>
|
||||
<string name="please_read_and_agree_to_the_privacy_notice">Lees en stem asseblief in tot die privaatheidskennisgewing.</string>
|
||||
<string name="please_read_and_agree_to_the_privacy_notice">Lees asseblief en stem in tot die privaatheidskennisgewing.</string>
|
||||
<string name="view">Beskou</string>
|
||||
<string name="welcome_animation">Welkom animasie</string>
|
||||
<string name="notification_bell_animation">Kennisgewing klok animasie</string>
|
||||
@@ -120,7 +120,7 @@
|
||||
<string name="privacy_data_collection_title">Data-insameling</string>
|
||||
<string name="privacy_data_collection_content">Kennisgewingstoegang: %1$s versoek kennisgewingtoegang om jou van gepersonaliseerde plakpapieraanbevelings te voorsien gebaseer op jou kennisgewings. Ons stoor geen kennisgewinginhoud of persoonlik identifiseerbare inligting (PII) buite jou toestel nie.\n\nPlaaslike lêers: %1$s kry toegang tot lêers wat op jou toestel gestoor is sodat jy dit as agtergronde kan stel. Ons laai nie hierdie lêers op of dra dit oor na enige eksterne bedieners nie.</string>
|
||||
<string name="privacy_information_usage_title">Inligtingsgebruik</string>
|
||||
<string name="privacy_information_usage_content">Persoonlike data: Ons versamel of stoor geen persoonlike data soos name, e-posadresse of telefoonnommers nie.\n\nGebruiksanalise: %1$s spoor nie jou gebruiksgedrag na of versamel nie analitiese data nie.</string>
|
||||
<string name="privacy_information_usage_content">Persoonlike data: Ons versamel of stoor geen persoonlike data soos name, e-posadresse of telefoonnommers nie.\n\nGebruiksanalise: %1$s spoor nie jou gebruiksgedrag na of versamel ontledingsdata nie.</string>
|
||||
<string name="privacy_data_security_title">Datasekuriteit</string>
|
||||
<string name="privacy_data_security_content">Berging op toestel: Alle data wat deur %1$s gebruik word, bly op jou toestel. Ons versend of stoor geen data ekstern nie.</string>
|
||||
<string name="privacy_third_party_services_title">Derdepartydienste</string>
|
||||
@@ -152,5 +152,6 @@
|
||||
<string name="next_wallpaper_change">Volgende muurpapierverandering: %1$s</string>
|
||||
<string name="delay_notice">Vertragingskennisgewing</string>
|
||||
<string name="delay_notice_dialog">Vertragingskennisgewing</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Om batterygebruik te verminder, kan die verandering van agtergronde dalk vertragings hê sodra dit geskeduleer is. Wanneer die toestel slaap, kan die muurpapier langer neem om aan te bring.</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Om batterygebruik te verminder, kan die verandering van agtergronde \'n paar vertragings hê sodra dit geskeduleer is. Wanneer die toestel slaap, kan die muurpapier langer neem om aan te bring.</string>
|
||||
<string name="change_wallpaper">Verander plakpapier</string>
|
||||
</resources>
|
||||
@@ -0,0 +1,173 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Paperize</string>
|
||||
<string name="SettingsIcon">اختيارات</string>
|
||||
<string name="dropdownmenu_settings">الإعدادات</string>
|
||||
<string name="home_screen">الرئيسية</string>
|
||||
<string name="wallpaper_screen">الخلفية</string>
|
||||
<string name="library_screen">المكتبة</string>
|
||||
<string name="settings_screen">الإعدادات</string>
|
||||
<string name="settings_back">ارجع</string>
|
||||
<string name="LibraryFloatingButton">ضيف للمكتبة</string>
|
||||
<string name="set_wallpaper_description">شغٌَل الخلفية المتحركة</string>
|
||||
<string name="add_wallpaper">حط خلفية</string>
|
||||
<string name="add_images">حط صور</string>
|
||||
<string name="add_folder">حط مجلد</string>
|
||||
<string name="contact_button">اتصل</string>
|
||||
<string name="image_is_selected">اختارت الصورة</string>
|
||||
<string name="image_is_not_selected">ما اختارتش الصورة</string>
|
||||
<string name="select_all_images_for_deletion">عَلٌِم على كل الصور للمسح</string>
|
||||
<string name="delete_confirmation">متأكد عايز تمسح</string>
|
||||
<string name="all_images_selected_for_deletion">كل الصور متعلِّم عليهم للمسح</string>
|
||||
<string name="add_album">حط ألبوم</string>
|
||||
<string name="add_wallpaper_screen">حط شاشة للخلفية</string>
|
||||
<string name="enter_the_name_of_the_album">دخَّل اسم الألبوم</string>
|
||||
<string name="album_name">اسم الألبوم</string>
|
||||
<string name="cancel">الغى</string>
|
||||
<string name="save">احفظ</string>
|
||||
<string name="delete_album">امسح</string>
|
||||
<string name="change_name">عَدِّل الاسم</string>
|
||||
<string name="click_to_select_a_different_album">اضغط عشان تختار ألبوم تانى</string>
|
||||
<string name="no_icon">مافيش أيقونة</string>
|
||||
<string name="no_album_selected">مافيش ألبوم مُختَار</string>
|
||||
<string name="currently_selected_album">الألبوم المخُتَار</string>
|
||||
<string name="stop_the_album">وَقَّف الألبوم</string>
|
||||
<string name="more_options">اختيارات أكتر</string>
|
||||
<string name="startup">ابدأ</string>
|
||||
<string name="agree">موافق</string>
|
||||
<string name="welcome">أهلاً</string>
|
||||
<string name="notifications">الإشعارات</string>
|
||||
<string name="continue_button">ياللا بينا</string>
|
||||
<string name="notification_permission_is_required_for_this_app_to_work_properly">لازم إذن الإشعارات عشان يشتغل البرنامج كويس</string>
|
||||
<string name="allow">اسمح</string>
|
||||
<string name="notification_info_message">ممكن تِشَغَّل الإشعارات عشان تعرف لما البرنامج يبقى شغًَال فى الخلفية.</string>
|
||||
<string name="set_as_lock_screen">ثبت لشاشة القفل</string>
|
||||
<string name="lock_screen">شاشة القفل</string>
|
||||
<string name="home">الشاشة الرئيسية</string>
|
||||
<string name="last_change">آخر تغيير</string>
|
||||
<string name="next_change">التغيير الجاى</string>
|
||||
<string name="privacy_policy">سياسة الخصوصية</string>
|
||||
<string name="privacy_screen">شاشة الخصوصية</string>
|
||||
<string name="licenses">التراخيص</string>
|
||||
<string name="licenses_screen">شاشة التراخيص</string>
|
||||
<string name="contact">اتصل</string>
|
||||
<string name="contact_the_author_by_email">ابعت لصاحب البرنامج على البريد الالكترونى</string>
|
||||
<string name="reset_to_default">ارجع للوضع الافتراضى</string>
|
||||
<string name="reset_all_data">عيد ظبط كل البيانات</string>
|
||||
<string name="are_you_sure_you_want_to_reset_all_settings_and_data_to_default">متأكد إنك عايز تعيد ظبط كل الإعدادات و البيانات للوضع الافتراضى؟</string>
|
||||
<string name="confirm">أيوة</string>
|
||||
<string name="spotlight_animation">تحريك بقعة الضوء</string>
|
||||
<string name="circle_2_animation">تحريك الدايرة ٢</string>
|
||||
<string name="circle_1_animation">تحريك الدايرة ١</string>
|
||||
<string name="circle_3_animation">تحريك الدايرة ٣</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">مُغَيِّر الخلفية شغَّال.</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">مُغَيِّر الخلفية مَطفى.</string>
|
||||
<string name="dismiss">الغى</string>
|
||||
<string name="has_been_unselected">%1$s مش متعَلِّم عليه.</string>
|
||||
<string name="interval_home">الشاشة الرئيسية | %1$s</string>
|
||||
<string name="interval_lock">شاشة القفل | %1$s</string>
|
||||
<string name="interval">الفترة | %1$s</string>
|
||||
<plurals name="minutes">
|
||||
<item quantity="zero">ولا دقيقة (%d)</item>
|
||||
<item quantity="one">دقيقة واحدة (%d)</item>
|
||||
<item quantity="two">دقيقتين (%d)</item>
|
||||
<item quantity="few">%d دقايق</item>
|
||||
<item quantity="many">%d دقايق</item>
|
||||
<item quantity="other">%d دقيقة</item>
|
||||
</plurals>
|
||||
<plurals name="hours">
|
||||
<item quantity="zero">ولا ساعة (%d)</item>
|
||||
<item quantity="one">ساعة واحدة (%d)</item>
|
||||
<item quantity="two">ساعتين (%d)</item>
|
||||
<item quantity="few">%d ساعات</item>
|
||||
<item quantity="many">%d ساعات</item>
|
||||
<item quantity="other">%d ساعة</item>
|
||||
</plurals>
|
||||
<plurals name="days">
|
||||
<item quantity="zero">ولا يوم (%d)</item>
|
||||
<item quantity="one">يوم واحد (%d)</item>
|
||||
<item quantity="two">يومين (%d)</item>
|
||||
<item quantity="few">%d أيام</item>
|
||||
<item quantity="many">%d أيام</item>
|
||||
<item quantity="other">%d يوم</item>
|
||||
</plurals>
|
||||
<string name="selected_count">%1$s متعَلِّم عليه</string>
|
||||
<string name="please_read_and_agree_to_the_following_privacy_notice_to_use_the_app">لو سمحت اقرا و وافق على إشعار الخصوصية الجاى عشان تستخدم البرنامج.</string>
|
||||
<string name="privacy_notice">إشعار الخصوصية</string>
|
||||
<string name="please_read_and_agree_to_the_privacy_notice">لو سمحت اقرا و وافق على إشعار الخصوصية.</string>
|
||||
<string name="view">ورينى</string>
|
||||
<string name="welcome_animation">حركة الترحيب</string>
|
||||
<string name="notification_bell_animation">تحريك جرز الإشعارات</string>
|
||||
<string name="delete_these">امسح دول؟</string>
|
||||
<string name="are_you_sure_you_want_to_delete_these_wallpapers">انت متأكد إنك عايز تمسح الخلفيات دى؟</string>
|
||||
<string name="are_you_sure_you_want_to_delete_this">انت متأكد إنك عايز تمسح ده؟</string>
|
||||
<string name="delete_album_question">امسح الألبوم؟</string>
|
||||
<string name="animation">التحريك</string>
|
||||
<string name="increase_visual_appeal">زيادة الجاذبية البصرية</string>
|
||||
<string name="dark_mode">الوضع الغامق</string>
|
||||
<string name="automatic_device_mode">وضع الجهاز التلقائى</string>
|
||||
<string name="light_mode">الوضع الفاتح</string>
|
||||
<string name="easier_on_the_eyes">أسهل على العيون</string>
|
||||
<string name="dynamic_theme">السيم الديناميكى</string>
|
||||
<string name="material_you">ألوان متماشية مع النظام</string>
|
||||
<string name="dynamic_theming">التسييم الديناميكى</string>
|
||||
<string name="click_here_to_view_the_licenses">اضغط هنا عشان تشوف التراخيص</string>
|
||||
<string name="click_here_to_view_our_privacy_policy">اضغط عشان تشوف سياسة الخصوصية بتاعتنا</string>
|
||||
<string name="add_images_btn">حط صورة</string>
|
||||
<string name="add_folder_btn">حط مجلد</string>
|
||||
<string name="version">الإصدار %1$s</string>
|
||||
<string name="appearance">المظهر</string>
|
||||
<string name="about">عَنَّا</string>
|
||||
<string name="coming_soon">قريباً</string>
|
||||
<string name="new_album">ألبوم جديد</string>
|
||||
<string name="wallpapers">الخلفيات</string>
|
||||
<string name="translation">الترجمة</string>
|
||||
<string name="help_translate_the_app_on_crowdin">ساعد على ترجمة البرنامج على Crowdin!</string>
|
||||
<plurals name="wallpaper_count">
|
||||
<item quantity="zero">ولا خلفية (%d)</item>
|
||||
<item quantity="one">خلفية واحدة (%d)</item>
|
||||
<item quantity="two">خلفيتين (%d)</item>
|
||||
<item quantity="few">%d خلفيات</item>
|
||||
<item quantity="many">%d خلفيات</item>
|
||||
<item quantity="other">%d خلفية</item>
|
||||
</plurals>
|
||||
<string name="privacy_intro_title">المقدمة</string>
|
||||
<string name="privacy_intro_content">أهلاً بيك فى %1$s! إشعار الخصوصية ده بيوضح ازاى إحنا بنجَمَّع، و نستخدم، و نحمى معلوماتك الشخصية لما تستخدم برنامج التيليفون بتاعنا. باستخدامك لـ %1$s، بتوافق على الشروط اللى متوضَّحَة فى الإشعار ده.</string>
|
||||
<string name="privacy_data_collection_title">جمع البيانات</string>
|
||||
<string name="privacy_data_collection_content">استخدام الإشعارات: %1$s عايز يستخدم الإشعارات عشان يبعت لك توصيات خلفية مُخَصَّصَة بناءً على إشعاراتك. إحنا مش بنخَزِّن أي محتوى إشعارات أو معلومات تعريف شخصية (م ت ش) برى جهازك.\n\nالملفات المحلية: %1$s بيستخدم الملفات المِتخَزِّنَة على جهازك عشان تحطها كخلفيات. إحنا مش بنحَمِّل أو ننقل الملفات دى لأي خوادم خارجية.</string>
|
||||
<string name="privacy_information_usage_title">استخدام المعلومات</string>
|
||||
<string name="privacy_information_usage_content">البيانات الشخصية: احنا مش بنجَمَّع أو نخزن أي بيانات شخصية زى الأسماء أو عناوين البريد الإلكترونى أو أرقام التليفونات.\n\nتحليلات الاستخدام: %1$s مش بيتَّبع سلوك الاستخدام بتاعك أو يجَمَّع بيانات التحليلات.</string>
|
||||
<string name="privacy_data_security_title">أمن البيانات</string>
|
||||
<string name="privacy_data_security_content">التخزين على الجهاز: كل البيانات التي بيستخدمها %1$s بتفضل على جهازك. احنا مش بننقل أو نخَزِّن أي بيانات برى.</string>
|
||||
<string name="privacy_third_party_services_title">خدمات من جهات تانية</string>
|
||||
<string name="privacy_third_party_services_content">الإعلانات: %1$s مش بيعرض إعلانات من جهات تانية.\n\nالروابط الخارجية: برنامجنا ممكن يكون فيه روابط لمواقع خارجية. خلى بالك احنا مش مسؤولين عن ممارسات الخصوصية للمواقع دى.</string>
|
||||
<string name="privacy_children_privacy_title">خصوصية الأطفال</string>
|
||||
<string name="privacy_children_privacy_content">%1$s مش مُخَصَّص للأطفال تحت ١٣ سنة. احنا مش بنجَمَّع أى معلومات من الأطفال عن قصد.</string>
|
||||
<string name="privacy_changes_notice_title">اللى اتغير فى الإشعار ده</string>
|
||||
<string name="privacy_changes_notice_content">احنا ممكن نحدِّث إشعار الخصوصية ده من وقت للتانى. أى تغييرات هتبان فى البرنامج وعلى موقعنا.</string>
|
||||
<string name="privacy_contact_us_title">اتصل بينا</string>
|
||||
<string name="privacy_contact_us_content">لو عندك أى أسئلة أو استفسارات بشأن إشعار الخصوصية ده، اتصل بيا على %1$s.</string>
|
||||
<string name="no_albums_found">مافيش ألبومات موجودة</string>
|
||||
<string name="disable_live_wallpaper">وَقَّف الخلفية المتحركة</string>
|
||||
<string name="live_wallpaper_detected">دى خلفية متحركة</string>
|
||||
<string name="please_disable_your_live_wallpaper_to_use_the_wallpaper_changer">لو سمحت وَقَّ خلفية الشاشة المتحركة عشان تستخدم مُغَيِّر الخلفية.</string>
|
||||
<string name="ok">ماشى، تمام</string>
|
||||
<string name="percentage">%1$s٪</string>
|
||||
<string name="fill">املى</string>
|
||||
<string name="fit">قَيِّفها</string>
|
||||
<string name="stretch">مِدَّها</string>
|
||||
<string name="wallpaper_scaling">حجم الخلفية</string>
|
||||
<string name="change_brightness">غَيَّر السطوع</string>
|
||||
<string name="home_screen_btn">الشاشة الرئيسية</string>
|
||||
<string name="lock_screen_btn">شاشة القفل</string>
|
||||
<string name="individual_scheduling">جدولة فردية</string>
|
||||
<string name="show_interval_sliders">بَيِّن شريط الفترات</string>
|
||||
<string name="interval_text">فترة زمنية</string>
|
||||
<string name="change_blur">غَيَّر التغييم</string>
|
||||
<string name="paperize_is_running">توريق شغال</string>
|
||||
<string name="next_wallpaper_change">تغيير الخلفية الجاى: %1$s</string>
|
||||
<string name="delay_notice">إشعار التأخير</string>
|
||||
<string name="delay_notice_dialog">إشعار التأخير</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">عشان نقلل استخدام البطارية، ممكن يحصل شوية تأخير في تغيير خلفيات الشاشة بمجرد جدولتها. لما يكون الجهاز في وضع السكون، تفعيل خلفية الشاشة ممكن ياخد وقت أطول.</string>
|
||||
<string name="change_wallpaper">تغيير ورق الجدران</string>
|
||||
</resources>
|
||||
@@ -1,51 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Paperize</string>
|
||||
<string name="SettingsIcon">خيارات</string>
|
||||
<string name="dropdownmenu_settings">إعدادات</string>
|
||||
<string name="home_screen">بيت</string>
|
||||
<string name="wallpaper_screen">ورق الجدران</string>
|
||||
<string name="library_screen">مكتبة</string>
|
||||
<string name="settings_screen">إعدادات</string>
|
||||
<string name="settings_back">خلف</string>
|
||||
<string name="SettingsIcon">الخيارات</string>
|
||||
<string name="dropdownmenu_settings">الإعدادات</string>
|
||||
<string name="home_screen">الرئيسية</string>
|
||||
<string name="wallpaper_screen">الخلفية</string>
|
||||
<string name="library_screen">المكتبة</string>
|
||||
<string name="settings_screen">الإعدادات</string>
|
||||
<string name="settings_back">الرجوع</string>
|
||||
<string name="LibraryFloatingButton">إضافة مكتبة جديدة</string>
|
||||
<string name="set_wallpaper_description">تمكين خلفية حية</string>
|
||||
<string name="set_wallpaper_description">تفعيل الخلفية الحية</string>
|
||||
<string name="add_wallpaper">إضافة خلفية</string>
|
||||
<string name="add_images">إضافة الصور</string>
|
||||
<string name="add_folder">أضف المجلد</string>
|
||||
<string name="add_images">إضافة صور</string>
|
||||
<string name="add_folder">إضافة مجلد</string>
|
||||
<string name="contact_button">اتصال</string>
|
||||
<string name="image_is_selected">تم تحديد الصورة</string>
|
||||
<string name="image_is_not_selected">لم يتم تحديد الصورة</string>
|
||||
<string name="image_is_not_selected">الصورة غير محددة</string>
|
||||
<string name="select_all_images_for_deletion">حدد كافة الصور للحذف</string>
|
||||
<string name="delete_confirmation">حذف التأكيد</string>
|
||||
<string name="all_images_selected_for_deletion">جميع الصور مختارة للحذف</string>
|
||||
<string name="add_album">أضف الألبوم</string>
|
||||
<string name="add_wallpaper_screen">إضافة شاشة خلفية</string>
|
||||
<string name="enter_the_name_of_the_album">أدخل اسم الألبوم</string>
|
||||
<string name="delete_confirmation">تأكيد الحذف</string>
|
||||
<string name="all_images_selected_for_deletion">كافة الصور محددة للحذف</string>
|
||||
<string name="add_album">إضافة ألبوم</string>
|
||||
<string name="add_wallpaper_screen">شاشة إضافة الخلفية</string>
|
||||
<string name="enter_the_name_of_the_album">ادخل اسم الألبوم</string>
|
||||
<string name="album_name">اسم الألبوم</string>
|
||||
<string name="cancel">يلغي</string>
|
||||
<string name="save">يحفظ</string>
|
||||
<string name="delete_album">يمسح</string>
|
||||
<string name="cancel">إلغاء</string>
|
||||
<string name="save">حفظ</string>
|
||||
<string name="delete_album">حذف</string>
|
||||
<string name="change_name">تعديل الاسم</string>
|
||||
<string name="click_to_select_a_different_album">انقر لتحديد ألبوم مختلف</string>
|
||||
<string name="no_icon">لا يوجد رمز</string>
|
||||
<string name="click_to_select_a_different_album">اضغط لتحديد ألبوم مختلف</string>
|
||||
<string name="no_icon">لا توجد أيقونة</string>
|
||||
<string name="no_album_selected">لم يتم تحديد أي ألبوم</string>
|
||||
<string name="currently_selected_album">الألبوم المحدد حاليا</string>
|
||||
<string name="currently_selected_album">الألبوم المحدد حالياً</string>
|
||||
<string name="stop_the_album">أوقف الألبوم</string>
|
||||
<string name="more_options">المزيد من الخيارات</string>
|
||||
<string name="startup">بدء</string>
|
||||
<string name="agree">يوافق</string>
|
||||
<string name="startup">بدء التشغيل</string>
|
||||
<string name="agree">قبول</string>
|
||||
<string name="welcome">مرحباً</string>
|
||||
<string name="notifications">إشعارات</string>
|
||||
<string name="continue_button">موافق</string>
|
||||
<string name="notification_permission_is_required_for_this_app_to_work_properly">مطلوب إذن الإخطار لهذا التطبيق للعمل بشكل صحيح</string>
|
||||
<string name="allow">يسمح</string>
|
||||
<string name="notification_info_message">يمكن تمكين الإشعارات لتظهر عندما يكون التطبيق قيد التشغيل في الخلفية.</string>
|
||||
<string name="set_as_lock_screen">على نحو شاشة القفل</string>
|
||||
<string name="lock_screen">اقفل الشاشة</string>
|
||||
<string name="notifications">الإشعارات</string>
|
||||
<string name="continue_button">أنا جاهز</string>
|
||||
<string name="notification_permission_is_required_for_this_app_to_work_properly">إذن الإشعار مطلوب لكي يعمل هذا التطبيق بشكل صحيح</string>
|
||||
<string name="allow">السماح</string>
|
||||
<string name="notification_info_message">يمكن تفعيل الإشعارات لتظهر عندما يكون التطبيق قيد التشغيل في الخلفية.</string>
|
||||
<string name="set_as_lock_screen">تعيين كشاشة قفل</string>
|
||||
<string name="lock_screen">شاشة القفل</string>
|
||||
<string name="home">الشاشة الرئيسية</string>
|
||||
<string name="last_change">اخر تغير</string>
|
||||
<string name="next_change">التغيير التالي</string>
|
||||
<string name="last_change">آخر تعديل</string>
|
||||
<string name="next_change">التغيير التالى</string>
|
||||
<string name="privacy_policy">سياسة الخصوصية</string>
|
||||
<string name="privacy_screen">شاشة الخصوصية</string>
|
||||
<string name="licenses">التراخيص</string>
|
||||
@@ -169,4 +169,5 @@
|
||||
<string name="delay_notice">إشعار تأخير</string>
|
||||
<string name="delay_notice_dialog">إشعار تأخير</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">لتقليل استخدام البطارية، قد يحدث بعض التأخير في تغيير خلفيات الشاشة بمجرد جدولتها. عندما يكون الجهاز في وضع السكون، قد يستغرق تطبيق خلفية الشاشة وقتًا أطول.</string>
|
||||
<string name="change_wallpaper">تغيير ورق الجدران</string>
|
||||
</resources>
|
||||
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Paperize</string>
|
||||
<string name="SettingsIcon">选项</string>
|
||||
<string name="dropdownmenu_settings">设置</string>
|
||||
<string name="home_screen">首页</string>
|
||||
<string name="wallpaper_screen">壁纸</string>
|
||||
<string name="library_screen">库</string>
|
||||
<string name="settings_screen">设置</string>
|
||||
<string name="settings_back">返回</string>
|
||||
<string name="LibraryFloatingButton">添加新库</string>
|
||||
<string name="set_wallpaper_description">启用动态壁纸</string>
|
||||
<string name="add_wallpaper">添加壁纸</string>
|
||||
<string name="add_images">添加图片</string>
|
||||
<string name="add_folder">添加文件夹</string>
|
||||
<string name="contact_button">联系我们</string>
|
||||
<string name="image_is_selected">已选择图片</string>
|
||||
<string name="image_is_not_selected">未选择图片</string>
|
||||
<string name="select_all_images_for_deletion">选择要删除的所有图片</string>
|
||||
<string name="delete_confirmation">确认删除</string>
|
||||
<string name="all_images_selected_for_deletion">已选择删除所有图片</string>
|
||||
<string name="add_album">添加相册</string>
|
||||
<string name="add_wallpaper_screen">添加壁纸屏幕</string>
|
||||
<string name="enter_the_name_of_the_album">输入相册名称</string>
|
||||
<string name="album_name">相册名称</string>
|
||||
<string name="cancel">取消</string>
|
||||
<string name="save">保存</string>
|
||||
<string name="delete_album">删除</string>
|
||||
<string name="change_name">编辑名称</string>
|
||||
<string name="click_to_select_a_different_album">单击选择其他相册</string>
|
||||
<string name="no_icon">没有图标</string>
|
||||
<string name="no_album_selected">未选择相册</string>
|
||||
<string name="currently_selected_album">当前选定的相册</string>
|
||||
<string name="stop_the_album">停止相册</string>
|
||||
<string name="more_options">更多选项</string>
|
||||
<string name="startup">启动</string>
|
||||
<string name="agree">同意</string>
|
||||
<string name="welcome">欢迎</string>
|
||||
<string name="notifications">通知</string>
|
||||
<string name="continue_button">我在</string>
|
||||
<string name="notification_permission_is_required_for_this_app_to_work_properly">此应用需要通知权限才能正常运行</string>
|
||||
<string name="allow">允许</string>
|
||||
<string name="notification_info_message">可以启用通知来显示应用程序在后台运行时的情况。</string>
|
||||
<string name="set_as_lock_screen">设置为锁屏</string>
|
||||
<string name="lock_screen">锁屏</string>
|
||||
<string name="home">主屏幕</string>
|
||||
<string name="last_change">上次更改</string>
|
||||
<string name="next_change">下一个更改</string>
|
||||
<string name="privacy_policy">隐私政策</string>
|
||||
<string name="privacy_screen">隐私屏幕</string>
|
||||
<string name="licenses">许可证</string>
|
||||
<string name="licenses_screen">许可证屏幕</string>
|
||||
<string name="contact">联系我们</string>
|
||||
<string name="contact_the_author_by_email">通过电子邮件联系作者</string>
|
||||
<string name="reset_to_default">重置为默认值</string>
|
||||
<string name="reset_all_data">重置所有数据</string>
|
||||
<string name="are_you_sure_you_want_to_reset_all_settings_and_data_to_default">确定要将所有设置和数据重置为默认值吗?</string>
|
||||
<string name="confirm">确认</string>
|
||||
<string name="spotlight_animation">聚光灯动画</string>
|
||||
<string name="circle_2_animation">圆圈 2 动画</string>
|
||||
<string name="circle_1_animation">圆圈 1 动画</string>
|
||||
<string name="circle_3_animation">圆圈 3 动画</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">壁纸更换器已启用。</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">壁纸更换器已被禁用。</string>
|
||||
<string name="dismiss">关闭</string>
|
||||
<string name="has_been_unselected">%1$s 已被取消选择。</string>
|
||||
<string name="interval_home">主屏幕 | %1$s</string>
|
||||
<string name="interval_lock">锁定屏幕 | %1$s</string>
|
||||
<string name="interval">间隔 | %1$s</string>
|
||||
<plurals name="minutes">
|
||||
<item quantity="other">%d 分钟</item>
|
||||
</plurals>
|
||||
<plurals name="hours">
|
||||
<item quantity="other">%d 小时</item>
|
||||
</plurals>
|
||||
<plurals name="days">
|
||||
<item quantity="other">%d 天</item>
|
||||
</plurals>
|
||||
<string name="selected_count">已选择 %1$s</string>
|
||||
<string name="please_read_and_agree_to_the_following_privacy_notice_to_use_the_app">请阅读并同意以下隐私声明才能使用该应用程序。</string>
|
||||
<string name="privacy_notice">隐私声明</string>
|
||||
<string name="please_read_and_agree_to_the_privacy_notice">请阅读并同意隐私声明。</string>
|
||||
<string name="view">查看</string>
|
||||
<string name="welcome_animation">欢迎动画</string>
|
||||
<string name="notification_bell_animation">通知铃声动画</string>
|
||||
<string name="delete_these">删除这些吗?</string>
|
||||
<string name="are_you_sure_you_want_to_delete_these_wallpapers">您确定要删除这些壁纸吗?</string>
|
||||
<string name="are_you_sure_you_want_to_delete_this">你确定要删除这个吗?</string>
|
||||
<string name="delete_album_question">删除相册?</string>
|
||||
<string name="animation">动画</string>
|
||||
<string name="increase_visual_appeal">增加视觉吸引力</string>
|
||||
<string name="dark_mode">深色模式</string>
|
||||
<string name="automatic_device_mode">自动设备模式</string>
|
||||
<string name="light_mode">浅色模式</string>
|
||||
<string name="easier_on_the_eyes">更美观</string>
|
||||
<string name="dynamic_theme">动态主题</string>
|
||||
<string name="material_you">Material You</string>
|
||||
<string name="dynamic_theming">动态主题</string>
|
||||
<string name="click_here_to_view_the_licenses">点击此处查看许可证</string>
|
||||
<string name="click_here_to_view_our_privacy_policy">点击这里查看我们的隐私政策</string>
|
||||
<string name="add_images_btn">添加图片</string>
|
||||
<string name="add_folder_btn">添加文件夹</string>
|
||||
<string name="version">版本:%1$s</string>
|
||||
<string name="appearance">外观</string>
|
||||
<string name="about">关于</string>
|
||||
<string name="coming_soon">即将推出</string>
|
||||
<string name="new_album">新建相册</string>
|
||||
<string name="wallpapers">壁纸</string>
|
||||
<string name="translation">翻译</string>
|
||||
<string name="help_translate_the_app_on_crowdin">在 Crowdin 上帮助翻译应用程序!</string>
|
||||
<plurals name="wallpaper_count">
|
||||
<item quantity="other">%d 壁纸</item>
|
||||
</plurals>
|
||||
<string name="privacy_intro_title">介绍</string>
|
||||
<string name="privacy_intro_content">欢迎来到 %1$s!本隐私声明概述了当您使用我们的移动应用程序时我们如何收集、使用和保护您的个人信息。使用 %1$s即表示您同意本声明中描述的条款。</string>
|
||||
<string name="privacy_data_collection_title">数据采集</string>
|
||||
<string name="privacy_data_collection_content">通知访问: %1$s 请求通知访问,以便根据您的通知向您提供个性化壁纸推荐。我们不会在您的设备之外存储任何通知内容或个人身份信息 (PII)。\n\n本地文件: %1$s 访问存储在您设备上的文件,以便您将它们设置为壁纸。我们不会将这些文件上传或传输到任何外部服务器。</string>
|
||||
<string name="privacy_information_usage_title">信息使用</string>
|
||||
<string name="privacy_information_usage_content">个人数据:我们不会收集或存储任何个人数据,例如姓名、电子邮件地址或电话号码。\n\n使用情况分析: %1$s 不会跟踪您的使用行为或收集分析数据。</string>
|
||||
<string name="privacy_data_security_title">数据安全</string>
|
||||
<string name="privacy_data_security_content">设备存储: %1$s 使用的所有数据都保留在您的设备上。我们不会向外部传输或存储任何数据。</string>
|
||||
<string name="privacy_third_party_services_title">第三方服务</string>
|
||||
<string name="privacy_third_party_services_content">广告: %1$s 不显示第三方广告。\n\n外部链接:我们的应用可能包含外部网站的链接。请注意,我们对这些网站的隐私保护不承担任何责任。</string>
|
||||
<string name="privacy_children_privacy_title">儿童隐私</string>
|
||||
<string name="privacy_children_privacy_content">%1$s 不适合 13 岁以下的儿童。我们不会故意收集儿童的任何信息。</string>
|
||||
<string name="privacy_changes_notice_title">本通知的变更</string>
|
||||
<string name="privacy_changes_notice_content">我们可能会不时更新本隐私声明。任何更改都将反映在应用程序和我们的网站上。</string>
|
||||
<string name="privacy_contact_us_title">联系我们</string>
|
||||
<string name="privacy_contact_us_content">如果您对本隐私声明有任何疑问或疑虑,请通过 %1$s与我联系。</string>
|
||||
<string name="no_albums_found">未找到相册</string>
|
||||
<string name="disable_live_wallpaper">禁用动态壁纸</string>
|
||||
<string name="live_wallpaper_detected">检测到动态壁纸</string>
|
||||
<string name="please_disable_your_live_wallpaper_to_use_the_wallpaper_changer">请禁用动态壁纸才能使用壁纸更换器。</string>
|
||||
<string name="ok">确定</string>
|
||||
<string name="percentage">%1$s%%</string>
|
||||
<string name="fill">填充</string>
|
||||
<string name="fit">适合</string>
|
||||
<string name="stretch">拉伸</string>
|
||||
<string name="wallpaper_scaling">壁纸缩放</string>
|
||||
<string name="change_brightness">改变亮度</string>
|
||||
<string name="home_screen_btn">主屏幕</string>
|
||||
<string name="lock_screen_btn">锁定屏幕</string>
|
||||
<string name="individual_scheduling">个人排程</string>
|
||||
<string name="show_interval_sliders">显示间隔滑块</string>
|
||||
<string name="interval_text">时间间隔</string>
|
||||
<string name="change_blur">更改模糊</string>
|
||||
<string name="paperize_is_running">Paperize 正在运行</string>
|
||||
<string name="next_wallpaper_change">下一个壁纸更改: %1$s</string>
|
||||
<string name="delay_notice">延迟通知</string>
|
||||
<string name="delay_notice_dialog">延迟通知</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">为了最大限度地减少电池消耗,更换壁纸可能会有一些延迟。当设备处于睡眠状态时,壁纸可能需要更长时间才能应用。</string>
|
||||
<string name="change_wallpaper">更换壁纸</string>
|
||||
</resources>
|
||||
@@ -149,4 +149,5 @@
|
||||
<string name="delay_notice">延誤通知</string>
|
||||
<string name="delay_notice_dialog">延誤通知</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">為了最大限度地減少電池使用量,更換壁紙可能會在預定後出現一些延遲。當設備處於睡眠狀態時,壁紙可能需要更長的時間才能應用。</string>
|
||||
<string name="change_wallpaper">更換壁紙</string>
|
||||
</resources>
|
||||
@@ -60,7 +60,7 @@
|
||||
<string name="circle_2_animation">বৃত্ত 2 অ্যানিমেশন</string>
|
||||
<string name="circle_1_animation">বৃত্ত 1 অ্যানিমেশন</string>
|
||||
<string name="circle_3_animation">বৃত্ত 3 অ্যানিমেশন</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">ওয়ালপেপার পরিবর্তনকারী সক্ষম করা হয়েছে৷</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">ওয়ালপেপার পরিবর্তনকারী সক্ষম করা হয়েছে।</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">ওয়ালপেপার পরিবর্তনকারী অক্ষম করা হয়েছে৷</string>
|
||||
<string name="dismiss">খারিজ</string>
|
||||
<string name="has_been_unselected">%1$s অনির্বাচিত করা হয়েছে৷</string>
|
||||
@@ -131,9 +131,9 @@
|
||||
<string name="privacy_changes_notice_content">আমরা সময়ে সময়ে এই গোপনীয়তা বিজ্ঞপ্তি আপডেট করতে পারি। যেকোনো পরিবর্তন অ্যাপে এবং আমাদের ওয়েবসাইটে প্রতিফলিত হবে।</string>
|
||||
<string name="privacy_contact_us_title">যোগাযোগ করুন</string>
|
||||
<string name="privacy_contact_us_content">এই গোপনীয়তা বিজ্ঞপ্তি সম্পর্কে আপনার কোন প্রশ্ন বা উদ্বেগ থাকলে, অনুগ্রহ করে আমার সাথে %1$sএ যোগাযোগ করুন।</string>
|
||||
<string name="no_albums_found">কোনো অ্যালবাম পাওয়া যায়নি</string>
|
||||
<string name="no_albums_found">কোন অ্যালবাম পাওয়া যায়নি</string>
|
||||
<string name="disable_live_wallpaper">লাইভ ওয়ালপেপার অক্ষম করুন</string>
|
||||
<string name="live_wallpaper_detected">লাইভ ওয়ালপেপার সনাক্ত করা হয়েছে</string>
|
||||
<string name="live_wallpaper_detected">লাইভ ওয়ালপেপার সনাক্ত করা হয়েছে৷</string>
|
||||
<string name="please_disable_your_live_wallpaper_to_use_the_wallpaper_changer">ওয়ালপেপার চেঞ্জার ব্যবহার করতে আপনার লাইভ ওয়ালপেপার অক্ষম করুন।</string>
|
||||
<string name="ok">ঠিক আছে</string>
|
||||
<string name="percentage">%1$s%%</string>
|
||||
@@ -144,13 +144,14 @@
|
||||
<string name="change_brightness">উজ্জ্বলতা পরিবর্তন করুন</string>
|
||||
<string name="home_screen_btn">মূল পর্দা</string>
|
||||
<string name="lock_screen_btn">বন্ধ পর্দা</string>
|
||||
<string name="individual_scheduling">স্বতন্ত্র সময়সূচী</string>
|
||||
<string name="individual_scheduling">ব্যক্তিগত সময়সূচী</string>
|
||||
<string name="show_interval_sliders">ব্যবধান স্লাইডার দেখান</string>
|
||||
<string name="interval_text">বিরতি</string>
|
||||
<string name="change_blur">অস্পষ্টতা পরিবর্তন করুন</string>
|
||||
<string name="change_blur">ব্লার পরিবর্তন করুন</string>
|
||||
<string name="paperize_is_running">পেপারাইজ চলছে</string>
|
||||
<string name="next_wallpaper_change">পরবর্তী ওয়ালপেপার পরিবর্তন: %1$s৷</string>
|
||||
<string name="delay_notice">বিলম্ব বিজ্ঞপ্তি</string>
|
||||
<string name="delay_notice_dialog">বিলম্ব বিজ্ঞপ্তি</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">ব্যাটারি ব্যবহার কমাতে, ওয়ালপেপার পরিবর্তন করার সময় শিডিউল করা হলে কিছু বিলম্ব হতে পারে। ডিভাইসটি ঘুমিয়ে থাকা অবস্থায়, ওয়ালপেপার প্রয়োগ করতে বেশি সময় লাগতে পারে।</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">ব্যাটারি ব্যবহার কমাতে, ওয়ালপেপার পরিবর্তন করার সময় শিডিউল করা হলে কিছু বিলম্ব হতে পারে। যখন ডিভাইসটি ঘুমিয়ে থাকে, ওয়ালপেপার প্রয়োগ করতে বেশি সময় লাগতে পারে।</string>
|
||||
<string name="change_wallpaper">ওয়ালপেপার পরিবর্তন করুন</string>
|
||||
</resources>
|
||||
@@ -3,7 +3,7 @@
|
||||
<string name="app_name">Paperize</string>
|
||||
<string name="SettingsIcon">Opcions</string>
|
||||
<string name="dropdownmenu_settings">Configuració</string>
|
||||
<string name="home_screen">Casa</string>
|
||||
<string name="home_screen">a casa</string>
|
||||
<string name="wallpaper_screen">Fons de pantalla</string>
|
||||
<string name="library_screen">Biblioteca</string>
|
||||
<string name="settings_screen">Configuració</string>
|
||||
@@ -127,7 +127,7 @@
|
||||
<string name="privacy_third_party_services_content">Anuncis: %1$s no mostra anuncis de tercers.\n\nEnllaços externs: la nostra aplicació pot contenir enllaços a llocs web externs. Tingueu en compte que no som responsables de les pràctiques de privadesa d\'aquests llocs.</string>
|
||||
<string name="privacy_children_privacy_title">Privacitat dels nens</string>
|
||||
<string name="privacy_children_privacy_content">%1$s no està pensat per a nens menors de 13 anys. No recollim cap informació dels nens conscientment.</string>
|
||||
<string name="privacy_changes_notice_title">Canvis en aquest avís</string>
|
||||
<string name="privacy_changes_notice_title">Canvis a aquest avís</string>
|
||||
<string name="privacy_changes_notice_content">És possible que actualitzem aquest avís de privadesa de tant en tant. Qualsevol canvi es reflectirà a l\'aplicació i al nostre lloc web.</string>
|
||||
<string name="privacy_contact_us_title">Contacta amb nosaltres</string>
|
||||
<string name="privacy_contact_us_content">Si teniu cap pregunta o dubte sobre aquest avís de privadesa, poseu-vos en contacte amb mi a %1$s.</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Avís de retard</string>
|
||||
<string name="delay_notice_dialog">Avís de retard</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Per minimitzar l\'ús de la bateria, el canvi de fons de pantalla pot tenir alguns retards un cop programat. Quan el dispositiu està adormit, el fons de pantalla pot trigar més a aplicar-se.</string>
|
||||
<string name="change_wallpaper">Canvia el fons de pantalla</string>
|
||||
</resources>
|
||||
@@ -126,7 +126,7 @@
|
||||
<string name="privacy_intro_title">Úvod</string>
|
||||
<string name="privacy_intro_content">Vítejte v %1$s! Toto oznámení o ochraně osobních údajů popisuje, jak shromažďujeme, používáme a chráníme vaše osobní údaje, když používáte naši mobilní aplikaci. Používáním %1$ssouhlasíte s podmínkami popsanými v tomto oznámení.</string>
|
||||
<string name="privacy_data_collection_title">Sběr dat</string>
|
||||
<string name="privacy_data_collection_content">Přístup k oznámením: %1$s požaduje přístup k oznámení, aby vám na základě vašich oznámení poskytl přizpůsobená doporučení tapet. Mimo vaše zařízení neukládáme žádný obsah oznámení ani osobní údaje (PII).\n\nMístní soubory: %1$s přistupuje k souborům uloženým ve vašem zařízení a umožňuje vám je nastavit jako tapety. Tyto soubory nenahráváme ani nepřenášíme na žádné externí servery.</string>
|
||||
<string name="privacy_data_collection_content">Přístup k oznámení: %1$s požaduje přístup k oznámení, aby vám mohl poskytnout přizpůsobená doporučení tapet na základě vašich oznámení. Mimo vaše zařízení neukládáme žádný obsah oznámení ani osobní údaje (PII).\n\nMístní soubory: %1$s přistupuje k souborům uloženým ve vašem zařízení a umožňuje vám je nastavit jako tapety. Tyto soubory nenahráváme ani nepřenášíme na žádné externí servery.</string>
|
||||
<string name="privacy_information_usage_title">Využití informací</string>
|
||||
<string name="privacy_information_usage_content">Osobní údaje: Neshromažďujeme ani neukládáme žádné osobní údaje, jako jsou jména, e-mailové adresy nebo telefonní čísla.\n\nAnalýza využití: %1$s nesleduje vaše chování při používání ani neshromažďuje analytická data.</string>
|
||||
<string name="privacy_data_security_title">Bezpečnost dat</string>
|
||||
@@ -161,4 +161,5 @@
|
||||
<string name="delay_notice">Upozornění na zpoždění</string>
|
||||
<string name="delay_notice_dialog">Upozornění na zpoždění</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Aby se minimalizovalo využití baterie, může mít změna tapet po naplánování určité zpoždění. Když je zařízení v režimu spánku, aplikace tapety může trvat déle.</string>
|
||||
<string name="change_wallpaper">Změnit tapetu</string>
|
||||
</resources>
|
||||
@@ -122,7 +122,7 @@
|
||||
<string name="privacy_information_usage_title">Informationsbrug</string>
|
||||
<string name="privacy_information_usage_content">Personlige data: Vi indsamler eller opbevarer ingen personlige data såsom navne, e-mailadresser eller telefonnumre.\n\nBrugsanalyse: %1$s sporer ikke din brugsadfærd eller indsamler analysedata.</string>
|
||||
<string name="privacy_data_security_title">Datasikkerhed</string>
|
||||
<string name="privacy_data_security_content">Opbevaring på enheden: Alle data, der bruges af %1$s , forbliver på din enhed. Vi transmitterer eller gemmer ikke data eksternt.</string>
|
||||
<string name="privacy_data_security_content">Opbevaring på enheden: Alle data, der bruges af %1$s , forbliver på din enhed. Vi overfører eller opbevarer ikke data eksternt.</string>
|
||||
<string name="privacy_third_party_services_title">Tredjepartstjenester</string>
|
||||
<string name="privacy_third_party_services_content">Annoncer: %1$s viser ikke tredjepartsannoncer.\n\nEksterne links: Vores app kan indeholde links til eksterne websteder. Bemærk venligst, at vi ikke er ansvarlige for disse siders privatlivspraksis.</string>
|
||||
<string name="privacy_children_privacy_title">Børns privatliv</string>
|
||||
@@ -152,5 +152,6 @@
|
||||
<string name="next_wallpaper_change">Næste tapetændring: %1$s</string>
|
||||
<string name="delay_notice">Forsinket meddelelse</string>
|
||||
<string name="delay_notice_dialog">Forsinket meddelelse</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">For at minimere batteriforbruget kan skift af baggrunde have nogle forsinkelser, når det først er planlagt. Når enheden er i dvale, kan tapetet tage længere tid at påføre.</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">For at minimere batteriforbruget kan ændring af baggrunde have nogle forsinkelser, når det først er planlagt. Når enheden er i dvale, kan tapetet tage længere tid at påføre.</string>
|
||||
<string name="change_wallpaper">Skift tapet</string>
|
||||
</resources>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Verspätungsbenachrichtigung</string>
|
||||
<string name="delay_notice_dialog">Verspätungsbenachrichtigung</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Um den Akkuverbrauch zu minimieren, kann es beim geplanten Ändern des Hintergrundbilds zu Verzögerungen kommen. Wenn sich das Gerät im Ruhezustand befindet, kann die Anwendung des Hintergrundbilds länger dauern.</string>
|
||||
<string name="change_wallpaper">Hintergrund ändern</string>
|
||||
</resources>
|
||||
@@ -85,7 +85,7 @@
|
||||
<string name="please_read_and_agree_to_the_privacy_notice">Παρακαλούμε διαβάστε και συμφωνήστε με τη σημείωση απορρήτου.</string>
|
||||
<string name="view">Θέα</string>
|
||||
<string name="welcome_animation">Κινούμενα σχέδια καλωσορίσματος</string>
|
||||
<string name="notification_bell_animation">Κινούμενα σχέδια με κουδούνι ειδοποίησης</string>
|
||||
<string name="notification_bell_animation">Κινούμενα σχέδια με κουδούνι ειδοποιήσεων</string>
|
||||
<string name="delete_these">Να διαγραφούν αυτά;</string>
|
||||
<string name="are_you_sure_you_want_to_delete_these_wallpapers">Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτές τις ταπετσαρίες;</string>
|
||||
<string name="are_you_sure_you_want_to_delete_this">Είστε βέβαιοι ότι θέλετε να το διαγράψετε;</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Ειδοποίηση καθυστέρησης</string>
|
||||
<string name="delay_notice_dialog">Ειδοποίηση καθυστέρησης</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Για να ελαχιστοποιηθεί η χρήση της μπαταρίας, η αλλαγή των ταπετσαριών ενδέχεται να έχει κάποιες καθυστερήσεις αφού προγραμματιστεί. Όταν η συσκευή κοιμάται, η ταπετσαρία μπορεί να χρειαστεί περισσότερο χρόνο για να εφαρμοστεί.</string>
|
||||
<string name="change_wallpaper">Αλλαγή ταπετσαρίας</string>
|
||||
</resources>
|
||||
@@ -0,0 +1,157 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Paperize</string>
|
||||
<string name="SettingsIcon">Options</string>
|
||||
<string name="dropdownmenu_settings">Settings</string>
|
||||
<string name="home_screen">Home</string>
|
||||
<string name="wallpaper_screen">Wallpaper</string>
|
||||
<string name="library_screen">Library</string>
|
||||
<string name="settings_screen">Settings</string>
|
||||
<string name="settings_back">Back</string>
|
||||
<string name="LibraryFloatingButton">Add a new library</string>
|
||||
<string name="set_wallpaper_description">Enable live wallpaper</string>
|
||||
<string name="add_wallpaper">Add wallpaper</string>
|
||||
<string name="add_images">Add images</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
<string name="contact_button">Contact</string>
|
||||
<string name="image_is_selected">Image is selected</string>
|
||||
<string name="image_is_not_selected">Image is not selected</string>
|
||||
<string name="select_all_images_for_deletion">Select all images for deletion</string>
|
||||
<string name="delete_confirmation">Delete confirmation</string>
|
||||
<string name="all_images_selected_for_deletion">All images selected for deletion</string>
|
||||
<string name="add_album">Add album</string>
|
||||
<string name="add_wallpaper_screen">Add Wallpaper Screen</string>
|
||||
<string name="enter_the_name_of_the_album">Enter the name of the album</string>
|
||||
<string name="album_name">Album Name</string>
|
||||
<string name="cancel">Cancel</string>
|
||||
<string name="save">Save</string>
|
||||
<string name="delete_album">Delete</string>
|
||||
<string name="change_name">Edit Name</string>
|
||||
<string name="click_to_select_a_different_album">Click to select a different album</string>
|
||||
<string name="no_icon">No icon</string>
|
||||
<string name="no_album_selected">No album selected</string>
|
||||
<string name="currently_selected_album">Currently selected album</string>
|
||||
<string name="stop_the_album">Stop the album</string>
|
||||
<string name="more_options">More options</string>
|
||||
<string name="startup">Startup</string>
|
||||
<string name="agree">Agree</string>
|
||||
<string name="welcome">Welcome</string>
|
||||
<string name="notifications">Notifications</string>
|
||||
<string name="continue_button">I\'m In</string>
|
||||
<string name="notification_permission_is_required_for_this_app_to_work_properly">Notification permission is required for this app to work properly</string>
|
||||
<string name="allow">Allow</string>
|
||||
<string name="notification_info_message">Notifications can be enabled to show when the app is running in the background.</string>
|
||||
<string name="set_as_lock_screen">Set as lock screen</string>
|
||||
<string name="lock_screen">Lock screen</string>
|
||||
<string name="home">Home screen</string>
|
||||
<string name="last_change">Last change</string>
|
||||
<string name="next_change">Next change</string>
|
||||
<string name="privacy_policy">Privacy Policy</string>
|
||||
<string name="privacy_screen">Privacy Screen</string>
|
||||
<string name="licenses">Licenses</string>
|
||||
<string name="licenses_screen">Licenses Screen</string>
|
||||
<string name="contact">Contact</string>
|
||||
<string name="contact_the_author_by_email">Contact the author by email</string>
|
||||
<string name="reset_to_default">Reset to default</string>
|
||||
<string name="reset_all_data">Reset all data</string>
|
||||
<string name="are_you_sure_you_want_to_reset_all_settings_and_data_to_default">Are you sure you want to reset all settings and data to default?</string>
|
||||
<string name="confirm">Confirm</string>
|
||||
<string name="spotlight_animation">Spotlight animation</string>
|
||||
<string name="circle_2_animation">Circle 2 animation</string>
|
||||
<string name="circle_1_animation">Circle 1 animation</string>
|
||||
<string name="circle_3_animation">Circle 3 animation</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">Wallpaper changer has been enabled.</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">Wallpaper changer has been disabled.</string>
|
||||
<string name="dismiss">Dismiss</string>
|
||||
<string name="has_been_unselected">%1$s has been unselected.</string>
|
||||
<string name="interval_home">Home Screen | %1$s</string>
|
||||
<string name="interval_lock">Lock Screen | %1$s</string>
|
||||
<string name="interval">Interval | %1$s</string>
|
||||
<plurals name="minutes">
|
||||
<item quantity="one">%d minute</item>
|
||||
<item quantity="other">%d minutes</item>
|
||||
</plurals>
|
||||
<plurals name="hours">
|
||||
<item quantity="one">%d hour</item>
|
||||
<item quantity="other">%d hours</item>
|
||||
</plurals>
|
||||
<plurals name="days">
|
||||
<item quantity="one">%d day</item>
|
||||
<item quantity="other">%d days</item>
|
||||
</plurals>
|
||||
<string name="selected_count">%1$s selected</string>
|
||||
<string name="please_read_and_agree_to_the_following_privacy_notice_to_use_the_app">Please read and agree to the following privacy notice to use the app.</string>
|
||||
<string name="privacy_notice">Privacy Notice</string>
|
||||
<string name="please_read_and_agree_to_the_privacy_notice">Please read and agree to the privacy notice.</string>
|
||||
<string name="view">View</string>
|
||||
<string name="welcome_animation">Welcome animation</string>
|
||||
<string name="notification_bell_animation">Notification bell animation</string>
|
||||
<string name="delete_these">Delete these?</string>
|
||||
<string name="are_you_sure_you_want_to_delete_these_wallpapers">Are you sure you want to delete these wallpapers?</string>
|
||||
<string name="are_you_sure_you_want_to_delete_this">Are you sure you want to delete this?</string>
|
||||
<string name="delete_album_question">Delete album?</string>
|
||||
<string name="animation">Animation</string>
|
||||
<string name="increase_visual_appeal">Increase visual appeal</string>
|
||||
<string name="dark_mode">Dark Mode</string>
|
||||
<string name="automatic_device_mode">Automatic Device Mode</string>
|
||||
<string name="light_mode">Light Mode</string>
|
||||
<string name="easier_on_the_eyes">Easier on the eyes</string>
|
||||
<string name="dynamic_theme">Dynamic Theme</string>
|
||||
<string name="material_you">Material You</string>
|
||||
<string name="dynamic_theming">Dynamic Theming</string>
|
||||
<string name="click_here_to_view_the_licenses">Click here to view the licenses</string>
|
||||
<string name="click_here_to_view_our_privacy_policy">Click here to view our privacy policy</string>
|
||||
<string name="add_images_btn">Add Images</string>
|
||||
<string name="add_folder_btn">Add Folder</string>
|
||||
<string name="version">Version: %1$s</string>
|
||||
<string name="appearance">Appearance</string>
|
||||
<string name="about">About</string>
|
||||
<string name="coming_soon">Coming soon</string>
|
||||
<string name="new_album">New Album</string>
|
||||
<string name="wallpapers">wallpapers</string>
|
||||
<string name="translation">Translation</string>
|
||||
<string name="help_translate_the_app_on_crowdin">Help translate the app on Crowdin!</string>
|
||||
<plurals name="wallpaper_count">
|
||||
<item quantity="one">%d wallpaper</item>
|
||||
<item quantity="other">%d wallpapers</item>
|
||||
</plurals>
|
||||
<string name="privacy_intro_title">Introduction</string>
|
||||
<string name="privacy_intro_content">Welcome to %1$s! This privacy notice outlines how we collect, use, and protect your personal information when you use our mobile application. By using %1$s, you agree to the terms described in this notice.</string>
|
||||
<string name="privacy_data_collection_title">Data Collection</string>
|
||||
<string name="privacy_data_collection_content">Notification Access: %1$s requests notification access to provide you with personalized wallpaper recommendations based on your notifications. We do not store any notification content or personally identifiable information (PII) outside of your device.\n\nLocal Files: %1$s accesses files stored on your device to allow you to set them as wallpapers. We do not upload or transfer these files to any external servers.</string>
|
||||
<string name="privacy_information_usage_title">Information Usage</string>
|
||||
<string name="privacy_information_usage_content">Personal Data: We do not collect or store any personal data such as names, email addresses, or phone numbers.\n\nUsage Analytics: %1$s does not track your usage behavior or collect analytics data.</string>
|
||||
<string name="privacy_data_security_title">Data Security</string>
|
||||
<string name="privacy_data_security_content">On-Device Storage: All data used by %1$s remains on your device. We do not transmit or store any data externally.</string>
|
||||
<string name="privacy_third_party_services_title">Third-Party Services</string>
|
||||
<string name="privacy_third_party_services_content">Advertisements: %1$s does not display third-party ads.\n\nExternal Links: Our app may contain links to external websites. Please note that we are not responsible for the privacy practices of these sites.</string>
|
||||
<string name="privacy_children_privacy_title">Children’s Privacy</string>
|
||||
<string name="privacy_children_privacy_content">%1$s is not intended for children under the age of 13. We do not knowingly collect any information from children.</string>
|
||||
<string name="privacy_changes_notice_title">Changes to this notice</string>
|
||||
<string name="privacy_changes_notice_content">We may update this privacy notice from time to time. Any changes will be reflected in the app and on our website.</string>
|
||||
<string name="privacy_contact_us_title">Contact Us</string>
|
||||
<string name="privacy_contact_us_content">If you have any questions or concerns about this privacy notice, please contact me at %1$s.</string>
|
||||
<string name="no_albums_found">No albums found</string>
|
||||
<string name="disable_live_wallpaper">Disable live wallpaper</string>
|
||||
<string name="live_wallpaper_detected">Live Wallpaper Detected</string>
|
||||
<string name="please_disable_your_live_wallpaper_to_use_the_wallpaper_changer">Please disable your live wallpaper to use the wallpaper changer.</string>
|
||||
<string name="ok">OK</string>
|
||||
<string name="percentage">%1$s%%</string>
|
||||
<string name="fill">Fill</string>
|
||||
<string name="fit">Fit</string>
|
||||
<string name="stretch">Stretch</string>
|
||||
<string name="wallpaper_scaling">Wallpaper Scaling</string>
|
||||
<string name="change_brightness">Change Brightness</string>
|
||||
<string name="home_screen_btn">Home Screen</string>
|
||||
<string name="lock_screen_btn">Lock Screen</string>
|
||||
<string name="individual_scheduling">Individual Scheduling</string>
|
||||
<string name="show_interval_sliders">Show interval sliders</string>
|
||||
<string name="interval_text">Time Interval</string>
|
||||
<string name="change_blur">Change Blur</string>
|
||||
<string name="paperize_is_running">Paperize is running</string>
|
||||
<string name="next_wallpaper_change">Next wallpaper change: %1$s</string>
|
||||
<string name="delay_notice">Delay Notice</string>
|
||||
<string name="delay_notice_dialog">Delay Notice</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">To minimize battery usage, changing wallpapers may have some delays once scheduled. When the device is asleep, the wallpaper may take longer to apply.</string>
|
||||
<string name="change_wallpaper">Change wallpaper</string>
|
||||
</resources>
|
||||
@@ -51,7 +51,7 @@
|
||||
<string name="licenses">Licencias</string>
|
||||
<string name="licenses_screen">Pantalla de Licencias</string>
|
||||
<string name="contact">Contacto</string>
|
||||
<string name="contact_the_author_by_email">Contactar al autor por correo electrónico</string>
|
||||
<string name="contact_the_author_by_email">Contacta con el autor por correo electrónico.</string>
|
||||
<string name="reset_to_default">Restablecen a los predeterminados</string>
|
||||
<string name="reset_all_data">Restablecer todos los datos</string>
|
||||
<string name="are_you_sure_you_want_to_reset_all_settings_and_data_to_default">¿Está seguro de que desea restablecer todas las configuraciones y datos a los valores predeterminados?</string>
|
||||
@@ -59,7 +59,7 @@
|
||||
<string name="spotlight_animation">Animación destacada</string>
|
||||
<string name="circle_2_animation">Animación del círculo 2</string>
|
||||
<string name="circle_1_animation">Animación del círculo 1</string>
|
||||
<string name="circle_3_animation">Animación del círculo 3</string>
|
||||
<string name="circle_3_animation">Animación del círculo 3.</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">Se ha habilitado el cambiador de fondo de pantalla.</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">El cambiador de fondos de pantalla ha sido deshabilitado.</string>
|
||||
<string name="dismiss">Despedir</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Aviso de retraso</string>
|
||||
<string name="delay_notice_dialog">Aviso de retraso</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Para minimizar el uso de la batería, el cambio de fondos de pantalla puede tener algunos retrasos una vez programado. Cuando el dispositivo está inactivo, el fondo de pantalla puede tardar más en aplicarse.</string>
|
||||
<string name="change_wallpaper">Cambiar el fondo de pantalla</string>
|
||||
</resources>
|
||||
@@ -57,7 +57,7 @@
|
||||
<string name="are_you_sure_you_want_to_reset_all_settings_and_data_to_default">Haluatko varmasti palauttaa kaikki asetukset ja tiedot oletusasetuksiin?</string>
|
||||
<string name="confirm">Vahvistaa</string>
|
||||
<string name="spotlight_animation">Spotlight-animaatio</string>
|
||||
<string name="circle_2_animation">Circle 2 animaatio</string>
|
||||
<string name="circle_2_animation">Circle 2 -animaatio</string>
|
||||
<string name="circle_1_animation">Circle 1 -animaatio</string>
|
||||
<string name="circle_3_animation">Circle 3 animaatio</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">Taustakuvan vaihtaja on otettu käyttöön.</string>
|
||||
@@ -100,7 +100,7 @@
|
||||
<string name="material_you">Materiaali sinä</string>
|
||||
<string name="dynamic_theming">Dynaaminen teema</string>
|
||||
<string name="click_here_to_view_the_licenses">Napsauta tästä nähdäksesi lisenssit</string>
|
||||
<string name="click_here_to_view_our_privacy_policy">Napsauta tästä nähdäksesi tietosuojakäytäntömme</string>
|
||||
<string name="click_here_to_view_our_privacy_policy">Napsauta tätä nähdäksesi tietosuojakäytäntömme</string>
|
||||
<string name="add_images_btn">Lisää kuvia</string>
|
||||
<string name="add_folder_btn">Lisää kansio</string>
|
||||
<string name="version">Versio: %1$s</string>
|
||||
@@ -128,7 +128,7 @@
|
||||
<string name="privacy_children_privacy_title">Lasten yksityisyys</string>
|
||||
<string name="privacy_children_privacy_content">%1$s ei ole tarkoitettu alle 13-vuotiaille lapsille. Emme tietoisesti kerää tietoja lapsilta.</string>
|
||||
<string name="privacy_changes_notice_title">Muutoksia tähän ilmoitukseen</string>
|
||||
<string name="privacy_changes_notice_content">Saatamme päivittää tätä tietosuojailmoitusta ajoittain. Kaikki muutokset näkyvät sovelluksessa ja verkkosivustollamme.</string>
|
||||
<string name="privacy_changes_notice_content">Saatamme päivittää tätä tietosuojailmoitusta ajoittain. Kaikki muutokset näkyvät sovelluksessa ja verkkosivuillamme.</string>
|
||||
<string name="privacy_contact_us_title">Ota meihin yhteyttä</string>
|
||||
<string name="privacy_contact_us_content">Jos sinulla on kysyttävää tai huolenaiheita tästä tietosuojailmoituksesta, ota minuun yhteyttä numeroon %1$s.</string>
|
||||
<string name="no_albums_found">Albumeja ei löytynyt</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Viiveilmoitus</string>
|
||||
<string name="delay_notice_dialog">Viiveilmoitus</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Akun käytön minimoimiseksi taustakuvien vaihtamisessa saattaa esiintyä viivettä, kun se on ajoitettu. Kun laite on lepotilassa, taustakuvan asettaminen voi kestää kauemmin.</string>
|
||||
<string name="change_wallpaper">Vaihda taustakuva</string>
|
||||
</resources>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Avis de retard</string>
|
||||
<string name="delay_notice_dialog">Avis de retard</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Pour minimiser l\'utilisation de la batterie, le changement de fond d\'écran peut entraîner certains retards une fois planifié. Lorsque l\'appareil est en veille, l\'application du papier peint peut prendre plus de temps.</string>
|
||||
<string name="change_wallpaper">Changer le fond d\'écran</string>
|
||||
</resources>
|
||||
@@ -27,7 +27,7 @@
|
||||
<string name="save">સાચવો</string>
|
||||
<string name="delete_album">કાઢી નાખો</string>
|
||||
<string name="change_name">નામ સંપાદિત કરો</string>
|
||||
<string name="click_to_select_a_different_album">અલગ આલ્બમ પસંદ કરવા માટે ક્લિક કરો</string>
|
||||
<string name="click_to_select_a_different_album">એક અલગ આલ્બમ પસંદ કરવા માટે ક્લિક કરો</string>
|
||||
<string name="no_icon">કોઈ ચિહ્ન નથી</string>
|
||||
<string name="no_album_selected">કોઈ આલ્બમ પસંદ કરેલ નથી</string>
|
||||
<string name="currently_selected_album">હાલમાં પસંદ કરેલ આલ્બમ</string>
|
||||
@@ -116,7 +116,7 @@
|
||||
<item quantity="other">%d વૉલપેપર્સ</item>
|
||||
</plurals>
|
||||
<string name="privacy_intro_title">પરિચય</string>
|
||||
<string name="privacy_intro_content">%1$sપર આપનું સ્વાગત છે! આ ગોપનીયતા સૂચના રૂપરેખા આપે છે કે જ્યારે તમે અમારી મોબાઇલ એપ્લિકેશનનો ઉપયોગ કરો છો ત્યારે અમે તમારી વ્યક્તિગત માહિતી કેવી રીતે એકત્રિત કરીએ છીએ, ઉપયોગ કરીએ છીએ અને સુરક્ષિત કરીએ છીએ. %1$sનો ઉપયોગ કરીને, તમે આ સૂચનામાં વર્ણવેલ શરતો સાથે સંમત થાઓ છો.</string>
|
||||
<string name="privacy_intro_content">%1$sપર આપનું સ્વાગત છે! આ ગોપનીયતા સૂચના રૂપરેખા આપે છે કે જ્યારે તમે અમારી મોબાઇલ એપ્લિકેશનનો ઉપયોગ કરો છો ત્યારે અમે તમારી વ્યક્તિગત માહિતી કેવી રીતે એકત્રિત કરીએ છીએ, તેનો ઉપયોગ કરીએ છીએ અને તેનું રક્ષણ કરીએ છીએ. %1$sનો ઉપયોગ કરીને, તમે આ સૂચનામાં વર્ણવેલ શરતો સાથે સંમત થાઓ છો.</string>
|
||||
<string name="privacy_data_collection_title">માહિતી સંગ્રહ</string>
|
||||
<string name="privacy_data_collection_content">સૂચના ઍક્સેસ: %1$s તમારી સૂચનાઓના આધારે તમને વ્યક્તિગત વૉલપેપર ભલામણો પ્રદાન કરવા સૂચના ઍક્સેસની વિનંતી કરે છે. અમે તમારા ઉપકરણની બહાર કોઈપણ સૂચના સામગ્રી અથવા વ્યક્તિગત રીતે ઓળખી શકાય તેવી માહિતી (PII) સંગ્રહિત કરતા નથી.\n\nસ્થાનિક ફાઇલો: %1$s તમને વૉલપેપર તરીકે સેટ કરવાની મંજૂરી આપવા માટે તમારા ઉપકરણ પર સંગ્રહિત ફાઇલોને ઍક્સેસ કરે છે. અમે આ ફાઇલોને કોઈપણ બાહ્ય સર્વર પર અપલોડ અથવા સ્થાનાંતરિત કરતા નથી.</string>
|
||||
<string name="privacy_information_usage_title">માહિતી વપરાશ</string>
|
||||
@@ -132,7 +132,7 @@
|
||||
<string name="privacy_contact_us_title">અમારો સંપર્ક કરો</string>
|
||||
<string name="privacy_contact_us_content">જો તમને આ ગોપનીયતા સૂચના વિશે કોઈ પ્રશ્નો અથવા ચિંતાઓ હોય, તો કૃપા કરીને %1$sપર મારો સંપર્ક કરો.</string>
|
||||
<string name="no_albums_found">કોઈ આલ્બમ્સ મળ્યાં નથી</string>
|
||||
<string name="disable_live_wallpaper">લાઇવ વૉલપેપર અક્ષમ કરો</string>
|
||||
<string name="disable_live_wallpaper">જીવંત વૉલપેપર અક્ષમ કરો</string>
|
||||
<string name="live_wallpaper_detected">લાઇવ વૉલપેપર શોધાયું</string>
|
||||
<string name="please_disable_your_live_wallpaper_to_use_the_wallpaper_changer">વૉલપેપર ચેન્જરનો ઉપયોગ કરવા માટે કૃપા કરીને તમારા લાઇવ વૉલપેપરને અક્ષમ કરો.</string>
|
||||
<string name="ok">બરાબર</string>
|
||||
@@ -152,5 +152,6 @@
|
||||
<string name="next_wallpaper_change">આગામી વૉલપેપર ફેરફાર: %1$s</string>
|
||||
<string name="delay_notice">વિલંબની સૂચના</string>
|
||||
<string name="delay_notice_dialog">વિલંબની સૂચના</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">બૅટરીના વપરાશને ઘટાડવા માટે, એકવાર શેડ્યૂલ કર્યા પછી વૉલપેપર બદલવામાં થોડો વિલંબ થઈ શકે છે. જ્યારે ઉપકરણ નિષ્ક્રિય હોય, ત્યારે વૉલપેપર લાગુ થવામાં વધુ સમય લાગી શકે છે.</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">બેટરીનો વપરાશ ઓછો કરવા માટે, એકવાર શેડ્યૂલ કર્યા પછી વૉલપેપર બદલવામાં થોડો વિલંબ થઈ શકે છે. જ્યારે ઉપકરણ નિષ્ક્રિય હોય, ત્યારે વૉલપેપર લાગુ થવામાં વધુ સમય લાગી શકે છે.</string>
|
||||
<string name="change_wallpaper">વૉલપેપર બદલો</string>
|
||||
</resources>
|
||||
@@ -120,11 +120,11 @@
|
||||
<string name="privacy_data_collection_title">Tarin Bayanai</string>
|
||||
<string name="privacy_data_collection_content">Samun Faɗakarwa: %1$s yana buƙatar samun damar sanarwa don samar muku da keɓaɓɓen shawarwarin fuskar bangon waya dangane da sanarwarku. Ba mu adana duk wani abun ciki na sanarwa ko bayanan sirri (PII) a wajen na\'urarka.\n\nFayilolin gida: %1$s yana shiga fayilolin da aka adana akan na\'urarka don baka damar saita su azaman fuskar bangon waya. Ba mu loda ko canja wurin waɗannan fayiloli zuwa kowane sabar na waje.</string>
|
||||
<string name="privacy_information_usage_title">Amfanin Bayani</string>
|
||||
<string name="privacy_information_usage_content">Bayanan sirri: Ba ma tattara ko adana kowane bayanan sirri kamar sunaye, adiresoshin imel, ko lambobin waya.\n\nNazarin Amfani: %1$s baya bin halayen amfanin ku ko tattara bayanan nazari.</string>
|
||||
<string name="privacy_information_usage_content">Bayanan sirri: Ba mu tattara ko adana kowane bayanan sirri kamar sunaye, adiresoshin imel, ko lambobin waya.\n\nNazarin Amfani: %1$s baya bin halayen amfanin ku ko tattara bayanan nazari.</string>
|
||||
<string name="privacy_data_security_title">Tsaron Bayanai</string>
|
||||
<string name="privacy_data_security_content">Ajiye Kan Na\'ura: Duk bayanan da %1$s ke amfani da su suna kan na\'urarka. Ba mu aika ko adana kowane bayanai a waje.</string>
|
||||
<string name="privacy_data_security_content">Ajiye Kan Na\'urar: Duk bayanan da %1$s ke amfani da su suna kan na\'urarka. Ba mu aika ko adana kowane bayanai a waje.</string>
|
||||
<string name="privacy_third_party_services_title">Sabis na ɓangare na uku</string>
|
||||
<string name="privacy_third_party_services_content">Talla: %1$s baya nuna tallace-tallace na ɓangare na uku.\n\nHaɗin kai na waje: app ɗin mu na iya ƙunshi hanyoyin haɗin yanar gizo na waje. Lura cewa ba mu da alhakin ayyukan sirri na waɗannan rukunin yanar gizon.</string>
|
||||
<string name="privacy_third_party_services_content">Talla: %1$s baya nuna tallace-tallace na ɓangare na uku.\n\nHaɗin kai na waje: app ɗin mu na iya ƙunsar hanyoyin haɗin yanar gizo na waje. Lura cewa ba mu da alhakin ayyukan sirri na waɗannan rukunin yanar gizon.</string>
|
||||
<string name="privacy_children_privacy_title">Sirrin Yara</string>
|
||||
<string name="privacy_children_privacy_content">%1$s ba a yi niyya ga yara \'yan ƙasa da shekara 13. Ba mu da masaniya game da tattara wani bayani daga yara.</string>
|
||||
<string name="privacy_changes_notice_title">Canje-canje ga wannan sanarwar</string>
|
||||
@@ -134,7 +134,7 @@
|
||||
<string name="no_albums_found">Ba a sami kundi ba</string>
|
||||
<string name="disable_live_wallpaper">Kashe fuskar bangon waya kai tsaye</string>
|
||||
<string name="live_wallpaper_detected">An Gano Wallpaper Live</string>
|
||||
<string name="please_disable_your_live_wallpaper_to_use_the_wallpaper_changer">Da fatan za a kashe fuskar bangon waya mai rai don amfani da mai canza fuskar bangon waya.</string>
|
||||
<string name="please_disable_your_live_wallpaper_to_use_the_wallpaper_changer">Da fatan za a musaki fuskar bangon waya mai rai don amfani da mai canza fuskar bangon waya.</string>
|
||||
<string name="ok">KO</string>
|
||||
<string name="percentage">%1$s%%</string>
|
||||
<string name="fill">Cika</string>
|
||||
@@ -147,10 +147,11 @@
|
||||
<string name="individual_scheduling">Jadawalin Mutum</string>
|
||||
<string name="show_interval_sliders">Nuna faifan tazara</string>
|
||||
<string name="interval_text">Tsakanin Lokaci</string>
|
||||
<string name="change_blur">Canza blur</string>
|
||||
<string name="change_blur">Canja blur</string>
|
||||
<string name="paperize_is_running">Paperize yana gudana</string>
|
||||
<string name="next_wallpaper_change">Canjin fuskar bangon waya na gaba: %1$s</string>
|
||||
<string name="delay_notice">Sanarwa Jinkiri</string>
|
||||
<string name="delay_notice_dialog">Sanarwa Jinkiri</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Don rage amfani da baturi, canza fuskar bangon waya na iya samun wasu jinkiri da zarar an tsara shi. Lokacin da na\'urar ke barci, fuskar bangon waya na iya ɗaukar lokaci mai tsawo kafin a shafa.</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Don rage amfani da baturi, canza fuskar bangon waya na iya samun ɗan jinkiri da zarar an tsara shi. Lokacin da na\'urar ke barci, fuskar bangon waya na iya ɗaukar lokaci mai tsawo kafin a shafa.</string>
|
||||
<string name="change_wallpaper">Canja fuskar bangon waya</string>
|
||||
</resources>
|
||||
@@ -61,7 +61,7 @@
|
||||
<string name="circle_1_animation">אנימציה של מעגל 1</string>
|
||||
<string name="circle_3_animation">אנימציה של מעגל 3</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">מחליף טפט הופעל.</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">מחליף טפטים הושבת.</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">מחליף הטפט הושבת.</string>
|
||||
<string name="dismiss">לשחרר</string>
|
||||
<string name="has_been_unselected">הבחירה של %1$s בוטל.</string>
|
||||
<string name="interval_home">מסך הבית | %1$s</string>
|
||||
@@ -161,4 +161,5 @@
|
||||
<string name="delay_notice">הודעת עיכוב</string>
|
||||
<string name="delay_notice_dialog">הודעת עיכוב</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">כדי למזער את השימוש בסוללה, ייתכן שיהיו עיכובים בהחלפת טפטים לאחר שתוזמנו. כאשר המכשיר במצב שינה, הטפט עשוי להימשך זמן רב יותר להחיל אותו.</string>
|
||||
<string name="change_wallpaper">שנה טפט</string>
|
||||
</resources>
|
||||
@@ -17,7 +17,7 @@
|
||||
<string name="image_is_selected">छवि चयनित है</string>
|
||||
<string name="image_is_not_selected">छवि चयनित नहीं है</string>
|
||||
<string name="select_all_images_for_deletion">हटाने के लिए सभी छवियों का चयन करें</string>
|
||||
<string name="delete_confirmation">पुष्टि हटाएं</string>
|
||||
<string name="delete_confirmation">हटाने की पुष्टि</string>
|
||||
<string name="all_images_selected_for_deletion">सभी छवियाँ हटाने के लिए चुनी गईं</string>
|
||||
<string name="add_album">एल्बम जोड़ें</string>
|
||||
<string name="add_wallpaper_screen">वॉलपेपर स्क्रीन जोड़ें</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">विलंब सूचना</string>
|
||||
<string name="delay_notice_dialog">विलंब सूचना</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">बैटरी के उपयोग को कम करने के लिए, शेड्यूल किए गए वॉलपेपर को बदलने में कुछ देरी हो सकती है। जब डिवाइस सो रहा हो, तो वॉलपेपर को लागू होने में अधिक समय लग सकता है।</string>
|
||||
<string name="change_wallpaper">वॉलपेपर बदल दो</string>
|
||||
</resources>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Késleltetési értesítés</string>
|
||||
<string name="delay_notice_dialog">Késleltetési értesítés</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Az akkumulátorhasználat minimalizálása érdekében a háttérképek cseréje az ütemezést követően némi késéssel járhat. Amikor a készülék alvó állapotban van, a háttérkép alkalmazása tovább tarthat.</string>
|
||||
<string name="change_wallpaper">Háttérkép módosítása</string>
|
||||
</resources>
|
||||
@@ -17,7 +17,7 @@
|
||||
<string name="image_is_selected">L\'immagine è selezionata</string>
|
||||
<string name="image_is_not_selected">L\'immagine non è selezionata</string>
|
||||
<string name="select_all_images_for_deletion">Seleziona tutte le immagini per l\'eliminazione</string>
|
||||
<string name="delete_confirmation">Cancella conferma</string>
|
||||
<string name="delete_confirmation">Conferma eliminazione</string>
|
||||
<string name="all_images_selected_for_deletion">Tutte le immagini selezionate per l\'eliminazione</string>
|
||||
<string name="add_album">Aggiungi l\'album</string>
|
||||
<string name="add_wallpaper_screen">Aggiungi schermata di sfondo</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Avviso di ritardo</string>
|
||||
<string name="delay_notice_dialog">Avviso di ritardo</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Per ridurre al minimo l\'utilizzo della batteria, la modifica degli sfondi potrebbe subire alcuni ritardi rispetto alla pianificazione. Quando il dispositivo è in modalità di sospensione, l\'applicazione dello sfondo potrebbe richiedere più tempo.</string>
|
||||
<string name="change_wallpaper">Cambia sfondo</string>
|
||||
</resources>
|
||||
@@ -149,4 +149,5 @@
|
||||
<string name="delay_notice">遅延通知</string>
|
||||
<string name="delay_notice_dialog">遅延通知</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">バッテリーの使用量を最小限に抑えるために、壁紙の変更はスケジュールされた後に多少の遅延が生じる場合があります。デバイスがスリープ状態の場合、壁紙の適用に時間がかかることがあります。</string>
|
||||
<string name="change_wallpaper">壁紙を変更する</string>
|
||||
</resources>
|
||||
@@ -38,7 +38,7 @@
|
||||
<string name="welcome">Sugeng rawuh</string>
|
||||
<string name="notifications">Kabar</string>
|
||||
<string name="continue_button">Aku ing</string>
|
||||
<string name="notification_permission_is_required_for_this_app_to_work_properly">Ijin kabar dibutuhake supaya aplikasi iki bisa digunakake kanthi bener</string>
|
||||
<string name="notification_permission_is_required_for_this_app_to_work_properly">Ijin notifikasi dibutuhake supaya aplikasi iki bisa digunakake kanthi bener</string>
|
||||
<string name="allow">ngidini</string>
|
||||
<string name="notification_info_message">Kabar bisa diaktifake kanggo nuduhake nalika app lagi mlaku ing latar mburi.</string>
|
||||
<string name="set_as_lock_screen">Setel minangka layar kunci</string>
|
||||
@@ -118,7 +118,7 @@
|
||||
<string name="privacy_information_usage_title">Panggunaan Informasi</string>
|
||||
<string name="privacy_information_usage_content">Data Pribadi: Kita ora ngumpulake utawa nyimpen data pribadhi kayata jeneng, alamat email, utawa nomer telpon.\n\nAnalisis Panggunaan: %1$s ora nglacak prilaku panggunaan sampeyan utawa ngumpulake data analitik.</string>
|
||||
<string name="privacy_data_security_title">Keamanan Data</string>
|
||||
<string name="privacy_data_security_content">Panyimpenan ing Piranti: Kabeh data sing digunakake dening %1$s tetep ana ing piranti sampeyan. Kita ora ngirim utawa nyimpen data externally.</string>
|
||||
<string name="privacy_data_security_content">Panyimpenan ing Piranti: Kabeh data sing digunakake dening %1$s tetep ana ing piranti sampeyan. Kita ora ngirim utawa nyimpen data eksternal.</string>
|
||||
<string name="privacy_third_party_services_title">Layanan Pihak Katelu</string>
|
||||
<string name="privacy_third_party_services_content">Iklan: %1$s ora nampilake iklan pihak katelu.\n\nLink Eksternal: Aplikasi kita bisa uga ngemot pranala menyang situs web eksternal. Elinga yen kita ora tanggung jawab kanggo praktik privasi situs kasebut.</string>
|
||||
<string name="privacy_children_privacy_title">Privasi Anak</string>
|
||||
@@ -149,4 +149,5 @@
|
||||
<string name="delay_notice">Kabar Tundha</string>
|
||||
<string name="delay_notice_dialog">Kabar Tundha</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Kanggo nyilikake panggunaan baterei, ngganti wallpaper bisa uga ana sawetara wektu tundha yen wis dijadwal. Nalika piranti lagi turu, wallpaper bisa uga butuh wektu luwih suwe kanggo ditrapake.</string>
|
||||
<string name="change_wallpaper">Ganti wallpaper</string>
|
||||
</resources>
|
||||
@@ -26,7 +26,7 @@
|
||||
<string name="cancel">취소</string>
|
||||
<string name="save">구하다</string>
|
||||
<string name="delete_album">삭제</string>
|
||||
<string name="change_name">이름 편집</string>
|
||||
<string name="change_name">이름 수정</string>
|
||||
<string name="click_to_select_a_different_album">다른 앨범을 선택하려면 클릭하세요.</string>
|
||||
<string name="no_icon">아이콘 없음</string>
|
||||
<string name="no_album_selected">선택한 앨범이 없습니다.</string>
|
||||
@@ -149,4 +149,5 @@
|
||||
<string name="delay_notice">지연 통지</string>
|
||||
<string name="delay_notice_dialog">지연 통지</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">배터리 사용량을 최소화하기 위해 배경 화면 변경이 예정된 후에는 약간의 지연이 발생할 수 있습니다. 장치가 절전 모드일 때 배경화면을 적용하는 데 시간이 더 오래 걸릴 수 있습니다.</string>
|
||||
<string name="change_wallpaper">배경화면 변경</string>
|
||||
</resources>
|
||||
@@ -18,7 +18,7 @@
|
||||
<string name="image_is_not_selected">प्रतिमा निवडलेली नाही</string>
|
||||
<string name="select_all_images_for_deletion">हटवण्यासाठी सर्व प्रतिमा निवडा</string>
|
||||
<string name="delete_confirmation">पुष्टीकरण हटवा</string>
|
||||
<string name="all_images_selected_for_deletion">सर्व प्रतिमा हटवण्यासाठी निवडल्या</string>
|
||||
<string name="all_images_selected_for_deletion">हटवण्यासाठी निवडलेल्या सर्व प्रतिमा</string>
|
||||
<string name="add_album">अल्बम जोडा</string>
|
||||
<string name="add_wallpaper_screen">वॉलपेपर स्क्रीन जोडा</string>
|
||||
<string name="enter_the_name_of_the_album">अल्बमचे नाव प्रविष्ट करा</string>
|
||||
@@ -40,7 +40,7 @@
|
||||
<string name="continue_button">मी आतमध्ये आहे</string>
|
||||
<string name="notification_permission_is_required_for_this_app_to_work_properly">या ॲपला योग्यरित्या कार्य करण्यासाठी सूचना परवानगी आवश्यक आहे</string>
|
||||
<string name="allow">परवानगी द्या</string>
|
||||
<string name="notification_info_message">ॲप बॅकग्राउंडमध्ये चालू असताना दर्शविण्यासाठी सूचना सक्षम केल्या जाऊ शकतात.</string>
|
||||
<string name="notification_info_message">जेव्हा ॲप बॅकग्राउंडमध्ये चालू असेल तेव्हा दर्शविण्यासाठी सूचना सक्षम केल्या जाऊ शकतात.</string>
|
||||
<string name="set_as_lock_screen">लॉक स्क्रीन म्हणून सेट करा</string>
|
||||
<string name="lock_screen">लॉक स्क्रीन</string>
|
||||
<string name="home">होम स्क्रीन</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">विलंब सूचना</string>
|
||||
<string name="delay_notice_dialog">विलंब सूचना</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">बॅटरीचा वापर कमी करण्यासाठी, एकदा शेड्यूल केल्यावर वॉलपेपर बदलण्यात काही विलंब होऊ शकतो. जेव्हा डिव्हाइस झोपलेले असते, तेव्हा वॉलपेपर लागू होण्यासाठी जास्त वेळ लागू शकतो.</string>
|
||||
<string name="change_wallpaper">वॉलपेपर बदला</string>
|
||||
</resources>
|
||||
@@ -54,7 +54,7 @@
|
||||
<string name="contact_the_author_by_email">Neem per e-mail contact op met de auteur</string>
|
||||
<string name="reset_to_default">Terugzetten naar standaard</string>
|
||||
<string name="reset_all_data">Reset alle gegevens</string>
|
||||
<string name="are_you_sure_you_want_to_reset_all_settings_and_data_to_default">Weet u zeker dat u alle instellingen en gegevens wilt terugzetten naar de standaardinstellingen?</string>
|
||||
<string name="are_you_sure_you_want_to_reset_all_settings_and_data_to_default">Weet u zeker dat u alle instellingen en gegevens wilt terugzetten naar de standaardwaarden?</string>
|
||||
<string name="confirm">Bevestigen</string>
|
||||
<string name="spotlight_animation">Spotlight-animatie</string>
|
||||
<string name="circle_2_animation">Cirkel 2 animatie</string>
|
||||
@@ -94,10 +94,10 @@
|
||||
<string name="increase_visual_appeal">Verhoog de visuele aantrekkingskracht</string>
|
||||
<string name="dark_mode">Donkere modus</string>
|
||||
<string name="automatic_device_mode">Automatische apparaatmodus</string>
|
||||
<string name="light_mode">Lichte modus</string>
|
||||
<string name="light_mode">Lichtmodus</string>
|
||||
<string name="easier_on_the_eyes">Makkelijker voor de ogen</string>
|
||||
<string name="dynamic_theme">Dynamisch thema</string>
|
||||
<string name="material_you">Materiaal Jij</string>
|
||||
<string name="material_you">Materiaal jij</string>
|
||||
<string name="dynamic_theming">Dynamisch thema</string>
|
||||
<string name="click_here_to_view_the_licenses">Klik hier om de licenties te bekijken</string>
|
||||
<string name="click_here_to_view_our_privacy_policy">Klik hier om ons privacybeleid te bekijken</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Vertragingsbericht</string>
|
||||
<string name="delay_notice_dialog">Vertragingsbericht</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Om het batterijgebruik tot een minimum te beperken, kan het wijzigen van de achtergrond enige vertraging oplopen zodra deze is gepland. Wanneer het apparaat in de slaapstand staat, kan het langer duren voordat de achtergrond is aangebracht.</string>
|
||||
<string name="change_wallpaper">Verander achtergrond</string>
|
||||
</resources>
|
||||
@@ -128,7 +128,7 @@
|
||||
<string name="privacy_children_privacy_title">Barns personvern</string>
|
||||
<string name="privacy_children_privacy_content">%1$s er ikke beregnet på barn under 13 år. Vi samler ikke bevisst inn informasjon fra barn.</string>
|
||||
<string name="privacy_changes_notice_title">Endringer i denne kunngjøringen</string>
|
||||
<string name="privacy_changes_notice_content">Vi kan oppdatere denne personvernerklæringen fra tid til annen. Eventuelle endringer vil bli reflektert i appen og på nettsiden vår.</string>
|
||||
<string name="privacy_changes_notice_content">Vi kan oppdatere denne personvernerklæringen fra tid til annen. Eventuelle endringer vil gjenspeiles i appen og på nettsiden vår.</string>
|
||||
<string name="privacy_contact_us_title">Kontakt oss</string>
|
||||
<string name="privacy_contact_us_content">Hvis du har spørsmål eller bekymringer angående denne personvernerklæringen, vennligst kontakt meg på %1$s.</string>
|
||||
<string name="no_albums_found">Ingen album funnet</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Forsinket varsel</string>
|
||||
<string name="delay_notice_dialog">Forsinket varsel</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">For å minimere batteribruken, kan endring av bakgrunnsbilder ha noen forsinkelser når den er planlagt. Når enheten er i dvale, kan bakgrunnen ta lengre tid å påføre.</string>
|
||||
<string name="change_wallpaper">Bytt bakgrunn</string>
|
||||
</resources>
|
||||
@@ -61,7 +61,7 @@
|
||||
<string name="circle_1_animation">ਸਰਕਲ 1 ਐਨੀਮੇਸ਼ਨ</string>
|
||||
<string name="circle_3_animation">ਸਰਕਲ 3 ਐਨੀਮੇਸ਼ਨ</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">ਵਾਲਪੇਪਰ ਬਦਲਣ ਵਾਲਾ ਚਾਲੂ ਕੀਤਾ ਗਿਆ ਹੈ।</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">ਵਾਲਪੇਪਰ ਬਦਲਣ ਵਾਲੇ ਨੂੰ ਅਸਮਰੱਥ ਬਣਾਇਆ ਗਿਆ ਹੈ।</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">ਵਾਲਪੇਪਰ ਬਦਲਣ ਵਾਲਾ ਬੰਦ ਕਰ ਦਿੱਤਾ ਗਿਆ ਹੈ।</string>
|
||||
<string name="dismiss">ਖਾਰਜ ਕਰੋ</string>
|
||||
<string name="has_been_unselected">%1$s ਨੂੰ ਅਣਚੁਣਿਆ ਗਿਆ ਹੈ।</string>
|
||||
<string name="interval_home">ਹੋਮ ਸਕ੍ਰੀਨ | %1$s</string>
|
||||
@@ -116,7 +116,7 @@
|
||||
<item quantity="other">%d ਵਾਲਪੇਪਰ</item>
|
||||
</plurals>
|
||||
<string name="privacy_intro_title">ਜਾਣ-ਪਛਾਣ</string>
|
||||
<string name="privacy_intro_content">%1$sਵਿੱਚ ਜੀ ਆਇਆਂ ਨੂੰ! ਇਹ ਗੋਪਨੀਯਤਾ ਨੋਟਿਸ ਇਹ ਦੱਸਦਾ ਹੈ ਕਿ ਜਦੋਂ ਤੁਸੀਂ ਸਾਡੀ ਮੋਬਾਈਲ ਐਪਲੀਕੇਸ਼ਨ ਦੀ ਵਰਤੋਂ ਕਰਦੇ ਹੋ ਤਾਂ ਅਸੀਂ ਤੁਹਾਡੀ ਨਿੱਜੀ ਜਾਣਕਾਰੀ ਨੂੰ ਕਿਵੇਂ ਇਕੱਠਾ ਕਰਦੇ ਹਾਂ, ਵਰਤਦੇ ਹਾਂ ਅਤੇ ਸੁਰੱਖਿਅਤ ਕਰਦੇ ਹਾਂ। %1$sਦੀ ਵਰਤੋਂ ਕਰਕੇ, ਤੁਸੀਂ ਇਸ ਨੋਟਿਸ ਵਿੱਚ ਵਰਣਨ ਕੀਤੀਆਂ ਸ਼ਰਤਾਂ ਨਾਲ ਸਹਿਮਤ ਹੁੰਦੇ ਹੋ।</string>
|
||||
<string name="privacy_intro_content">%1$sਵਿੱਚ ਜੀ ਆਇਆਂ ਨੂੰ! ਇਹ ਗੋਪਨੀਯਤਾ ਨੋਟਿਸ ਇਹ ਦੱਸਦਾ ਹੈ ਕਿ ਜਦੋਂ ਤੁਸੀਂ ਸਾਡੀ ਮੋਬਾਈਲ ਐਪਲੀਕੇਸ਼ਨ ਦੀ ਵਰਤੋਂ ਕਰਦੇ ਹੋ ਤਾਂ ਅਸੀਂ ਤੁਹਾਡੀ ਨਿੱਜੀ ਜਾਣਕਾਰੀ ਨੂੰ ਕਿਵੇਂ ਇਕੱਤਰ ਕਰਦੇ ਹਾਂ, ਵਰਤਦੇ ਹਾਂ ਅਤੇ ਸੁਰੱਖਿਅਤ ਕਰਦੇ ਹਾਂ। %1$sਦੀ ਵਰਤੋਂ ਕਰਕੇ, ਤੁਸੀਂ ਇਸ ਨੋਟਿਸ ਵਿੱਚ ਵਰਣਨ ਕੀਤੀਆਂ ਸ਼ਰਤਾਂ ਨਾਲ ਸਹਿਮਤ ਹੁੰਦੇ ਹੋ।</string>
|
||||
<string name="privacy_data_collection_title">ਡਾਟਾ ਇਕੱਠਾ ਕਰਨ</string>
|
||||
<string name="privacy_data_collection_content">ਸੂਚਨਾ ਪਹੁੰਚ: %1$s ਤੁਹਾਡੀਆਂ ਸੂਚਨਾਵਾਂ ਦੇ ਆਧਾਰ \'ਤੇ ਤੁਹਾਨੂੰ ਵਿਅਕਤੀਗਤ ਵਾਲਪੇਪਰ ਸਿਫ਼ਾਰਸ਼ਾਂ ਪ੍ਰਦਾਨ ਕਰਨ ਲਈ ਸੂਚਨਾ ਪਹੁੰਚ ਦੀ ਬੇਨਤੀ ਕਰਦਾ ਹੈ। ਅਸੀਂ ਤੁਹਾਡੀ ਡਿਵਾਈਸ ਦੇ ਬਾਹਰ ਕੋਈ ਵੀ ਸੂਚਨਾ ਸਮੱਗਰੀ ਜਾਂ ਨਿੱਜੀ ਤੌਰ \'ਤੇ ਪਛਾਣਨ ਯੋਗ ਜਾਣਕਾਰੀ (PII) ਸਟੋਰ ਨਹੀਂ ਕਰਦੇ ਹਾਂ।\n\nਸਥਾਨਕ ਫ਼ਾਈਲਾਂ: %1$s ਤੁਹਾਡੀ ਡੀਵਾਈਸ \'ਤੇ ਸਟੋਰ ਕੀਤੀਆਂ ਫ਼ਾਈਲਾਂ ਤੱਕ ਪਹੁੰਚ ਕਰਦਾ ਹੈ ਤਾਂ ਜੋ ਤੁਸੀਂ ਉਹਨਾਂ ਨੂੰ ਵਾਲਪੇਪਰਾਂ ਵਜੋਂ ਸੈੱਟ ਕਰ ਸਕੋ। ਅਸੀਂ ਇਹਨਾਂ ਫ਼ਾਈਲਾਂ ਨੂੰ ਕਿਸੇ ਬਾਹਰੀ ਸਰਵਰ \'ਤੇ ਅੱਪਲੋਡ ਜਾਂ ਟ੍ਰਾਂਸਫ਼ਰ ਨਹੀਂ ਕਰਦੇ ਹਾਂ।</string>
|
||||
<string name="privacy_information_usage_title">ਜਾਣਕਾਰੀ ਦੀ ਵਰਤੋਂ</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">ਦੇਰੀ ਨੋਟਿਸ</string>
|
||||
<string name="delay_notice_dialog">ਦੇਰੀ ਨੋਟਿਸ</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">ਬੈਟਰੀ ਦੀ ਵਰਤੋਂ ਨੂੰ ਘੱਟ ਕਰਨ ਲਈ, ਇੱਕ ਵਾਰ ਨਿਯਤ ਕੀਤੇ ਜਾਣ \'ਤੇ ਵਾਲਪੇਪਰ ਬਦਲਣ ਵਿੱਚ ਕੁਝ ਦੇਰੀ ਹੋ ਸਕਦੀ ਹੈ। ਜਦੋਂ ਡਿਵਾਈਸ ਸਲੀਪ ਹੁੰਦੀ ਹੈ, ਤਾਂ ਵਾਲਪੇਪਰ ਲਾਗੂ ਹੋਣ ਵਿੱਚ ਜ਼ਿਆਦਾ ਸਮਾਂ ਲੈ ਸਕਦਾ ਹੈ।</string>
|
||||
<string name="change_wallpaper">ਵਾਲਪੇਪਰ ਬਦਲੋ</string>
|
||||
</resources>
|
||||
@@ -21,7 +21,7 @@
|
||||
<string name="all_images_selected_for_deletion">Wszystkie obrazy wybrane do usunięcia</string>
|
||||
<string name="add_album">Dodaj album</string>
|
||||
<string name="add_wallpaper_screen">Dodaj ekran tapety</string>
|
||||
<string name="enter_the_name_of_the_album">Wprowadź nazwę albumu</string>
|
||||
<string name="enter_the_name_of_the_album">Wpisz nazwę albumu</string>
|
||||
<string name="album_name">Nazwa albumu</string>
|
||||
<string name="cancel">Anulować</string>
|
||||
<string name="save">Ratować</string>
|
||||
@@ -63,7 +63,7 @@
|
||||
<string name="wallpaper_changer_has_been_enabled">Zmieniacz tapet został włączony.</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">Zmieniacz tapet został wyłączony.</string>
|
||||
<string name="dismiss">Odrzucać</string>
|
||||
<string name="has_been_unselected">%1$s nie zostało zaznaczone.</string>
|
||||
<string name="has_been_unselected">%1$s zostało odznaczone.</string>
|
||||
<string name="interval_home">Ekran główny | %1$s</string>
|
||||
<string name="interval_lock">Zablokuj ekran | %1$s</string>
|
||||
<string name="interval">Interwał | %1$s</string>
|
||||
@@ -161,4 +161,5 @@
|
||||
<string name="delay_notice">Powiadomienie o opóźnieniu</string>
|
||||
<string name="delay_notice_dialog">Powiadomienie o opóźnieniu</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Aby zminimalizować zużycie baterii, zmiana tapet może nastąpić z pewnym opóźnieniem po zaplanowaniu. Gdy urządzenie jest uśpione, nakładanie tapety może zająć więcej czasu.</string>
|
||||
<string name="change_wallpaper">Zmień tapetę</string>
|
||||
</resources>
|
||||
@@ -116,9 +116,9 @@
|
||||
<item quantity="other">%d papéis de parede</item>
|
||||
</plurals>
|
||||
<string name="privacy_intro_title">Introdução</string>
|
||||
<string name="privacy_intro_content">Bem vindo a %1$s! Este aviso de privacidade descreve como coletamos, usamos e protegemos suas informações pessoais quando você usa nosso aplicativo móvel. Ao usar %1$s, você concorda com os termos descritos neste aviso.</string>
|
||||
<string name="privacy_intro_content">Bem-vindo ao %1$s! Este aviso de privacidade descreve como coletamos, usamos e protegemos suas informações pessoais quando você usa nosso aplicativo móvel. Ao usar %1$s, você concorda com os termos descritos neste aviso.</string>
|
||||
<string name="privacy_data_collection_title">Coleção de dados</string>
|
||||
<string name="privacy_data_collection_content">Acesso a notificações: %1$s solicita acesso a notificações para fornecer recomendações personalizadas de papéis de parede com base em suas notificações. Não armazenamos nenhum conteúdo de notificação ou informações de identificação pessoal (PII) fora do seu dispositivo.\n\nArquivos locais: %1$s acessa arquivos armazenados em seu dispositivo para permitir que você os configure como papel de parede. Não carregamos nem transferimos esses arquivos para servidores externos.</string>
|
||||
<string name="privacy_data_collection_content">Acesso a notificações: %1$s solicita acesso a notificações para fornecer recomendações personalizadas de papéis de parede com base em suas notificações. Não armazenamos nenhum conteúdo de notificação ou informações de identificação pessoal (PII) fora do seu dispositivo.\n\nArquivos locais: %1$s acessa arquivos armazenados em seu dispositivo para permitir que você os configure como papel de parede. Não carregamos ou transferimos esses arquivos para servidores externos.</string>
|
||||
<string name="privacy_information_usage_title">Uso de informações</string>
|
||||
<string name="privacy_information_usage_content">Dados Pessoais: Não coletamos nem armazenamos quaisquer dados pessoais, como nomes, endereços de e-mail ou números de telefone.\n\nAnálise de uso: %1$s não rastreia seu comportamento de uso nem coleta dados analíticos.</string>
|
||||
<string name="privacy_data_security_title">Segurança de dados</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Aviso de atraso</string>
|
||||
<string name="delay_notice_dialog">Aviso de atraso</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Para minimizar o uso da bateria, a troca de papéis de parede pode sofrer alguns atrasos após o agendamento. Quando o dispositivo está em suspensão, o papel de parede pode demorar mais para ser aplicado.</string>
|
||||
<string name="change_wallpaper">Mudar papel de parede</string>
|
||||
</resources>
|
||||
@@ -19,7 +19,7 @@
|
||||
<string name="select_all_images_for_deletion">Selectați toate imaginile pentru ștergere</string>
|
||||
<string name="delete_confirmation">Ștergeți confirmarea</string>
|
||||
<string name="all_images_selected_for_deletion">Toate imaginile selectate pentru ștergere</string>
|
||||
<string name="add_album">Adăugați album</string>
|
||||
<string name="add_album">Adaugă album</string>
|
||||
<string name="add_wallpaper_screen">Adăugați ecran de fundal</string>
|
||||
<string name="enter_the_name_of_the_album">Introduceți numele albumului</string>
|
||||
<string name="album_name">Numele albumului</string>
|
||||
@@ -120,7 +120,7 @@
|
||||
<item quantity="other">%d imagini de fundal</item>
|
||||
</plurals>
|
||||
<string name="privacy_intro_title">Introducere</string>
|
||||
<string name="privacy_intro_content">Bun venit la %1$s! Această notificare de confidențialitate prezintă modul în care colectăm, utilizăm și protejăm informațiile dumneavoastră personale atunci când utilizați aplicația noastră mobilă. Folosind %1$s, sunteți de acord cu termenii descriși în această notificare.</string>
|
||||
<string name="privacy_intro_content">Bun venit la %1$s! Această notificare de confidențialitate prezintă modul în care colectăm, utilizăm și vă protejăm informațiile personale atunci când utilizați aplicația noastră mobilă. Folosind %1$s, sunteți de acord cu termenii descriși în această notificare.</string>
|
||||
<string name="privacy_data_collection_title">Colectare de date</string>
|
||||
<string name="privacy_data_collection_content">Acces la notificări: %1$s solicită acces la notificări pentru a vă oferi recomandări personalizate pentru imagini de fundal bazate pe notificările dvs. Nu stocăm niciun conținut de notificare sau informații de identificare personală (PII) în afara dispozitivului dvs.\n\nFișiere locale: %1$s accesează fișierele stocate pe dispozitivul dvs. pentru a vă permite să le setați ca imagini de fundal. Nu încărcăm și nu transferăm aceste fișiere pe niciun server extern.</string>
|
||||
<string name="privacy_information_usage_title">Utilizarea informațiilor</string>
|
||||
@@ -157,4 +157,5 @@
|
||||
<string name="delay_notice">Notificare de întârziere</string>
|
||||
<string name="delay_notice_dialog">Notificare de întârziere</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Pentru a minimiza utilizarea bateriei, schimbarea imaginilor de fundal poate avea unele întârzieri odată programată. Când dispozitivul este adormit, aplicarea tapetului poate dura mai mult.</string>
|
||||
<string name="change_wallpaper">Schimbă imaginea de fundal</string>
|
||||
</resources>
|
||||
@@ -161,4 +161,5 @@
|
||||
<string name="delay_notice">Уведомление о задержке</string>
|
||||
<string name="delay_notice_dialog">Уведомление о задержке</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Чтобы свести к минимуму расход заряда батареи, смена обоев может происходить с некоторой задержкой по расписанию. Когда устройство находится в спящем режиме, применение обоев может занять больше времени.</string>
|
||||
<string name="change_wallpaper">Сменить обои</string>
|
||||
</resources>
|
||||
@@ -18,7 +18,7 @@
|
||||
<string name="image_is_not_selected">Слика није изабрана</string>
|
||||
<string name="select_all_images_for_deletion">Изаберите све слике за брисање</string>
|
||||
<string name="delete_confirmation">Обриши потврду</string>
|
||||
<string name="all_images_selected_for_deletion">Све слике су изабране за брисање</string>
|
||||
<string name="all_images_selected_for_deletion">Све слике изабране за брисање</string>
|
||||
<string name="add_album">Додај албум</string>
|
||||
<string name="add_wallpaper_screen">Додај екран за позадину</string>
|
||||
<string name="enter_the_name_of_the_album">Унесите назив албума</string>
|
||||
@@ -58,7 +58,7 @@
|
||||
<string name="confirm">Потврди</string>
|
||||
<string name="spotlight_animation">Анимација у центру пажње</string>
|
||||
<string name="circle_2_animation">Круг 2 анимација</string>
|
||||
<string name="circle_1_animation">Анимација круга 1</string>
|
||||
<string name="circle_1_animation">Круг 1 анимација</string>
|
||||
<string name="circle_3_animation">Круг 3 анимација</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">Промена позадине је омогућена.</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">Промена позадине је онемогућена.</string>
|
||||
@@ -157,4 +157,5 @@
|
||||
<string name="delay_notice">Обавештење о кашњењу</string>
|
||||
<string name="delay_notice_dialog">Обавештење о кашњењу</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Да би се смањила потрошња батерије, промена позадине може имати одређена кашњења када се закаже. Када је уређај у стању мировања, може потрајати дуже за постављање позадине.</string>
|
||||
<string name="change_wallpaper">Промените позадину</string>
|
||||
</resources>
|
||||
@@ -59,7 +59,7 @@
|
||||
<string name="spotlight_animation">Spotlight-animation</string>
|
||||
<string name="circle_2_animation">Cirkel 2-animation</string>
|
||||
<string name="circle_1_animation">Cirkel 1-animation</string>
|
||||
<string name="circle_3_animation">Cirkel 3 animation</string>
|
||||
<string name="circle_3_animation">Cirkel 3-animation</string>
|
||||
<string name="wallpaper_changer_has_been_enabled">Bakgrundsväxlare har aktiverats.</string>
|
||||
<string name="wallpaper_changer_has_been_disabled">Bakgrundsväxlare har inaktiverats.</string>
|
||||
<string name="dismiss">Avfärda</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Förseningsmeddelande</string>
|
||||
<string name="delay_notice_dialog">Förseningsmeddelande</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">För att minimera batterianvändningen kan byte av bakgrundsbilder ha vissa förseningar när de har schemalagts. När enheten ligger i viloläge kan tapeten ta längre tid att applicera.</string>
|
||||
<string name="change_wallpaper">Byt tapet</string>
|
||||
</resources>
|
||||
@@ -152,5 +152,6 @@
|
||||
<string name="next_wallpaper_change">அடுத்த வால்பேப்பர் மாற்றம்: %1$s</string>
|
||||
<string name="delay_notice">தாமத அறிவிப்பு</string>
|
||||
<string name="delay_notice_dialog">தாமத அறிவிப்பு</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">பேட்டரி பயன்பாட்டைக் குறைக்க, வால்பேப்பர்களை மாற்றுவது திட்டமிடப்பட்டவுடன் சில தாமதங்களைச் சந்திக்கலாம். சாதனம் தூங்கும்போது, வால்பேப்பரைப் பயன்படுத்த அதிக நேரம் ஆகலாம்.</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">பேட்டரி பயன்பாட்டைக் குறைக்க, வால்பேப்பர்களை மாற்றுவதற்கு திட்டமிடப்பட்டவுடன் சில தாமதங்கள் ஏற்படலாம். சாதனம் தூங்கும்போது, வால்பேப்பரைப் பயன்படுத்த அதிக நேரம் ஆகலாம்.</string>
|
||||
<string name="change_wallpaper">வால்பேப்பரை மாற்றவும்</string>
|
||||
</resources>
|
||||
@@ -80,7 +80,7 @@
|
||||
<item quantity="other">%d రోజులు</item>
|
||||
</plurals>
|
||||
<string name="selected_count">%1$s ఎంచుకోబడింది</string>
|
||||
<string name="please_read_and_agree_to_the_following_privacy_notice_to_use_the_app">దయచేసి యాప్ని ఉపయోగించడానికి క్రింది గోప్యతా నోటీసును చదివి, అంగీకరించండి.</string>
|
||||
<string name="please_read_and_agree_to_the_following_privacy_notice_to_use_the_app">దయచేసి యాప్ను ఉపయోగించడానికి క్రింది గోప్యతా నోటీసును చదివి, అంగీకరించండి.</string>
|
||||
<string name="privacy_notice">గోప్యతా నోటీసు</string>
|
||||
<string name="please_read_and_agree_to_the_privacy_notice">దయచేసి గోప్యతా నోటీసును చదివి, అంగీకరించండి.</string>
|
||||
<string name="view">చూడండి</string>
|
||||
@@ -95,7 +95,7 @@
|
||||
<string name="dark_mode">డార్క్ మోడ్</string>
|
||||
<string name="automatic_device_mode">స్వయంచాలక పరికర మోడ్</string>
|
||||
<string name="light_mode">లైట్ మోడ్</string>
|
||||
<string name="easier_on_the_eyes">కళ్లపై తేలిక</string>
|
||||
<string name="easier_on_the_eyes">కళ్లకు తేలిక</string>
|
||||
<string name="dynamic_theme">డైనమిక్ థీమ్</string>
|
||||
<string name="material_you">మెటీరియల్ మీరు</string>
|
||||
<string name="dynamic_theming">డైనమిక్ థీమింగ్</string>
|
||||
@@ -145,12 +145,13 @@
|
||||
<string name="home_screen_btn">హోమ్ స్క్రీన్</string>
|
||||
<string name="lock_screen_btn">లాక్ స్క్రీన్</string>
|
||||
<string name="individual_scheduling">వ్యక్తిగత షెడ్యూలింగ్</string>
|
||||
<string name="show_interval_sliders">విరామం స్లయిడర్లను చూపించు</string>
|
||||
<string name="show_interval_sliders">విరామ స్లయిడర్లను చూపించు</string>
|
||||
<string name="interval_text">సమయ విరామం</string>
|
||||
<string name="change_blur">బ్లర్ మార్చండి</string>
|
||||
<string name="paperize_is_running">పేపర్రైజ్ నడుస్తోంది</string>
|
||||
<string name="next_wallpaper_change">తదుపరి వాల్పేపర్ మార్పు: %1$s</string>
|
||||
<string name="delay_notice">ఆలస్యం నోటీసు</string>
|
||||
<string name="delay_notice_dialog">ఆలస్యం నోటీసు</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">బ్యాటరీ వినియోగాన్ని తగ్గించడానికి, షెడ్యూల్ చేసిన తర్వాత వాల్పేపర్లను మార్చడం వలన కొంత ఆలస్యం కావచ్చు. పరికరం నిద్రలో ఉన్నప్పుడు, వాల్పేపర్ వర్తించడానికి ఎక్కువ సమయం పట్టవచ్చు.</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">బ్యాటరీ వినియోగాన్ని తగ్గించడానికి, వాల్పేపర్లను మార్చడం ఒకసారి షెడ్యూల్ చేసిన తర్వాత కొంత ఆలస్యం కావచ్చు. పరికరం నిద్రలో ఉన్నప్పుడు, వాల్పేపర్ వర్తించడానికి ఎక్కువ సమయం పట్టవచ్చు.</string>
|
||||
<string name="change_wallpaper">వాల్పేపర్ని మార్చండి</string>
|
||||
</resources>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">Gecikme Bildirimi</string>
|
||||
<string name="delay_notice_dialog">Gecikme Bildirimi</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Pil kullanımını en aza indirmek için, duvar kağıtlarının değiştirilmesi planlandığında bazı gecikmelere neden olabilir. Cihaz uykudayken duvar kağıdının uygulanması daha uzun sürebilir.</string>
|
||||
<string name="change_wallpaper">Duvar kağıdını değiştir</string>
|
||||
</resources>
|
||||
@@ -130,7 +130,7 @@
|
||||
<string name="privacy_information_usage_title">Використання інформації</string>
|
||||
<string name="privacy_information_usage_content">Особисті дані: ми не збираємо та не зберігаємо жодних особистих даних, таких як імена, адреси електронної пошти чи номери телефонів.\n\nАналітика використання: %1$s не відстежує вашу поведінку використання та не збирає аналітичні дані.</string>
|
||||
<string name="privacy_data_security_title">Безпека даних</string>
|
||||
<string name="privacy_data_security_content">Зберігання на пристрої: усі дані, які використовує %1$s , залишаються на вашому пристрої. Ми не передаємо та не зберігаємо жодних даних ззовні.</string>
|
||||
<string name="privacy_data_security_content">Зберігання на пристрої: усі дані, які використовує %1$s , залишаються на вашому пристрої. Ми не передаємо та не зберігаємо жодних даних зовні.</string>
|
||||
<string name="privacy_third_party_services_title">Послуги третіх осіб</string>
|
||||
<string name="privacy_third_party_services_content">Реклама: %1$s не показує рекламу третіх сторін.\n\nЗовнішні посилання: наш додаток може містити посилання на зовнішні веб-сайти. Зверніть увагу, що ми не несемо відповідальності за політику конфіденційності цих сайтів.</string>
|
||||
<string name="privacy_children_privacy_title">Конфіденційність дітей</string>
|
||||
@@ -161,4 +161,5 @@
|
||||
<string name="delay_notice">Повідомлення про затримку</string>
|
||||
<string name="delay_notice_dialog">Повідомлення про затримку</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Щоб мінімізувати використання заряду батареї, зміна шпалер може мати певні затримки після запланованої зміни. Коли пристрій перебуває в режимі сну, застосування шпалер може зайняти більше часу.</string>
|
||||
<string name="change_wallpaper">Змінити шпалери</string>
|
||||
</resources>
|
||||
@@ -56,7 +56,7 @@
|
||||
<string name="reset_all_data">تمام ڈیٹا ری سیٹ کریں۔</string>
|
||||
<string name="are_you_sure_you_want_to_reset_all_settings_and_data_to_default">کیا آپ واقعی تمام ترتیبات اور ڈیٹا کو ڈیفالٹ پر دوبارہ ترتیب دینا چاہتے ہیں؟</string>
|
||||
<string name="confirm">تصدیق کریں۔</string>
|
||||
<string name="spotlight_animation">اسپاٹ لائٹ حرکت پذیری۔</string>
|
||||
<string name="spotlight_animation">اسپاٹ لائٹ اینیمیشن</string>
|
||||
<string name="circle_2_animation">حلقہ 2 اینیمیشن</string>
|
||||
<string name="circle_1_animation">حلقہ 1 اینیمیشن</string>
|
||||
<string name="circle_3_animation">حلقہ 3 حرکت پذیری۔</string>
|
||||
@@ -153,4 +153,5 @@
|
||||
<string name="delay_notice">تاخیر کا نوٹس</string>
|
||||
<string name="delay_notice_dialog">تاخیر کا نوٹس</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">بیٹری کے استعمال کو کم سے کم کرنے کے لیے، ایک بار شیڈول کے مطابق وال پیپر تبدیل کرنے میں کچھ تاخیر ہو سکتی ہے۔ جب آلہ سو رہا ہو تو وال پیپر لگنے میں زیادہ وقت لگ سکتا ہے۔</string>
|
||||
<string name="change_wallpaper">وال پیپر تبدیل کریں۔</string>
|
||||
</resources>
|
||||
@@ -27,7 +27,7 @@
|
||||
<string name="save">Cứu</string>
|
||||
<string name="delete_album">Xóa bỏ</string>
|
||||
<string name="change_name">Chỉnh sửa tên</string>
|
||||
<string name="click_to_select_a_different_album">Click để chọn album khác</string>
|
||||
<string name="click_to_select_a_different_album">Bấm để chọn album khác</string>
|
||||
<string name="no_icon">Không có biểu tượng</string>
|
||||
<string name="no_album_selected">Không có album nào được chọn</string>
|
||||
<string name="currently_selected_album">Album hiện được chọn</string>
|
||||
@@ -149,4 +149,5 @@
|
||||
<string name="delay_notice">Thông báo chậm trễ</string>
|
||||
<string name="delay_notice_dialog">Thông báo chậm trễ</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">Để giảm thiểu mức sử dụng pin, việc thay đổi hình nền có thể có một số độ trễ sau khi được lên lịch. Khi thiết bị ở chế độ ngủ, hình nền có thể mất nhiều thời gian hơn để áp dụng.</string>
|
||||
<string name="change_wallpaper">Thay đổi hình nền</string>
|
||||
</resources>
|
||||
@@ -152,4 +152,5 @@
|
||||
<string name="delay_notice">Delay Notice</string>
|
||||
<string name="delay_notice_dialog">Delay Notice</string>
|
||||
<string name="to_minimize_battery_usage_changing_wallpapers_may_have_some_delays_once_scheduled_when_the_device_is_asleep_the_wallpaper_may_take_longer_to_apply">To minimize battery usage, changing wallpapers may have some delays once scheduled. When the device is asleep, the wallpaper may take longer to apply.</string>
|
||||
<string name="change_wallpaper">Change wallpaper</string>
|
||||
</resources>
|
||||
@@ -6,13 +6,14 @@ buildscript {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("com.android.application") version "8.4.1" apply false
|
||||
id("com.android.library") version "8.4.1" apply false
|
||||
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
|
||||
id("com.google.dagger.hilt.android") version "2.50" apply false
|
||||
id("com.google.devtools.ksp") version "1.9.0-1.0.13" apply false
|
||||
id ("com.mikepenz.aboutlibraries.plugin") version "11.1.3" apply false
|
||||
id ("org.jetbrains.kotlin.plugin.serialization") version "1.9.22" apply false
|
||||
id("com.android.application") version "8.5.1" apply false
|
||||
id("com.android.library") version "8.5.1" apply false
|
||||
id("org.jetbrains.kotlin.android") version "2.0.0" apply false
|
||||
id ("org.jetbrains.kotlin.plugin.compose") version "2.0.0" apply false
|
||||
id("com.google.dagger.hilt.android") version "2.51.1" apply false
|
||||
id("com.google.devtools.ksp") version "2.0.0-1.0.23" apply false
|
||||
id ("com.mikepenz.aboutlibraries.plugin") version "11.2.2" apply false
|
||||
id ("org.jetbrains.kotlin.plugin.serialization") version "2.0.0" apply false
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#Tue Apr 30 13:31:42 PDT 2024
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||
distributionSha256Sum=d725d707bfabd4dfdc958c624003b3c80accc03f7037b5122c4b1d0ef15cecab
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright 2015 the original author or authors.
|
||||
# Copyright © 2015-2021 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -15,69 +15,104 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
#
|
||||
# Gradle start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||
# noncompliant, but you have some other compliant shell such as ksh or
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Gradle
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
# * functions;
|
||||
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||
# * compound commands having a testable exit status, especially «case»;
|
||||
# * various built-in commands including «command», «set», and «ulimit».
|
||||
#
|
||||
# Important for patching:
|
||||
#
|
||||
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||
#
|
||||
# The "traditional" practice of packing multiple parameters into a
|
||||
# space-separated string is a well documented source of bugs and security
|
||||
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||
# options in "$@", and eventually passing that to Java.
|
||||
#
|
||||
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# see the in-line comments for details.
|
||||
#
|
||||
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
app_path=$0
|
||||
|
||||
# Need this for daisy-chained symlinks.
|
||||
while
|
||||
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||
[ -h "$app_path" ]
|
||||
do
|
||||
ls=$( ls -ld "$app_path" )
|
||||
link=${ls#*' -> '}
|
||||
case $link in #(
|
||||
/*) app_path=$link ;; #(
|
||||
*) app_path=$APP_HOME$link ;;
|
||||
esac
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
# This is normally unused
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||
' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
MAX_FD=maximum
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
}
|
||||
} >&2
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
} >&2
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
NONSTOP* )
|
||||
nonstop=true
|
||||
;;
|
||||
case "$( uname )" in #(
|
||||
CYGWIN* ) cygwin=true ;; #(
|
||||
Darwin* ) darwin=true ;; #(
|
||||
MSYS* | MINGW* ) msys=true ;; #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
@@ -87,9 +122,9 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
JAVACMD=$JAVA_HOME/bin/java
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
@@ -98,88 +133,120 @@ Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
JAVACMD=java
|
||||
if ! command -v java >/dev/null 2>&1
|
||||
then
|
||||
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
case $i in
|
||||
0) set -- ;;
|
||||
1) set -- "$args0" ;;
|
||||
2) set -- "$args0" "$args1" ;;
|
||||
3) set -- "$args0" "$args1" "$args2" ;;
|
||||
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
case $MAX_FD in #(
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
fi
|
||||
|
||||
# Escape application args
|
||||
save () {
|
||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||
echo " "
|
||||
}
|
||||
APP_ARGS=`save "$@"`
|
||||
# Collect all arguments for the java command, stacking in reverse order:
|
||||
# * args from the command line
|
||||
# * the main class name
|
||||
# * -classpath
|
||||
# * -D...appname settings
|
||||
# * --module-path (only if needed)
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||
|
||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
for arg do
|
||||
if
|
||||
case $arg in #(
|
||||
-*) false ;; # don't mess with options #(
|
||||
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||
[ -e "$t" ] ;; #(
|
||||
*) false ;;
|
||||
esac
|
||||
then
|
||||
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||
fi
|
||||
# Roll the args list around exactly as many times as the number of
|
||||
# args, so each arg winds up back in the position where it started, but
|
||||
# possibly modified.
|
||||
#
|
||||
# NB: a `for` loop captures its iteration list before it begins, so
|
||||
# changing the positional parameters here affects neither the number of
|
||||
# iterations, nor the values presented in `arg`.
|
||||
shift # remove old arg
|
||||
set -- "$@" "$arg" # push replacement arg
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command:
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# and any embedded shellness will be escaped.
|
||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||
# treated as '${Hostname}' itself on the command line.
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
org.gradle.wrapper.GradleWrapperMain \
|
||||
"$@"
|
||||
|
||||
# Stop when "xargs" is not available.
|
||||
if ! command -v xargs >/dev/null 2>&1
|
||||
then
|
||||
die "xargs is not available"
|
||||
fi
|
||||
|
||||
# Use "xargs" to parse quoted args.
|
||||
#
|
||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||
#
|
||||
# In Bash we could simply go:
|
||||
#
|
||||
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||
# set -- "${ARGS[@]}" "$@"
|
||||
#
|
||||
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||
# character that might be a shell metacharacter, then use eval to reverse
|
||||
# that process (while maintaining the separation between arguments), and wrap
|
||||
# the whole thing up as a single "set" statement.
|
||||
#
|
||||
# This will of course break if any of these variables contains a newline or
|
||||
# an unmatched quote.
|
||||
#
|
||||
|
||||
eval "set -- $(
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||
xargs -n1 |
|
||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||
tr '\n' ' '
|
||||
)" '"$@"'
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
@@ -1,89 +1,94 @@
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@rem This is normally unused
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
@@ -1,42 +1,17 @@
|
||||
Paperize is a dynamic wallpaper changer application designed to keep your device's aesthetic fresh and exciting
|
||||
------
|
||||
Dynamic Wallpaper Changer: Set your wallpaper to change at specific time intervals
|
||||
Supports Various Image Types: Paperize can handle a wide range of image types
|
||||
JPEG, PNG, AVIF, WEBP
|
||||
Folder Support: Organize your wallpapers into folders for auto-updating
|
||||
Home and Lock Screen Wallpaper: Choose to change either your home screen, lock screen, or both
|
||||
On-Device Storage: All your wallpapers and settings are stored on your device
|
||||
------
|
||||
Technologies
|
||||
Kotlin - A programming language that is used for Android app development
|
||||
Jetpack Compose - A declarative UI toolkit for building native Android UI
|
||||
Material 3 - A UI design system git for modern UI guidelines
|
||||
Dagger Hilt - A dependency injection library
|
||||
Room - A persistence library that provides an abstraction layer over SQLite interfacing with Kotlin
|
||||
AboutLibraries - A library to offer some information of libraries
|
||||
Lottie Compose - A library that provides Lottie animation support for Jetpack Compose
|
||||
Landscapist - A Compose and KPP image loading library that streamlines Glide, Coil, and Fresco
|
||||
Zoomable - A library that provides a zoomable and pannable view, which can be used with any view you want
|
||||
AnimatedFABMenu - A animated floating action button with Material 3 design
|
||||
Thanks to the creators and maintainers of the open-source libraries used in this project.
|
||||
------
|
||||
Build
|
||||
This project is built using Kotlin, Java, and Gradle. Here are the steps to build the project:
|
||||
Prerequisites
|
||||
Java 8 (1.8)
|
||||
Android Studio Jellyfish | 2023.3.1 or later
|
||||
Gradle 8.4.0 or later
|
||||
Minimum SDK 26
|
||||
Steps
|
||||
Open a terminal and run the following git command:
|
||||
git clone https://github.com/Anthonyy232/Paperize.git
|
||||
Launch Android Studio and choose Open an existing Android Studio project. Navigate to the cloned repository and select the root folder of the project.
|
||||
In Android Studio, click on Build -> Generate Signed Bundle / APK and follow the instructions to generate an APK
|
||||
Alternatively, click ▶ Run and build the app and run it immediately
|
||||
------
|
||||
Contributions
|
||||
All contributions to the app is welcome. Feel free to report any issues and create pull requests for any issues or pull requests.
|
||||
------
|
||||
License
|
||||
Contact on my GitHub profile
|
||||
Paperize © GNU GPL v3.0
|
||||
Paperize - A Wallpaper Changer is a dynamic and versatile app that breathes life into your device’s aesthetics. It’s not just a wallpaper changer; it’s a tool that allows you to personalize your device to reflect your style and mood.
|
||||
|
||||
Dynamic Wallpaper Changer: With Paperize, you can set your wallpaper to change at specific time intervals. This means your device’s look will always be fresh and exciting.
|
||||
|
||||
Advanced Image Manipulation: Paperize isn’t just about changing wallpapers; it’s about enhancing them. You can darken or blur your wallpapers to suit your visual preferences or to make your icons stand out.
|
||||
|
||||
Home and Lock Screen Customization: With Paperize, you have the freedom to set your home screen and lock screen wallpapers together or separately, and at the same time or not. This gives you the ultimate control over your device’s look and feel.
|
||||
|
||||
Supports Various Image Types: Paperize can handle a wide range of image types, offering you flexibility in your wallpaper choices. Whether it’s a JPEG, PNG, AVIF or a WEBP, Paperize has got you covered.
|
||||
|
||||
Folder Support: Organize your wallpapers into folders for auto-updating. This feature allows you to categorize your wallpapers and have them change automatically, keeping your device’s look organized and cohesive.
|
||||
|
||||
On-Device Storage: All your wallpapers and settings are stored on your device, ensuring quick loading times and reducing data usage. Your favorite wallpapers are always just a tap away.
|
||||
|
||||
Experience the joy of a personalized device with Paperize - A Wallpaper Changer. Your device, your style.
|
||||
|
||||
Privacy policy: https://anthonyy232.github.io/Paperize/
|
||||
|
Before Width: | Height: | Size: 274 KiB After Width: | Height: | Size: 274 KiB |
@@ -1,17 +0,0 @@
|
||||
<svg width="500" height="500" xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<g>
|
||||
<title>Layer 1</title>
|
||||
<rect id="svg_5" height="607" width="663" y="-34" x="-60" stroke="#000" fill="#ffd9e2"/>
|
||||
<g stroke="null">
|
||||
<path d="m119.78444,143.16459c0.11656,1.91205 -0.53054,3.18387 -2.80906,3.34143c-1.6221,0.11219 -2.54328,1.03358 -2.44518,2.62779c0.10305,1.67496 1.42508,2.11774 2.87671,2.31725c4.0939,0.56267 8.0905,-0.00456 11.98235,-1.16837c7.29126,-2.18035 14.89214,-3.0969 22.23888,-5.03046c2.05032,-0.5396 4.7959,-0.58306 5.28942,-3.01558c0.45311,-2.23322 -1.28083,-3.83701 -3.26363,-5.01267c-0.33551,-0.1989 -0.48119,-0.6869 -0.94738,-1.39481c4.71844,-1.85535 9.53209,-2.19578 14.26141,-2.72721c19.58353,-2.20064 39.27088,-3.5615 58.75084,-6.60577c2.57759,-0.40281 5.05381,-1.47622 7.94736,-0.83846c-7.10148,4.43247 -14.24986,8.73011 -22.21438,12.05754c2.61629,-0.31262 5.24287,-0.56347 7.84598,-0.95522c2.61745,-0.3939 5.20201,-0.98324 7.81736,-1.39225c33.5526,-5.24712 63.83623,-18.76206 93.72151,-33.33278c8.64355,-4.21419 17.57783,-7.82017 26.90464,-10.51625c5.23529,-1.51338 10.0813,-1.19772 15.02543,1.22759c11.07335,5.4319 18.44075,14.03776 23.98902,24.3228c0.32196,0.59681 0.50962,1.22914 0.12468,2.10062c-1.81322,0.3254 -3.91738,1.24051 -3.68053,-2.09668c0.05804,-0.81698 -0.25871,-1.65717 -0.98273,-2.00737c-5.56694,-2.69275 -10.38737,-7.44869 -17.79346,-4.32978c-5.12391,2.15783 -10.84001,2.99453 -15.94262,5.60911c1.13833,2.07772 2.79756,2.52964 4.95192,2.04283c0.88797,-0.20063 1.83219,-0.22794 2.75206,-0.23893c2.04549,-0.02446 3.26261,0.97104 3.57241,2.88223c0.33678,2.07798 -1.22153,2.64071 -2.8658,3.03092c-5.94021,1.40968 -11.89036,2.78136 -17.83277,4.18267c-14.13923,3.33428 -27.79023,8.26262 -41.87605,11.73552c-20.22402,4.98626 -40.48405,9.91898 -61.52902,10.75184c-3.06609,0.12133 -6.11872,0.54962 -9.2049,1.13323c4.58767,1.01725 8.86239,3.01912 13.92696,2.04332c4.15397,-0.80035 8.50018,-0.73454 12.76638,-0.96792c13.54607,-0.74108 26.82457,-2.89149 39.79019,-6.72001c1.64558,-0.4859 3.27071,-1.03414 4.90968,-1.54067c0.07867,-0.02431 0.19987,0.07574 0.82311,0.33478c-3.22293,3.60117 -7.66899,5.28028 -12.49081,7.76778c3.42757,0.96266 5.73927,0.12078 7.99421,-0.281c17.61167,-3.1379 34.68305,-8.35585 52.08109,-12.32842c14.87889,-3.39737 29.85381,-5.73797 45.23525,-5.16274c3.95771,0.14799 7.8079,0.72526 11.63381,1.55591c2.1816,0.47362 3.96114,1.5678 5.49162,3.22461c7.92537,8.57912 11.6946,18.79346 13.30524,29.89212c0.36021,2.48228 0.72521,4.96394 1.23284,8.43684c-5.62883,-2.32491 -10.61575,-4.38466 -15.77325,-6.51487c1.07699,-1.20931 2.18427,-0.69935 3.13574,-0.84125c1.40234,-0.20917 3.4607,0.40708 3.69569,-1.51994c0.19732,-1.61816 -0.66607,-3.33752 -2.48166,-4.00214c-2.79557,-1.02331 -5.62752,-2.03491 -8.53386,-2.69388c-16.72976,-3.79344 -33.46495,-2.92373 -50.17209,0.20969c-10.65248,1.99787 -21.23183,4.28383 -31.55884,7.52009c-0.65696,0.20586 -1.3343,0.37685 -1.95522,0.65779c-1.42368,0.64425 -2.76565,1.52894 -2.30877,3.2331c0.48751,1.81829 2.22761,1.32991 3.49387,1.11378c6.13943,-1.04785 12.23842,-2.27652 18.15337,-4.21915c0.93033,-0.30554 1.8602,-0.90853 3.35912,-0.31935c-4.42721,4.371 -10.54267,6.29043 -15.64176,10.99614c7.70843,-1.23582 14.47212,-2.30309 21.2292,-3.40679c17.82328,-2.91126 35.72615,-3.52549 53.227,1.12278c22.08858,5.86681 31.92493,18.19086 32.7025,38.84647c0.3714,9.8655 -1.35781,19.45717 -5.12412,28.68239c-0.34758,0.85154 -0.25189,2.03416 -1.51905,2.36096c-0.75329,-0.28046 -0.66798,-0.90309 -0.57109,-1.38605c2.78277,-13.87253 -7.32691,-28.8385 -20.86137,-35.18748c-11.66338,-5.4713 -24.11484,-6.50203 -36.82869,-5.94839c-2.55503,0.11126 -4.96221,1.06413 -6.84499,2.87276c-0.78731,0.75631 -2.00283,1.37043 -1.49261,2.70757c0.55809,1.46278 1.90095,1.79738 3.37589,1.79963c4.85716,0.00749 9.69855,0.22088 14.54634,0.57607c5.19309,0.3805 10.28549,1.29686 15.41486,2.03609c2.61218,0.37645 3.82701,1.69418 4.39018,4.17554c2.99599,13.19983 3.61588,26.48598 2.34551,39.9181c-1.91832,20.28335 -7.86013,39.4325 -18.09004,57.28093c-13.79279,24.06473 -32.61867,43.80362 -56.8145,58.91863c-23.71993,14.81772 -49.84259,23.00846 -77.91823,25.22371c-16.9441,1.33688 -33.93952,0.54546 -50.58062,-3.60051c-2.77089,-0.69038 -3.99889,-1.67904 -3.98935,-4.61937c0.09991,-30.77581 0.08837,-61.55222 -0.01275,-92.32806c-0.01036,-3.15585 1.30683,-3.88367 4.34054,-3.8664c16.65584,0.09492 33.31344,0.13099 49.96894,0.00696c17.16128,-0.12781 33.87558,-2.74267 49.34399,-10.09566c16.47092,-7.82957 27.7247,-20.12804 31.80564,-37.42151c4.21667,-17.86865 -0.50632,-33.70965 -13.68112,-47.17009c-13.18772,-13.47356 -29.97561,-20.96952 -48.14135,-26.22629c-15.2987,-4.42709 -31.01468,-6.68395 -46.82386,-8.60274c-23.37368,-2.83695 -46.8424,-2.05819 -70.29933,-2.04869c-3.26154,0.00133 -4.15412,1.18435 -4.14969,4.08951c0.05145,33.74342 0.01608,67.48699 -0.005,101.23051c-0.0308,49.3508 -0.06884,98.7016 -0.10324,148.0524c-0.0025,3.58932 -0.00034,7.17868 -0.00034,10.59938c-1.48493,0.3532 -1.94111,-0.21814 -2.38454,-0.68945c-5.00885,-5.3242 -9.98511,-10.67606 -15.00348,-15.99209c-1.54914,-1.64101 -2.18918,-3.47262 -2.18359,-5.6989c0.04215,-16.79659 -0.01703,-33.59339 -0.01468,-50.39015c0.00845,-60.22298 0.03132,-120.44601 0.03781,-180.66901c0.00038,-3.52709 -1.9021Line truncated
|
||||
<path d="m229.84503,206.59113c6.99462,0.72321 13.53044,1.93892 19.73956,4.49609c15.35907,6.32553 21.74434,22.48422 13.76093,35.401c-4.75159,7.68791 -12.73685,10.64969 -21.48228,11.5909c-15.06821,1.62177 -30.22767,0.40924 -45.34196,0.76026c-3.11606,0.07234 -3.26935,-1.75847 -3.27084,-3.85943c-0.00595,-8.45132 0.00452,-16.90265 0.00068,-25.35396c-0.00305,-6.69524 0.08813,-13.39285 -0.07924,-20.08453c-0.06867,-2.74535 1.05058,-3.70261 3.81916,-3.70689c10.85401,-0.01675 21.70274,0.08864 32.85399,0.75655z" fill="#000000"/>
|
||||
<path d="m282.21215,100.3525c-15.38267,7.15418 -30.52002,14.22641 -46.93939,18.35691c-12.30213,3.09474 -24.78459,5.08055 -37.44962,6.30041c-24.56242,2.36577 -49.15344,4.69592 -72.87658,11.77145c-3.49354,1.04195 -6.88905,2.38058 -10.71988,3.7181c0.45695,-1.69843 1.81201,-1.96445 2.74056,-2.58461c16.23354,-10.84139 34.72475,-16.68972 53.50751,-21.95489c17.49937,-4.90545 35.46058,-8.0016 53.06291,-12.50554c20.30459,-5.19537 39.49161,-12.8829 57.89835,-22.47692c9.71249,-5.06236 19.35956,-10.32271 30.27985,-12.8522c2.75477,-0.6381 5.43732,-0.67889 8.18997,0.10948c7.83945,2.24525 15.04097,5.55906 21.19599,10.79712c2.07243,1.76364 2.04071,2.97005 -0.60951,4.02733c-2.12898,0.84932 -4.24336,1.75144 -6.28559,2.77217c-2.29666,1.14787 -4.2201,2.35024 -6.31329,-0.65135c-1.08059,-1.54959 -3.48125,-1.19215 -5.50361,-0.63479c-13.92662,3.8382 -27.19241,9.17817 -40.17768,15.80733z" fill="#000000"/>
|
||||
<path d="m303.23653,101.84625c-12.24777,6.44346 -24.41511,12.46709 -37.93186,15.78486c11.59009,-7.30627 23.11648,-14.65292 34.35762,-22.6849c1.64495,2.75157 -1.86507,3.44937 -1.32185,5.56791c9.97005,-2.78017 17.57804,-10.54646 28.21801,-11.64291c-7.15454,5.20986 -15.53551,8.37102 -23.32193,12.97504z" fill="#000000"/>
|
||||
<path d="m372.47644,118.37458c2.82984,-0.09681 5.41503,-0.73071 8.77025,-0.08303c-3.05949,1.79799 -5.64247,2.71319 -8.52636,2.46522c-2.39342,-0.20581 -2.28603,-1.14943 -0.24388,-2.38219z" fill="#000000"/>
|
||||
<path d="m366.29197,165.61234c2.44366,0.085 4.3998,-2.02498 6.76395,-0.38196c-4.13084,0.53 -7.54292,3.68217 -12.74783,2.84461c1.93293,-1.76933 3.93995,-1.85941 5.98388,-2.46265z" fill="#000000"/>
|
||||
<path d="m119.80217,143.18391c2.81192,-1.5196 5.24274,-2.16314 8.20009,-1.99334c-2.16116,2.93811 -5.14566,1.59139 -7.90467,1.96997c-0.31314,0.00404 -0.29929,0.01658 -0.29542,0.02337z" fill="#000000"/>
|
||||
</g>
|
||||
<rect id="svg_3" height="1" width="0" y="118" x="-192" stroke="#000" fill="#fff"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 182 KiB |
|
After Width: | Height: | Size: 637 KiB |
|
After Width: | Height: | Size: 210 KiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 212 KiB After Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 2.0 MiB |
|
Before Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 2.6 MiB |
|
Before Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 107 KiB |
|
Before Width: | Height: | Size: 2.5 MiB |
|
Before Width: | Height: | Size: 2.9 MiB |
|
Before Width: | Height: | Size: 226 KiB |
|
Before Width: | Height: | Size: 194 KiB |
@@ -1 +1 @@
|
||||
Paperize is a dynamic wallpaper changer application designed to keep your device's aesthetic fresh and exciting
|
||||
Paperize is an efficient wallpaper changer application with a clean design
|
||||
@@ -0,0 +1 @@
|
||||
Paperize - A Wallpaper Changer
|
||||