Fixed adding folder issue to already created album
Removed predictive back gestures due to unstable crashing Refactored viewmodel code for adding and removing wallpaper and folders Changed string literals to string resources
This commit is contained in:
1 parent
3f412f4724
commit
8eb9cb2aaa
21 files changed
+274
-195
No files matched your search
@@ -16,9 +16,7 @@
|
||||
android:icon="@mipmap/app_icon"
|
||||
android:label="@string/app_name"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.Paperize"
|
||||
android:enableOnBackInvokedCallback="true"
|
||||
tools:targetApi="tiramisu">
|
||||
android:theme="@style/Theme.Paperize" tools:targetApi="tiramisu">
|
||||
<activity
|
||||
android:name=".feature.wallpaper.presentation.MainActivity"
|
||||
android:exported="true"
|
||||
|
||||
+52
-57
@@ -58,8 +58,6 @@ class AddAlbumViewModel @Inject constructor(
|
||||
folders = _state.value.folders,
|
||||
)
|
||||
repository.upsertAlbumWithWallpaperAndFolder(albumWithWallpaperAndFolder)
|
||||
|
||||
//Clear viewModel state after adding album
|
||||
_state.update { it.copy(
|
||||
initialAlbumName = "",
|
||||
displayedAlbumName = "",
|
||||
@@ -76,13 +74,14 @@ class AddAlbumViewModel @Inject constructor(
|
||||
}
|
||||
is AddAlbumEvent.DeleteSelected -> {
|
||||
viewModelScope.launch {
|
||||
val wallpapersRemoved = _state.value.wallpapers.filterNot { it.wallpaperUri in _state.value.selectedWallpapers }
|
||||
val foldersRemoved = _state.value.folders.filterNot { it.folderUri in _state.value.selectedFolders }
|
||||
_state.update { it.copy(
|
||||
wallpapers = wallpapersRemoved,
|
||||
folders = foldersRemoved
|
||||
) }
|
||||
updateIsEmpty()
|
||||
_state.update {
|
||||
val wallpapersRemoved = it.wallpapers.filterNot { it.wallpaperUri in _state.value.selectedWallpapers }
|
||||
val foldersRemoved = it.folders.filterNot { it.folderUri in _state.value.selectedFolders }
|
||||
it.copy(
|
||||
wallpapers = wallpapersRemoved,
|
||||
folders = foldersRemoved,
|
||||
isEmpty = wallpapersRemoved.isEmpty() && foldersRemoved.isEmpty()
|
||||
) }
|
||||
}
|
||||
}
|
||||
is AddAlbumEvent.SetAlbumName -> {
|
||||
@@ -97,18 +96,21 @@ class AddAlbumViewModel @Inject constructor(
|
||||
is AddAlbumEvent.ReflectAlbumName -> {
|
||||
if (event.newAlbumName != _state.value.initialAlbumName) {
|
||||
viewModelScope.launch {
|
||||
_state.update { it.copy(
|
||||
initialAlbumName = event.newAlbumName,
|
||||
displayedAlbumName = event.newAlbumName,
|
||||
coverUri = it.coverUri,
|
||||
wallpapers = it.wallpapers.map { wallpaper ->
|
||||
_state.update {
|
||||
val wallpapers = it.wallpapers.map { wallpaper ->
|
||||
wallpaper.copy(initialAlbumName = event.newAlbumName)
|
||||
},
|
||||
folders = it.folders.map { folder ->
|
||||
}
|
||||
val folders = it.folders.map { folder ->
|
||||
folder.copy(initialAlbumName = event.newAlbumName)
|
||||
},
|
||||
) }
|
||||
updateIsEmpty()
|
||||
}
|
||||
it.copy(
|
||||
initialAlbumName = event.newAlbumName,
|
||||
displayedAlbumName = event.newAlbumName,
|
||||
coverUri = it.coverUri,
|
||||
wallpapers = wallpapers,
|
||||
folders = folders,
|
||||
isEmpty = wallpapers.isEmpty() && folders.isEmpty()
|
||||
) }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -167,9 +169,9 @@ class AddAlbumViewModel @Inject constructor(
|
||||
_state.update { it.copy(
|
||||
selectedFolders = _state.value.folders.map { folder -> folder.folderUri },
|
||||
selectedWallpapers = _state.value.wallpapers.map { wallpaper -> wallpaper.wallpaperUri },
|
||||
selectedCount = it.folders.size + it.wallpapers.size
|
||||
selectedCount = it.folders.size + it.wallpapers.size,
|
||||
allSelected = true
|
||||
) }
|
||||
updateAllSelected()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -186,44 +188,53 @@ class AddAlbumViewModel @Inject constructor(
|
||||
is AddAlbumEvent.SelectFolder -> {
|
||||
viewModelScope.launch {
|
||||
if (!_state.value.selectedFolders.any { it == event.directoryUri }) {
|
||||
_state.update { it.copy(
|
||||
selectedFolders = it.selectedFolders.plus(event.directoryUri),
|
||||
selectedCount = it.selectedCount + 1
|
||||
) }
|
||||
updateAllSelected()
|
||||
_state.update {
|
||||
val folders = it.selectedFolders.plus(event.directoryUri)
|
||||
it.copy(
|
||||
selectedFolders = folders,
|
||||
selectedCount = it.selectedCount + 1,
|
||||
allSelected = folders.size + it.selectedWallpapers.size >= it.wallpapers.size + it.folders.size
|
||||
) }
|
||||
}
|
||||
}
|
||||
}
|
||||
is AddAlbumEvent.SelectWallpaper -> {
|
||||
viewModelScope.launch {
|
||||
if (!_state.value.selectedWallpapers.any { it == event.wallpaperUri }) {
|
||||
_state.update { it.copy(
|
||||
selectedWallpapers = it.selectedWallpapers.plus(event.wallpaperUri),
|
||||
selectedCount = it.selectedCount + 1
|
||||
) }
|
||||
updateAllSelected()
|
||||
_state.update {
|
||||
val wallpapers = it.selectedWallpapers.plus(event.wallpaperUri)
|
||||
it.copy(
|
||||
selectedWallpapers = wallpapers,
|
||||
selectedCount = it.selectedCount + 1,
|
||||
allSelected = it.selectedFolders.size + wallpapers.size >= it.wallpapers.size + it.folders.size
|
||||
) }
|
||||
}
|
||||
}
|
||||
}
|
||||
is AddAlbumEvent.RemoveFolderFromSelection -> {
|
||||
viewModelScope.launch {
|
||||
if (_state.value.selectedFolders.find { it == event.directoryUri } != null ) {
|
||||
_state.update { it.copy(
|
||||
selectedFolders = it.selectedFolders.minus(event.directoryUri),
|
||||
selectedCount = it.selectedCount - 1
|
||||
) }
|
||||
updateAllSelected()
|
||||
_state.update {
|
||||
val folders = it.selectedFolders.minus(event.directoryUri)
|
||||
it.copy(
|
||||
selectedFolders = folders,
|
||||
selectedCount = it.selectedCount - 1,
|
||||
allSelected = folders.size + it.selectedWallpapers.size >= it.wallpapers.size + it.folders.size
|
||||
|
||||
) }
|
||||
}
|
||||
}
|
||||
}
|
||||
is AddAlbumEvent.RemoveWallpaperFromSelection -> {
|
||||
viewModelScope.launch {
|
||||
if (_state.value.selectedWallpapers.find { it == event.wallpaperUri } != null ) {
|
||||
_state.update { it.copy(
|
||||
selectedWallpapers = it.selectedWallpapers.minus(event.wallpaperUri),
|
||||
selectedCount = it.selectedCount - 1
|
||||
) }
|
||||
updateAllSelected()
|
||||
_state.update {
|
||||
val wallpapers = it.selectedWallpapers.minus(event.wallpaperUri)
|
||||
it.copy(
|
||||
selectedWallpapers = wallpapers,
|
||||
selectedCount = it.selectedCount - 1,
|
||||
allSelected = it.selectedFolders.size + wallpapers.size >= it.wallpapers.size + it.folders.size
|
||||
) }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -246,22 +257,6 @@ class AddAlbumViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateIsEmpty() {
|
||||
viewModelScope.launch {
|
||||
_state.update { it.copy(
|
||||
isEmpty = it.wallpapers.isEmpty() && it.folders.isEmpty()
|
||||
) }
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateAllSelected() {
|
||||
viewModelScope.launch {
|
||||
_state.update { it.copy(
|
||||
allSelected = it.selectedFolders.size + it.selectedWallpapers.size >= it.wallpapers.size + it.folders.size
|
||||
) }
|
||||
}
|
||||
}
|
||||
|
||||
private fun getWallpaperFromFolder(folderUri: String, context: Context): List<String> {
|
||||
val folderDocumentFile = DocumentFileCompat.fromTreeUri(context, folderUri.toUri())
|
||||
return listFilesRecursive(folderDocumentFile, context)
|
||||
|
||||
+4
-4
@@ -22,17 +22,17 @@ fun DeleteImagesAlertDialog(
|
||||
icon = {
|
||||
Icon(Icons.Outlined.Delete, contentDescription = stringResource(R.string.delete_confirmation))
|
||||
},
|
||||
title = { Text(text = "Delete these?") },
|
||||
text = { Text(text = "Are you sure you want to delete these wallpapers?") },
|
||||
title = { Text(text = stringResource(R.string.delete_these)) },
|
||||
text = { Text(text = stringResource(R.string.are_you_sure_you_want_to_delete_these_wallpapers)) },
|
||||
onDismissRequest = { onDismissRequest() },
|
||||
confirmButton = {
|
||||
TextButton(onClick = { onConfirmation() }) {
|
||||
Text("Confirm")
|
||||
Text(stringResource(R.string.confirm))
|
||||
}
|
||||
},
|
||||
dismissButton = {
|
||||
TextButton(onClick = { onDismissRequest() }) {
|
||||
Text("Cancel")
|
||||
Text(stringResource(R.string.cancel))
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
+28
-36
@@ -3,7 +3,6 @@ package com.anthonyla.paperize.feature.wallpaper.presentation.album_view_screen
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import android.webkit.MimeTypeMap
|
||||
import androidx.core.net.toUri
|
||||
import androidx.lifecycle.AndroidViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
@@ -39,10 +38,10 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
event.albumsWithWallpaper.let { album ->
|
||||
val folders = album.folders.filter { _state.value.selectedFolders.contains(it.folderUri)}
|
||||
val wallpapers = album.wallpapers.filter { _state.value.selectedWallpapers.contains(it.wallpaperUri)}
|
||||
val doesContainCover = wallpapers.any { it.wallpaperUri == album.album.coverUri }
|
||||
val containsCoverUri = wallpapers.any { it.wallpaperUri == album.album.coverUri }
|
||||
repository.deleteFolderList(folders)
|
||||
repository.deleteWallpaperList(wallpapers)
|
||||
if (doesContainCover) {
|
||||
if (containsCoverUri) {
|
||||
repository.updateAlbum(album.album.copy(coverUri = null))
|
||||
}
|
||||
}
|
||||
@@ -52,15 +51,15 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
viewModelScope.launch {
|
||||
event.albumsWithWallpaper.let { album ->
|
||||
if (!_state.value.allSelected) {
|
||||
_state.update { state ->
|
||||
state.copy(
|
||||
_state.update { it ->
|
||||
it.copy(
|
||||
selectedFolders = album.folders.map { it.folderUri },
|
||||
selectedWallpapers = album.wallpapers.map { it.wallpaperUri },
|
||||
selectedCount = album.folders.size + album.wallpapers.size,
|
||||
maxSize = album.folders.size + album.wallpapers.size
|
||||
maxSize = album.folders.size + album.wallpapers.size,
|
||||
allSelected = true
|
||||
)
|
||||
}
|
||||
updateAllSelected()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -83,12 +82,13 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
viewModelScope.launch {
|
||||
if (!_state.value.selectedFolders.any { it == event.directoryUri }) {
|
||||
_state.update {
|
||||
val folders = it.selectedFolders.plus(event.directoryUri)
|
||||
it.copy(
|
||||
selectedFolders = it.selectedFolders.plus(event.directoryUri),
|
||||
selectedCount = it.selectedCount + 1
|
||||
selectedFolders = folders,
|
||||
selectedCount = it.selectedCount + 1,
|
||||
allSelected = folders.size + it.selectedWallpapers.size >= it.maxSize
|
||||
)
|
||||
}
|
||||
updateAllSelected()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -97,12 +97,13 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
viewModelScope.launch {
|
||||
if (!_state.value.selectedWallpapers.any { it == event.wallpaperUri }) {
|
||||
_state.update {
|
||||
val wallpapers = it.selectedWallpapers.plus(event.wallpaperUri)
|
||||
it.copy(
|
||||
selectedWallpapers = it.selectedWallpapers.plus(event.wallpaperUri),
|
||||
selectedCount = it.selectedCount + 1
|
||||
selectedCount = it.selectedCount + 1,
|
||||
allSelected = it.selectedFolders.size + wallpapers.size >= it.maxSize
|
||||
)
|
||||
}
|
||||
updateAllSelected()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -111,12 +112,13 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
viewModelScope.launch {
|
||||
if (_state.value.selectedFolders.find { it == event.directoryUri } != null) {
|
||||
_state.update {
|
||||
val folders = it.selectedFolders.minus(event.directoryUri)
|
||||
it.copy(
|
||||
selectedFolders = it.selectedFolders.minus(event.directoryUri),
|
||||
selectedCount = it.selectedCount - 1
|
||||
selectedFolders = folders,
|
||||
selectedCount = it.selectedCount - 1,
|
||||
allSelected = folders.size + it.selectedWallpapers.size >= it.maxSize
|
||||
)
|
||||
}
|
||||
updateAllSelected()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -125,12 +127,13 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
viewModelScope.launch {
|
||||
if (_state.value.selectedWallpapers.find { it == event.wallpaperUri } != null) {
|
||||
_state.update {
|
||||
val wallpapers = it.selectedWallpapers.minus(event.wallpaperUri)
|
||||
it.copy(
|
||||
selectedWallpapers = it.selectedWallpapers.minus(event.wallpaperUri),
|
||||
selectedCount = it.selectedCount - 1
|
||||
selectedWallpapers = wallpapers,
|
||||
selectedCount = it.selectedCount - 1,
|
||||
allSelected = it.selectedFolders.size + wallpapers.size >= it.maxSize
|
||||
)
|
||||
}
|
||||
updateAllSelected()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -161,22 +164,22 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
|
||||
is AlbumViewEvent.AddWallpapers -> {
|
||||
viewModelScope.launch {
|
||||
val newWallpaperUris = event.wallpaperUris.filterNot { it in event.album.wallpapers.map { wallpaper -> wallpaper.wallpaperUri } }
|
||||
val newWallpapers = newWallpaperUris.map { uri ->
|
||||
val wallpaperUris = event.wallpaperUris.filterNot { it in event.album.wallpapers.map { wallpaper -> wallpaper.wallpaperUri } }
|
||||
val wallpapers = wallpaperUris.map { uri ->
|
||||
Wallpaper(
|
||||
initialAlbumName = event.album.album.initialAlbumName,
|
||||
wallpaperUri = uri,
|
||||
key = uri.hashCode() + event.album.album.initialAlbumName.hashCode(),
|
||||
)
|
||||
}
|
||||
repository.upsertWallpaperList(newWallpapers)
|
||||
repository.upsertWallpaperList(wallpapers)
|
||||
_state.update {
|
||||
it.copy(
|
||||
selectedFolders = emptyList(),
|
||||
selectedWallpapers = emptyList(),
|
||||
allSelected = false,
|
||||
selectedCount = 0,
|
||||
maxSize = _state.value.maxSize + newWallpapers.size
|
||||
maxSize = it.maxSize + wallpapers.size
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -203,7 +206,7 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
selectedWallpapers = emptyList(),
|
||||
allSelected = false,
|
||||
selectedCount = 0,
|
||||
maxSize = _state.value.maxSize + 1
|
||||
maxSize = it.maxSize + 1
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -212,16 +215,6 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateAllSelected() {
|
||||
viewModelScope.launch {
|
||||
_state.update {
|
||||
it.copy(
|
||||
allSelected = it.selectedFolders.size + it.selectedWallpapers.size >= _state.value.maxSize
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun getWallpaperFromFolder(folderUri: String, context: Context): List<String> {
|
||||
val folderDocumentFile = DocumentFileCompat.fromTreeUri(context, folderUri.toUri())
|
||||
return listFilesRecursive(folderDocumentFile, context)
|
||||
@@ -233,9 +226,8 @@ class AlbumViewScreenViewModel @Inject constructor(
|
||||
if (file.isDirectory()) {
|
||||
files.addAll(listFilesRecursive(file, context))
|
||||
} else {
|
||||
val extension = MimeTypeMap.getFileExtensionFromUrl(file.uri.toString())
|
||||
val allowedExtensions = listOf("jpg", "png", "heif", "webp")
|
||||
if (extension in allowedExtensions) {
|
||||
val allowedExtensions = listOf("jpg", "jpeg", "png", "heif", "webp", "JPG", "JPEG", "PNG", "HEIF", "WEBP")
|
||||
if (file.extension in allowedExtensions) {
|
||||
files.add(file.uri.toString())
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -56,7 +56,6 @@ fun AlbumViewTopBar(
|
||||
onDeleteAlbum: () -> Unit,
|
||||
onDeleteSelected: () -> Unit,
|
||||
onTitleChange: (String) -> Unit,
|
||||
modifier: Modifier = Modifier
|
||||
) {
|
||||
val state = albumState.collectAsStateWithLifecycle()
|
||||
var showDeleteAlertDialog by rememberSaveable { mutableStateOf(false) }
|
||||
@@ -109,7 +108,7 @@ fun AlbumViewTopBar(
|
||||
)
|
||||
}
|
||||
}
|
||||
Text("${state.value.selectedCount} selected")
|
||||
Text(stringResource(R.string.selected_count, state.value.selectedCount))
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+4
-4
@@ -22,17 +22,17 @@ fun DeleteAlbumAlertDialog(
|
||||
icon = {
|
||||
Icon(Icons.Outlined.Delete, contentDescription = stringResource(R.string.delete_confirmation))
|
||||
},
|
||||
title = { Text(text = "Delete album?") },
|
||||
text = { Text(text = "Are you sure you want to delete this?") },
|
||||
title = { Text(text = stringResource(R.string.delete_album_question)) },
|
||||
text = { Text(text = stringResource(R.string.are_you_sure_you_want_to_delete_this)) },
|
||||
onDismissRequest = { onDismissRequest() },
|
||||
confirmButton = {
|
||||
TextButton(onClick = { onConfirmation() }) {
|
||||
Text("Confirm")
|
||||
Text(stringResource(R.string.confirm))
|
||||
}
|
||||
},
|
||||
dismissButton = {
|
||||
TextButton(onClick = { onDismissRequest() }) {
|
||||
Text("Cancel")
|
||||
Text(stringResource(R.string.cancel))
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
+2
-1
@@ -25,8 +25,8 @@ import androidx.compose.ui.unit.dp
|
||||
import com.anthonyla.paperize.feature.wallpaper.domain.model.SelectedAlbum
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.add_album_screen.components.AddAlbumDialog
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.home_screen.components.HomeTopBar
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.home_screen.components.getTabItems
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.library_screen.LibraryScreen
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.settings_screen.components.tabItems
|
||||
import com.anthonyla.paperize.feature.wallpaper.presentation.wallpaper_screen.WallpaperScreen
|
||||
|
||||
@Composable
|
||||
@@ -47,6 +47,7 @@ fun HomeScreen(
|
||||
enableChanger: Boolean
|
||||
) {
|
||||
var tabIndex by rememberSaveable { mutableIntStateOf(0) }
|
||||
val tabItems = getTabItems()
|
||||
val pagerState = rememberPagerState { tabItems.size }
|
||||
|
||||
var addAlbumDialog by rememberSaveable { mutableStateOf(false) }
|
||||
|
||||
+2
-3
@@ -5,7 +5,6 @@ import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.CheckCircle
|
||||
@@ -45,7 +44,7 @@ fun HomeTopBar (
|
||||
) {
|
||||
CenterAlignedTopAppBar(
|
||||
colors = TopAppBarDefaults.centerAlignedTopAppBarColors(containerColor = Color.Transparent),
|
||||
title = { if (!showSelectionModeAppBar) Text(stringResource(R.string.appname)) },
|
||||
title = { if (!showSelectionModeAppBar) Text(stringResource(R.string.app_name)) },
|
||||
actions = {
|
||||
if (showSelectionModeAppBar) {
|
||||
var showAlertDialog by rememberSaveable { mutableStateOf(false) }
|
||||
@@ -87,7 +86,7 @@ fun HomeTopBar (
|
||||
.background(bgColor)
|
||||
)
|
||||
}
|
||||
Text("$selectionCount selected")
|
||||
Text(stringResource(R.string.selected_count, selectionCount))
|
||||
}
|
||||
} else {
|
||||
IconButton(
|
||||
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.home_screen.components
|
||||
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.AddToPhotos
|
||||
import androidx.compose.material.icons.filled.Image
|
||||
import androidx.compose.material.icons.outlined.AddToPhotos
|
||||
import androidx.compose.material.icons.outlined.Image
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.graphics.vector.ImageVector
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import com.anthonyla.paperize.R
|
||||
|
||||
/**
|
||||
* Data class representing a tab item
|
||||
*/
|
||||
data class TabItem(
|
||||
val title: String,
|
||||
val filledIcon: ImageVector,
|
||||
val unfilledIcon: ImageVector,
|
||||
)
|
||||
|
||||
@Composable
|
||||
fun getTabItems(): List<TabItem> {
|
||||
val context = LocalContext.current
|
||||
return listOf(
|
||||
TabItem(
|
||||
title = context.getString(R.string.wallpaper_screen),
|
||||
filledIcon = Icons.Filled.Image,
|
||||
unfilledIcon = Icons.Outlined.Image
|
||||
),
|
||||
TabItem(
|
||||
title = context.getString(R.string.library_screen),
|
||||
filledIcon = Icons.Filled.AddToPhotos,
|
||||
unfilledIcon = Icons.Outlined.AddToPhotos
|
||||
)
|
||||
)
|
||||
}
|
||||
+7
-1
@@ -36,6 +36,8 @@ import androidx.compose.runtime.saveable.rememberSaveable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.semantics.contentDescription
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.core.content.ContextCompat
|
||||
import com.airbnb.lottie.compose.LottieAnimation
|
||||
@@ -125,7 +127,11 @@ fun NotificationScreen(
|
||||
LottieAnimation(
|
||||
composition = composition,
|
||||
progress = { progress },
|
||||
modifier = Modifier.fillMaxHeight(0.5f)
|
||||
modifier = Modifier
|
||||
.fillMaxHeight(0.5f)
|
||||
.semantics { contentDescription = context.getString(R.string.notification_bell_animation) },
|
||||
safeMode = true,
|
||||
enableMergePaths = true
|
||||
)
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Info,
|
||||
|
||||
+15
-8
@@ -13,8 +13,10 @@ import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.unit.Dp
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.anthonyla.paperize.R
|
||||
|
||||
/**
|
||||
* Scrollable privacy screen to display privacy note
|
||||
@@ -40,14 +42,19 @@ fun PrivacyScrollableSettings(
|
||||
|
||||
@Composable
|
||||
fun PrivacyNoticeText() {
|
||||
SectionText("Introduction", "Welcome to Paperize! This privacy notice outlines how we collect, use, and protect your personal information when you use our mobile application. By using Paperize, you agree to the terms described in this notice.")
|
||||
SectionText("Data Collection", "Notification Access: Paperize 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: Paperize 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.")
|
||||
SectionText("Information Usage", "Personal Data: We do not collect or store any personal data such as names, email addresses, or phone numbers.\n\nUsage Analytics: Paperize does not track your usage behavior or collect analytics data.")
|
||||
SectionText("Data Security", "On-Device Storage: All data used by Paperize remains on your device. We do not transmit or store any data externally.")
|
||||
SectionText("Third-Party Services", "Advertisements: Paperize 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.")
|
||||
SectionText("Children’s Privacy", "Paperize is not intended for children under the age of 13. We do not knowingly collect any information from children.")
|
||||
SectionText("Changes to this notice", "We may update this privacy notice from time to time. Any changes will be reflected in the app and on our website.")
|
||||
SectionText("Contact Us", "If you have any questions or concerns about this privacy notice, please contact me at anthonyyla.dev@gmail.com.")
|
||||
SectionText(stringResource(R.string.introduction), stringResource(R.string.welcome_t) + " Paperize! " + stringResource(R.string.this_privacy_notice_outlines_how_we_collect_use_and_protect_your_personal_information_when_you_use_our_mobile_application_by_using) + " Paperize, " + stringResource(R.string.you_agree_to_the_terms_described_in_this_notice))
|
||||
SectionText(stringResource(R.string.data_collection),
|
||||
stringResource(R.string.notification_access) + " Paperize " + stringResource(R.string.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_local_files_we_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))
|
||||
SectionText(stringResource(R.string.information_usage),
|
||||
stringResource(R.string.personal_data_we_do_not_collect_or_store_any_personal_data_such_as_names_email_addresses_or_phone_numbers_usage_analytics_we_do_not_track_your_usage_behavior_or_collect_analytics_data))
|
||||
SectionText(stringResource(R.string.data_security),
|
||||
stringResource(R.string.on_device_storage_all_data_used_by) + " Paperize " + stringResource(R.string.remains_on_your_device_we_do_not_transmit_or_store_any_data_externally))
|
||||
SectionText(stringResource(R.string.third_party_services),
|
||||
stringResource(R.string.advertisements) + " Paperize " + stringResource(R.string.does_not_display_third_party_ads_external_links_our_app_may_contain_links_to_external_websites_please_note_that_we_are_not_responsible_for_the_privacy_practices_of_these_sites))
|
||||
SectionText(stringResource(R.string.children_s_privacy), "Paperize " + stringResource(R.string.is_not_intended_for_children_under_the_age_of_13_we_do_not_knowingly_collect_any_information_from_children))
|
||||
SectionText(stringResource(R.string.changes_to_this_notice),
|
||||
stringResource(R.string.we_may_update_this_privacy_notice_from_time_to_time_any_changes_will_be_reflected_in_the_app_and_on_our_website))
|
||||
SectionText(stringResource(R.string.contact_us), stringResource(R.string.if_you_have_any_questions_or_concerns_about_this_privacy_notice_please_contact_me_at) + " anthonyyla.dev@gmail.com.")
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
+8
-5
@@ -5,7 +5,6 @@ import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.Animation
|
||||
import androidx.compose.material.icons.outlined.Palette
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.ListItem
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
@@ -14,15 +13,19 @@ import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.semantics.contentDescription
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.anthonyla.paperize.R
|
||||
|
||||
/**
|
||||
* Enable animation switch
|
||||
*/
|
||||
@Composable
|
||||
fun AnimationListItem(animate: Boolean, onAnimateClick: (Boolean) -> Unit) {
|
||||
val context = LocalContext.current
|
||||
Row {
|
||||
ListItem(
|
||||
modifier = Modifier
|
||||
@@ -30,17 +33,17 @@ fun AnimationListItem(animate: Boolean, onAnimateClick: (Boolean) -> Unit) {
|
||||
.clickable { onAnimateClick(!animate) },
|
||||
headlineContent = {
|
||||
Text(
|
||||
text = "Animation",
|
||||
text = stringResource(R.string.animation),
|
||||
style = MaterialTheme.typography.titleMedium
|
||||
) },
|
||||
supportingContent = {
|
||||
Text(
|
||||
text = "Increase visual appeal",
|
||||
text = stringResource(R.string.increase_visual_appeal),
|
||||
style = MaterialTheme.typography.bodySmall
|
||||
) },
|
||||
trailingContent = {
|
||||
Switch(
|
||||
modifier = Modifier.semantics { contentDescription = "Animation" },
|
||||
modifier = Modifier.semantics { contentDescription = context.getString(R.string.animation) },
|
||||
checked = animate,
|
||||
onCheckedChange = onAnimateClick,
|
||||
enabled = true
|
||||
@@ -48,7 +51,7 @@ fun AnimationListItem(animate: Boolean, onAnimateClick: (Boolean) -> Unit) {
|
||||
leadingContent = {
|
||||
Icon(
|
||||
Icons.Outlined.Animation,
|
||||
contentDescription = "Animation",
|
||||
contentDescription = stringResource(R.string.animation),
|
||||
tint = MaterialTheme.colorScheme.primary
|
||||
) },
|
||||
tonalElevation = 5.dp
|
||||
|
||||
+10
-7
@@ -30,8 +30,10 @@ import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.anthonyla.paperize.R
|
||||
|
||||
/**
|
||||
* Three-state selector for dark mode in settings
|
||||
@@ -40,9 +42,9 @@ import androidx.compose.ui.unit.dp
|
||||
@Composable
|
||||
fun DarkModeListItem(darkMode: Boolean?, onDarkModeClick: (Boolean?) -> Unit) {
|
||||
val options = listOf(
|
||||
Triple("Dark Mode", Icons.Outlined.DarkMode, Icons.Filled.DarkMode),
|
||||
Triple("Automatic Device Mode", Icons.Outlined.BrightnessAuto, Icons.Filled.BrightnessAuto),
|
||||
Triple("Light Mode", Icons.Outlined.LightMode, Icons.Filled.LightMode)
|
||||
Triple(stringResource(R.string.dark_mode), Icons.Outlined.DarkMode, Icons.Filled.DarkMode),
|
||||
Triple(stringResource(R.string.automatic_device_mode), Icons.Outlined.BrightnessAuto, Icons.Filled.BrightnessAuto),
|
||||
Triple(stringResource(R.string.light_mode), Icons.Outlined.LightMode, Icons.Filled.LightMode)
|
||||
)
|
||||
var selectedIndex by remember {
|
||||
mutableIntStateOf(
|
||||
@@ -70,16 +72,17 @@ fun DarkModeListItem(darkMode: Boolean?, onDarkModeClick: (Boolean?) -> Unit) {
|
||||
2 -> false
|
||||
else -> null
|
||||
}
|
||||
) },
|
||||
)
|
||||
},
|
||||
headlineContent = {
|
||||
Text(
|
||||
text = "Dark Mode",
|
||||
text = stringResource(R.string.dark_mode),
|
||||
style = MaterialTheme.typography.titleMedium
|
||||
|
||||
) },
|
||||
supportingContent = {
|
||||
Text(
|
||||
text = "Easier on the eyes",
|
||||
text = stringResource(R.string.easier_on_the_eyes),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
overflow = TextOverflow.Ellipsis
|
||||
) },
|
||||
@@ -116,7 +119,7 @@ fun DarkModeListItem(darkMode: Boolean?, onDarkModeClick: (Boolean?) -> Unit) {
|
||||
leadingContent = {
|
||||
Icon(
|
||||
Icons.Outlined.Brightness6,
|
||||
contentDescription = "Dark Mode",
|
||||
contentDescription = stringResource(R.string.dark_mode),
|
||||
tint = MaterialTheme.colorScheme.primary
|
||||
)
|
||||
},
|
||||
|
||||
+8
-4
@@ -13,15 +13,19 @@ import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.semantics.contentDescription
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.anthonyla.paperize.R
|
||||
|
||||
/**
|
||||
* Dynamic theming switch
|
||||
*/
|
||||
@Composable
|
||||
fun DynamicThemingListItem(dynamicTheming: Boolean, onDynamicThemingClick: (Boolean) -> Unit) {
|
||||
val context = LocalContext.current
|
||||
Row {
|
||||
ListItem(
|
||||
modifier = Modifier
|
||||
@@ -29,18 +33,18 @@ fun DynamicThemingListItem(dynamicTheming: Boolean, onDynamicThemingClick: (Bool
|
||||
.clickable { onDynamicThemingClick(!dynamicTheming) },
|
||||
headlineContent = {
|
||||
Text(
|
||||
text = "Dynamic Theme",
|
||||
text = stringResource(R.string.dynamic_theme),
|
||||
style = MaterialTheme.typography.titleMedium
|
||||
|
||||
) },
|
||||
supportingContent = {
|
||||
Text(
|
||||
text = "Material You",
|
||||
text = stringResource(R.string.material_you),
|
||||
style = MaterialTheme.typography.bodySmall
|
||||
) },
|
||||
trailingContent = {
|
||||
Switch(
|
||||
modifier = Modifier.semantics { contentDescription = "Dynamic Theme" },
|
||||
modifier = Modifier.semantics { contentDescription = context.getString(R.string.dynamic_theme) },
|
||||
checked = dynamicTheming,
|
||||
onCheckedChange = onDynamicThemingClick,
|
||||
enabled = true
|
||||
@@ -48,7 +52,7 @@ fun DynamicThemingListItem(dynamicTheming: Boolean, onDynamicThemingClick: (Bool
|
||||
leadingContent = {
|
||||
Icon(
|
||||
Icons.Outlined.Palette,
|
||||
contentDescription = "Dynamic Theming",
|
||||
contentDescription = stringResource(R.string.dynamic_theming),
|
||||
tint = MaterialTheme.colorScheme.primary
|
||||
) },
|
||||
tonalElevation = 5.dp
|
||||
|
||||
+1
-3
@@ -4,8 +4,6 @@ import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.automirrored.outlined.LibraryBooks
|
||||
import androidx.compose.material.icons.outlined.Newspaper
|
||||
import androidx.compose.material.icons.outlined.PrivacyTip
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.ListItem
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
@@ -34,7 +32,7 @@ fun LicenseListItem(onLicenseClick: () -> Unit) {
|
||||
) },
|
||||
supportingContent = {
|
||||
Text(
|
||||
text = "Click here to view the licenses",
|
||||
text = stringResource(R.string.click_here_to_view_the_licenses),
|
||||
style = MaterialTheme.typography.bodySmall
|
||||
) },
|
||||
trailingContent = {},
|
||||
|
||||
+3
-3
@@ -53,17 +53,17 @@ fun PaperizeListItem(onGitHubClick: () -> Unit, onPlaystoreClick: () -> Unit, on
|
||||
) {
|
||||
Icon(
|
||||
imageVector = ImageVector.vectorResource(id = R.drawable.app_icon_foreground),
|
||||
contentDescription = stringResource(id = R.string.appname),
|
||||
contentDescription = stringResource(id = R.string.app_name),
|
||||
modifier = Modifier.size(160.dp).scale(1.5f),
|
||||
tint = MaterialTheme.colorScheme.primary,
|
||||
)
|
||||
Text(
|
||||
text = stringResource(id = R.string.appname),
|
||||
text = stringResource(id = R.string.app_name),
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
fontSize = MaterialTheme.typography.titleLarge.fontSize
|
||||
)
|
||||
Text(
|
||||
text = "Version: 1.1.0",
|
||||
text = "Version: 1.1.1",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
fontSize = MaterialTheme.typography.bodyMedium.fontSize
|
||||
)
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ fun PrivacyPolicyListItem(onPrivacyPolicyClick: () -> Unit) {
|
||||
) },
|
||||
supportingContent = {
|
||||
Text(
|
||||
text = "Click here to view our privacy policy",
|
||||
text = stringResource(R.string.click_here_to_view_our_privacy_policy),
|
||||
style = MaterialTheme.typography.bodySmall
|
||||
) },
|
||||
trailingContent = {},
|
||||
|
||||
-33
@@ -1,33 +0,0 @@
|
||||
package com.anthonyla.paperize.feature.wallpaper.presentation.settings_screen.components
|
||||
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.AddToPhotos
|
||||
import androidx.compose.material.icons.filled.Image
|
||||
import androidx.compose.material.icons.outlined.AddToPhotos
|
||||
import androidx.compose.material.icons.outlined.Image
|
||||
import androidx.compose.ui.graphics.vector.ImageVector
|
||||
|
||||
/**
|
||||
* Data class representing a tab item
|
||||
*/
|
||||
data class TabItem(
|
||||
val title: String,
|
||||
val filledIcon: ImageVector,
|
||||
val unfilledIcon: ImageVector,
|
||||
)
|
||||
|
||||
/**
|
||||
* List of tab items
|
||||
*/
|
||||
val tabItems = listOf(
|
||||
TabItem(
|
||||
title = "Wallpaper",
|
||||
filledIcon = Icons.Filled.Image,
|
||||
unfilledIcon = Icons.Outlined.Image
|
||||
),
|
||||
TabItem(
|
||||
title = "Library",
|
||||
filledIcon = Icons.Filled.AddToPhotos,
|
||||
unfilledIcon = Icons.Outlined.AddToPhotos
|
||||
)
|
||||
)
|
||||
+28
-15
@@ -37,6 +37,8 @@ import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.semantics.contentDescription
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.airbnb.lottie.compose.LottieAnimation
|
||||
@@ -88,7 +90,11 @@ fun StartupScreen(
|
||||
LottieAnimation(
|
||||
composition = composition,
|
||||
progress = { progress },
|
||||
modifier = Modifier.fillMaxHeight(0.5f)
|
||||
modifier = Modifier
|
||||
.fillMaxHeight(0.5f)
|
||||
.semantics { contentDescription = context.getString(R.string.welcome_animation) },
|
||||
safeMode = true,
|
||||
enableMergePaths = true
|
||||
)
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Info,
|
||||
@@ -96,7 +102,7 @@ fun StartupScreen(
|
||||
modifier = Modifier.padding(PaddingValues(vertical = 16.dp))
|
||||
)
|
||||
Text(
|
||||
text = "Please read and agree to the following privacy notice to use the app.",
|
||||
text = stringResource(R.string.please_read_and_agree_to_the_following_privacy_notice_to_use_the_app),
|
||||
style = MaterialTheme.typography.bodySmall
|
||||
)
|
||||
Box(
|
||||
@@ -111,7 +117,7 @@ fun StartupScreen(
|
||||
} },
|
||||
modifier = Modifier.padding(PaddingValues(vertical = 16.dp)),
|
||||
) {
|
||||
Text(text = "Privacy Notice", textAlign = TextAlign.Start)
|
||||
Text(text = stringResource(R.string.privacy_notice), textAlign = TextAlign.Start)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -125,8 +131,8 @@ fun StartupScreen(
|
||||
} else {
|
||||
scope.launch {
|
||||
val result = snackbarHostState.showSnackbar(
|
||||
message = "Please read and agree to the privacy notice.",
|
||||
actionLabel = "View",
|
||||
message = context.getString(R.string.please_read_and_agree_to_the_privacy_notice),
|
||||
actionLabel = context.getString(R.string.view),
|
||||
duration = SnackbarDuration.Short,
|
||||
)
|
||||
when (result) {
|
||||
@@ -157,7 +163,7 @@ fun StartupScreen(
|
||||
title = {
|
||||
Box(modifier = Modifier.fillMaxWidth()) {
|
||||
Text(
|
||||
text = "Privacy Notice",
|
||||
text = stringResource(R.string.privacy_notice),
|
||||
textAlign = TextAlign.Center,
|
||||
modifier = Modifier.align(Alignment.Center)
|
||||
)
|
||||
@@ -168,7 +174,7 @@ fun StartupScreen(
|
||||
Button(
|
||||
onClick = { showToS = false },
|
||||
) {
|
||||
Text("Dismiss")
|
||||
Text(stringResource(R.string.dismiss))
|
||||
}
|
||||
}
|
||||
)
|
||||
@@ -179,28 +185,35 @@ fun StartupScreen(
|
||||
fun PrivacyNoticeText() {
|
||||
LazyColumn {
|
||||
item {
|
||||
SectionText("Hello!", "Welcome to Paperize! We respect your privacy and protect your personal info. By using our app, you're okay with our privacy policy.")
|
||||
SectionText(stringResource(R.string.hello), stringResource(R.string.welcome_to) + "Paperize! " + stringResource(
|
||||
R.string.we_respect_your_privacy_and_protect_your_personal_info_by_using_our_app_you_re_okay_with_our_privacy_policy
|
||||
) )
|
||||
}
|
||||
item {
|
||||
SectionText("What We Collect", "We ask for notification access to personalize your wallpapers. We don't store or share your notifications. We also access your local files for wallpapers, but don't upload or transfer them.")
|
||||
SectionText(stringResource(R.string.what_we_collect),
|
||||
stringResource(R.string.we_ask_for_notification_access_to_personalize_your_wallpapers_we_don_t_store_or_share_your_notifications_we_also_access_your_local_files_for_wallpapers_but_don_t_upload_or_transfer_them))
|
||||
}
|
||||
item {
|
||||
SectionText("How We Use Info", "We don't collect personal data or track your usage. All your data stays on your device.")
|
||||
SectionText(stringResource(R.string.how_we_use_info),
|
||||
stringResource(R.string.we_don_t_collect_personal_data_or_track_your_usage_all_your_data_stays_on_your_device))
|
||||
}
|
||||
item {
|
||||
SectionText("Security", "Your data is safe with us. It stays on your device at all times.")
|
||||
SectionText(stringResource(R.string.security),
|
||||
stringResource(R.string.your_data_is_safe_with_us_it_stays_on_your_device_at_all_times))
|
||||
}
|
||||
item {
|
||||
SectionText("Third-Party Services", "No third-party ads here! We might have external links, but we're not responsible for their privacy practices.")
|
||||
SectionText(stringResource(R.string.third_party_services),
|
||||
stringResource(R.string.no_third_party_ads_here_we_might_have_external_links_but_we_re_not_responsible_for_their_privacy_practices))
|
||||
}
|
||||
item {
|
||||
SectionText("For Kids", "Paperize isn't for kids under 13. We don't knowingly collect their info.")
|
||||
SectionText(stringResource(R.string.for_kids), "Paperize " + stringResource(R.string.isn_t_for_kids_under_13_we_don_t_knowingly_collect_their_info))
|
||||
}
|
||||
item {
|
||||
SectionText("Policy Updates", "We might update this policy sometimes. You'll see any changes in the app and on GitHub.")
|
||||
SectionText(stringResource(R.string.policy_updates),
|
||||
stringResource(R.string.we_might_update_this_policy_sometimes_you_ll_see_any_changes_in_the_app_and_on_github))
|
||||
}
|
||||
item {
|
||||
SectionText("Contact Us", "Got questions or concerns about our privacy policy? Email us at anthonyyla.dev@gmail.com.")
|
||||
SectionText(stringResource(R.string.contact_us), stringResource(R.string.got_questions_or_concerns_about_our_privacy_policy_email_us_at) + "anthonyyla.dev@gmail.com.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<resources>
|
||||
<string name="app_name">Paperize</string>
|
||||
<string name="app_name" translatable="false">Paperize</string>
|
||||
<string name="SettingsIcon">Options</string>
|
||||
<string name="dropdownmenu_settings">Settings</string>
|
||||
<string name="home_screen">Home</string>
|
||||
@@ -8,12 +8,11 @@
|
||||
<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 Paperize live wallpaper</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="add_image">add_image\n</string>
|
||||
<string name="appname">Paperize</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>
|
||||
@@ -76,4 +75,62 @@
|
||||
<string name="hours">%1$s hours</string>
|
||||
<string name="day">%1$s day</string>
|
||||
<string name="days">%1$s days</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="hello">Hello!</string>
|
||||
<string name="what_we_collect">What We Collect</string>
|
||||
<string name="how_we_use_info">How We Use Info</string>
|
||||
<string name="security">Security</string>
|
||||
<string name="third_party_services">Third-Party Services</string>
|
||||
<string name="for_kids">For Kids</string>
|
||||
<string name="policy_updates">Policy Updates</string>
|
||||
<string name="contact_us">Contact Us</string>
|
||||
<string name="got_questions_or_concerns_about_our_privacy_policy_email_us_at">Got questions or concerns about our privacy policy? Email us at</string>
|
||||
<string name="we_might_update_this_policy_sometimes_you_ll_see_any_changes_in_the_app_and_on_github">We might update this policy sometimes. You\'ll see any changes in the app and on GitHub.</string>
|
||||
<string name="isn_t_for_kids_under_13_we_don_t_knowingly_collect_their_info">isn\'t for kids under 13. We don\'t knowingly collect their info.</string>
|
||||
<string name="no_third_party_ads_here_we_might_have_external_links_but_we_re_not_responsible_for_their_privacy_practices">No third-party ads here! We might have external links, but we\'re not responsible for their privacy practices.</string>
|
||||
<string name="your_data_is_safe_with_us_it_stays_on_your_device_at_all_times">Your data is safe with us. It stays on your device at all times.</string>
|
||||
<string name="we_don_t_collect_personal_data_or_track_your_usage_all_your_data_stays_on_your_device">We don\'t collect personal data or track your usage. All your data stays on your device.</string>
|
||||
<string name="we_ask_for_notification_access_to_personalize_your_wallpapers_we_don_t_store_or_share_your_notifications_we_also_access_your_local_files_for_wallpapers_but_don_t_upload_or_transfer_them">We ask for notification access to personalize your wallpapers. We don\'t store or share your notifications. We also access your local files for wallpapers, but don\'t upload or transfer them.</string>
|
||||
<string name="welcome_to">"Welcome to "</string>
|
||||
<string name="we_respect_your_privacy_and_protect_your_personal_info_by_using_our_app_you_re_okay_with_our_privacy_policy">We respect your privacy and protect your personal info. By using our app, you\'re okay with our privacy policy.</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="selected_count">%1$s selected</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="introduction">Introduction</string>
|
||||
<string name="data_collection">Data Collection</string>
|
||||
<string name="information_usage">Information Usage</string>
|
||||
<string name="data_security">Data Security</string>
|
||||
<string name="children_s_privacy">Children’s Privacy</string>
|
||||
<string name="changes_to_this_notice">Changes to this notice</string>
|
||||
<string name="if_you_have_any_questions_or_concerns_about_this_privacy_notice_please_contact_me_at">If you have any questions or concerns about this privacy notice, please contact me at</string>
|
||||
<string name="we_may_update_this_privacy_notice_from_time_to_time_any_changes_will_be_reflected_in_the_app_and_on_our_website">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="is_not_intended_for_children_under_the_age_of_13_we_do_not_knowingly_collect_any_information_from_children">is not intended for children under the age of 13. We do not knowingly collect any information from children.</string>
|
||||
<string name="advertisements">Advertisements:</string>
|
||||
<string name="does_not_display_third_party_ads_external_links_our_app_may_contain_links_to_external_websites_please_note_that_we_are_not_responsible_for_the_privacy_practices_of_these_sites">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="on_device_storage_all_data_used_by">On-Device Storage: All data used by</string>
|
||||
<string name="remains_on_your_device_we_do_not_transmit_or_store_any_data_externally">remains on your device. We do not transmit or store any data externally.</string>
|
||||
<string name="personal_data_we_do_not_collect_or_store_any_personal_data_such_as_names_email_addresses_or_phone_numbers_usage_analytics_we_do_not_track_your_usage_behavior_or_collect_analytics_data">Personal Data: We do not collect or store any personal data such as names, email addresses, or phone numbers.\n\nUsage Analytics: We do not track your usage behavior or collect analytics data.</string>
|
||||
<string name="notification_access">Notification Access:</string>
|
||||
<string name="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_local_files_we_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">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: We 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="welcome_t">Welcome to</string>
|
||||
<string name="this_privacy_notice_outlines_how_we_collect_use_and_protect_your_personal_information_when_you_use_our_mobile_application_by_using">This privacy notice outlines how we collect, use, and protect your personal information when you use our mobile application. By using</string>
|
||||
<string name="you_agree_to_the_terms_described_in_this_notice">you agree to the terms described in this notice.</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>
|
||||
</resources>
|
||||
Reference in new issue
Block a user