Remove unused legacy preferences
This commit is contained in:
parent
f72e7a1993
commit
ef009824df
@ -19,9 +19,6 @@ import de.mm20.launcher2.R
|
|||||||
import de.mm20.launcher2.icons.IconPackManager
|
import de.mm20.launcher2.icons.IconPackManager
|
||||||
import de.mm20.launcher2.icons.IconRepository
|
import de.mm20.launcher2.icons.IconRepository
|
||||||
import de.mm20.launcher2.icons.LauncherIcon
|
import de.mm20.launcher2.icons.LauncherIcon
|
||||||
import de.mm20.launcher2.preferences.IconShape
|
|
||||||
import de.mm20.launcher2.preferences.LauncherPreferences
|
|
||||||
import de.mm20.launcher2.ui.legacy.view.LauncherIconView
|
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
|
|
||||||
@ -86,16 +83,6 @@ class PreferencesAppearanceFragment : PreferenceFragmentCompat() {
|
|||||||
)
|
)
|
||||||
val iconShapeList = LinearLayout(requireContext())
|
val iconShapeList = LinearLayout(requireContext())
|
||||||
iconShapeList.orientation = LinearLayout.VERTICAL
|
iconShapeList.orientation = LinearLayout.VERTICAL
|
||||||
val shapes = arrayOf(
|
|
||||||
IconShape.PLATFORM_DEFAULT to R.string.preference_icon_shape_platform,
|
|
||||||
IconShape.CIRCLE to R.string.preference_icon_shape_circle,
|
|
||||||
IconShape.ROUNDED_SQUARE to R.string.preference_icon_shape_rounded_square,
|
|
||||||
IconShape.SQUARE to R.string.preference_icon_shape_square,
|
|
||||||
IconShape.SQUIRCLE to R.string.preference_icon_shape_squircle,
|
|
||||||
IconShape.HEXAGON to R.string.preference_icon_shape_hexagon,
|
|
||||||
IconShape.TRIANGLE to R.string.preference_icon_shape_triangle,
|
|
||||||
IconShape.PENTAGON to R.string.preference_icon_shape_pentagon
|
|
||||||
)
|
|
||||||
val layoutParams = LinearLayout.LayoutParams(
|
val layoutParams = LinearLayout.LayoutParams(
|
||||||
LinearLayout.LayoutParams.MATCH_PARENT,
|
LinearLayout.LayoutParams.MATCH_PARENT,
|
||||||
LinearLayout.LayoutParams.WRAP_CONTENT)
|
LinearLayout.LayoutParams.WRAP_CONTENT)
|
||||||
|
|||||||
@ -47,16 +47,8 @@ class LauncherPreferences(val context: Application, version: Int = 3) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var dimWallpaper by BooleanPreference("dim_wallpaper", default = false)
|
|
||||||
var appStartAnim by EnumPreference("app_start_anim", default = AppStartAnimation.M)
|
var appStartAnim by EnumPreference("app_start_anim", default = AppStartAnimation.M)
|
||||||
|
|
||||||
var searchCalendars by BooleanPreference("search_calendars", default = true)
|
|
||||||
var searchContacts by BooleanPreference("search_contacts", default = true)
|
|
||||||
|
|
||||||
var themedIcons by BooleanPreference("themed_icons", default = false)
|
|
||||||
var legacyIconBg by StringPreference("legacy_icon_bg", default = "1")
|
|
||||||
var iconShape by EnumPreference("icon_shape", default = IconShape.PLATFORM_DEFAULT)
|
|
||||||
|
|
||||||
var cardOpacity by IntPreference("card_opacity", default = 0xFF)
|
var cardOpacity by IntPreference("card_opacity", default = 0xFF)
|
||||||
var cardStrokeWidth by IntPreference("card_stroke_width", default = 0)
|
var cardStrokeWidth by IntPreference("card_stroke_width", default = 0)
|
||||||
var cardRadius by IntPreference("card_radius", default = 8)
|
var cardRadius by IntPreference("card_radius", default = 8)
|
||||||
@ -71,18 +63,6 @@ class LauncherPreferences(val context: Application, version: Int = 3) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class IconShape(override val value: String) : PreferenceEnum {
|
|
||||||
CIRCLE("0"),
|
|
||||||
SQUARE("1"),
|
|
||||||
ROUNDED_SQUARE("2"),
|
|
||||||
TRIANGLE("3"),
|
|
||||||
SQUIRCLE("4"),
|
|
||||||
HEXAGON("5"),
|
|
||||||
HEART("6"),
|
|
||||||
PENTAGON("7"),
|
|
||||||
PLATFORM_DEFAULT("8")
|
|
||||||
}
|
|
||||||
|
|
||||||
enum class AppStartAnimation(override val value: String): PreferenceEnum {
|
enum class AppStartAnimation(override val value: String): PreferenceEnum {
|
||||||
DEFAULT("5"),
|
DEFAULT("5"),
|
||||||
M("2"),
|
M("2"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user