Skip to content

Commit

Permalink
Fixed "Add images" text on FAB disappearing at the end of animation
Browse files Browse the repository at this point in the history
Fixed scheduling wrong time for wallpaper changing on startup
  • Loading branch information
Anthonyy232 committed May 19, 2024
1 parent 4117ffb commit 0cc477b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class MainActivity : ComponentActivity() {
if (!isAlreadyRunning) {
val intent = Intent(context, WallpaperService::class.java).apply {
action = WallpaperService.Actions.START.toString()
putExtra("timeInMinutes", settingsState.value.interval)
}
context.startForegroundService(intent)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fun AddAlbumAnimatedFab(

BackHandler(expanded) { expanded = false }

val expandHorizontalSize = Pair(155.dp, 90.dp)
val expandHorizontalSize = Pair(165.dp, 90.dp)
val expandHorizontally by fabTransition.animateDp(
transitionSpec = { spring(dampingRatio = Spring.DampingRatioMediumBouncy, stiffness = Spring.StiffnessLow) }, label = "",
targetValueByState = { isExpanded ->
Expand Down

0 comments on commit 0cc477b

Please sign in to comment.