From 6d9d5d30db68266ee92a6139b0bf87183b1eca31 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Sun, 22 Sep 2024 01:29:17 +0700 Subject: [PATCH] Remove internal changes --- lawnchair/res/values/strings.xml | 24 ------------------- .../preferences2/PreferenceManager2.kt | 10 -------- .../smartspace/model/SmartspaceScores.kt | 4 +--- .../smartspace/provider/SmartspaceProvider.kt | 4 +--- 4 files changed, 2 insertions(+), 40 deletions(-) diff --git a/lawnchair/res/values/strings.xml b/lawnchair/res/values/strings.xml index 313c1f105b2..6bb45fbc1a1 100644 --- a/lawnchair/res/values/strings.xml +++ b/lawnchair/res/values/strings.xml @@ -363,26 +363,6 @@ Don’t stay up too late! - - now - in %1$s - - %d min - %d min - - - %d hr - %d hr - - %1$s %2$s - Warning: Lawnchair must have access to your calendar to show it - - - Onboarding - Set Up %s - Touch & hold on the Home Screen. - Swipe up to open the App Drawer. - Calendar Date & time @@ -398,8 +378,6 @@ Battery status Now Playing Greetings - Calendar - Onboarding Maximum number of targets @@ -409,8 +387,6 @@ Tap to set up To use %1$s, turn on Notification Dots. - To use %1$s provider, allow Lawnchair to access your calendar. - Calendar access needed Show on home screen diff --git a/lawnchair/src/app/lawnchair/preferences2/PreferenceManager2.kt b/lawnchair/src/app/lawnchair/preferences2/PreferenceManager2.kt index df815742bad..5d8d9551620 100644 --- a/lawnchair/src/app/lawnchair/preferences2/PreferenceManager2.kt +++ b/lawnchair/src/app/lawnchair/preferences2/PreferenceManager2.kt @@ -550,16 +550,6 @@ class PreferenceManager2 private constructor(private val context: Context) : Pre defaultValue = false, ) - val smartspaceCalendarEvents = preference( - key = booleanPreferencesKey("enable_smartspace_calendar"), - defaultValue = true, - ) - - val smartspaceOnboardingProvider = preference( - key = booleanPreferencesKey("enable_smartspace_onboarding_assist"), - defaultValue = true, - ) - val smartspaceShowDate = preference( key = booleanPreferencesKey("smartspace_show_date"), defaultValue = context.resources.getBoolean(R.bool.config_default_smartspace_show_date), diff --git a/lawnchair/src/app/lawnchair/smartspace/model/SmartspaceScores.kt b/lawnchair/src/app/lawnchair/smartspace/model/SmartspaceScores.kt index f3a2952a940..0d61e297bf8 100644 --- a/lawnchair/src/app/lawnchair/smartspace/model/SmartspaceScores.kt +++ b/lawnchair/src/app/lawnchair/smartspace/model/SmartspaceScores.kt @@ -5,9 +5,7 @@ object SmartspaceScores { const val SCORE_PERSONALITY = 1f const val SCORE_BATTERY = 2f const val SCORE_MEDIA = 3f - const val SCORE_CALENDAR = 4f - const val SCORE_ONBOARDING = 10f // Critical Information that must be displayed before anything else. - const val SCORE_LOW_BATTERY = 15f + const val SCORE_LOW_BATTERY = 10f } diff --git a/lawnchair/src/app/lawnchair/smartspace/provider/SmartspaceProvider.kt b/lawnchair/src/app/lawnchair/smartspace/provider/SmartspaceProvider.kt index 2aa05ff1073..f43a59fd741 100644 --- a/lawnchair/src/app/lawnchair/smartspace/provider/SmartspaceProvider.kt +++ b/lawnchair/src/app/lawnchair/smartspace/provider/SmartspaceProvider.kt @@ -22,9 +22,7 @@ class SmartspaceProvider private constructor(context: Context) { BatteryStatusProvider(context), NowPlayingProvider(context), PersonalityProvider(context), - CalendarEventProvider(context), - OnboardingProvider(context), - ).sortedBy { it.providerName } // TODO: Sort by SmartspaceScores? Should make it easier to make... ugh English SUCK + ) private val state = dataSources .map { it.targets }