-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split app into two activities (#110)
* Move settings-related screens into second activity #93 * Add drop shadow to appcards * Open google wallpapers by default * Switch to StateFlow * fix bug where usage of favorites didn't update #88
- Loading branch information
1 parent
642f664
commit 230dce4
Showing
29 changed files
with
396 additions
and
271 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 2 additions & 23 deletions
25
app/src/main/java/com/alveteg/simon/minutelauncher/Event.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,4 @@ | ||
package com.alveteg.simon.minutelauncher | ||
|
||
import com.alveteg.simon.minutelauncher.data.AccessTimer | ||
import com.alveteg.simon.minutelauncher.data.AccessTimerMapping | ||
import com.alveteg.simon.minutelauncher.data.App | ||
import com.alveteg.simon.minutelauncher.data.AppInfo | ||
import com.alveteg.simon.minutelauncher.data.FavoriteAppInfo | ||
import com.alveteg.simon.minutelauncher.utilities.Gesture | ||
|
||
|
||
sealed class Event { | ||
data class OpenApplication(val appInfo: AppInfo) : Event() | ||
data class LaunchActivity(val appInfo: AppInfo) : Event() | ||
data class UpdateSearch(val searchTerm: String) : Event() | ||
data class ToggleFavorite(val app: App) : Event() | ||
data class HandleGesture(val gesture: Gesture) : Event() | ||
data class SetAppGesture(val app: App, val gesture: Gesture) : Event() | ||
data class ClearAppGesture(val gesture: Gesture) : Event() | ||
data class UpdateFavoriteOrder(val favorites: List<FavoriteAppInfo>) : Event() | ||
data class UpdateApp(val app: App) : Event() | ||
data object OpenGestureSettings : Event() | ||
data class OpenGestureList(val gesture: Gesture) : Event() | ||
data object OpenTimerSettings : Event() | ||
data class SetDefaultTimer(val accessTimerMapping: AccessTimerMapping) : Event() | ||
} | ||
interface Event { | ||
} |
57 changes: 9 additions & 48 deletions
57
app/src/main/java/com/alveteg/simon/minutelauncher/NavGraph.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.