-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include install source in synced app-data (gplay, fdroid, samsung, am…
…azon)
- Loading branch information
Showing
24 changed files
with
421 additions
and
66 deletions.
There are no files selected for viewing
14 changes: 10 additions & 4 deletions
14
app/src/main/java/eu/darken/octi/main/ui/dashboard/DashboardEvent.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,16 +1,22 @@ | ||
package eu.darken.octi.main.ui.dashboard | ||
|
||
import android.content.Intent | ||
import eu.darken.octi.common.permissions.Permission | ||
|
||
sealed class DashboardEvent { | ||
sealed interface DashboardEvent { | ||
|
||
data class ShowPermissionPopup( | ||
val permission: Permission, | ||
val onDismiss: (Permission) -> Unit, | ||
val onGrant: (Permission) -> Unit, | ||
) : DashboardEvent() | ||
) : DashboardEvent | ||
|
||
data class ShowPermissionDismissHint(val permission: Permission) : DashboardEvent() | ||
data class RequestPermissionEvent(val permission: Permission) : DashboardEvent() | ||
data class ShowPermissionDismissHint(val permission: Permission) : DashboardEvent | ||
data class RequestPermissionEvent(val permission: Permission) : DashboardEvent | ||
|
||
data class OpenAppOrStore( | ||
val intent: Intent, | ||
val fallback: Intent, | ||
) : DashboardEvent | ||
|
||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<CheckBoxPreference | ||
android:icon="@drawable/ic_baseline_battery_full_24" | ||
android:key="module.power.enabled" | ||
android:summary="@string/module_power_desc" | ||
android:title="@string/module_power_label" /> | ||
|
||
<CheckBoxPreference | ||
android:icon="@drawable/ic_baseline_network_wifi_5_bar_24" | ||
android:key="module.wifi.enabled" | ||
android:summary="@string/module_wifi_desc" | ||
android:title="@string/module_wifi_label" /> | ||
|
||
<CheckBoxPreference | ||
android:icon="@drawable/ic_baseline_apps_24" | ||
android:key="module.apps.enabled" | ||
android:summary="@string/module_apps_desc" | ||
android:title="@string/module_apps_label" /> | ||
|
||
<CheckBoxPreference | ||
android:icon="@drawable/ic_baseline_content_paste_24" | ||
android:key="module.clipboard.enabled" | ||
android:summary="@string/module_clipboard_desc" | ||
android:title="@string/module_clipboard_label" /> | ||
|
||
<PreferenceCategory android:title="@string/modules_category_energy_label"> | ||
<CheckBoxPreference | ||
android:icon="@drawable/ic_baseline_battery_full_24" | ||
android:key="module.power.enabled" | ||
android:summary="@string/module_power_desc" | ||
android:title="@string/module_power_label" /> | ||
</PreferenceCategory> | ||
<PreferenceCategory android:title="@string/modules_category_connectivity_label"> | ||
<CheckBoxPreference | ||
android:icon="@drawable/ic_baseline_network_wifi_5_bar_24" | ||
android:key="module.wifi.enabled" | ||
android:summary="@string/module_wifi_desc" | ||
android:title="@string/module_wifi_label" /> | ||
</PreferenceCategory> | ||
<PreferenceCategory android:title="@string/module_apps_category_label"> | ||
<CheckBoxPreference | ||
android:icon="@drawable/ic_baseline_apps_24" | ||
android:key="module.apps.enabled" | ||
android:summary="@string/module_apps_desc" | ||
android:title="@string/module_apps_label" /> | ||
<CheckBoxPreference | ||
android:icon="@drawable/ic_store_24" | ||
android:key="module.apps.include.installer" | ||
android:summary="@string/module_apps_installer_desc" | ||
android:title="@string/module_apps_installer_label" /> | ||
</PreferenceCategory> | ||
<PreferenceCategory android:title="@string/modules_category_misc_label"> | ||
<CheckBoxPreference | ||
android:icon="@drawable/ic_baseline_content_paste_24" | ||
android:key="module.clipboard.enabled" | ||
android:summary="@string/module_clipboard_desc" | ||
android:title="@string/module_clipboard_label" /> | ||
</PreferenceCategory> | ||
</PreferenceScreen> |
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.