Skip to content

Commit

Permalink
fix: Toby's version check error
Browse files Browse the repository at this point in the history
remove: a bunch of unused imports
  • Loading branch information
Adolar0042 committed Apr 20, 2023
1 parent 94c6712 commit 466ba36
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/chouten/app/data/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.compose.material.icons.outlined.Settings
import com.chouten.app.App
import com.chouten.app.PrimaryDataLayer
import com.chouten.app.R
import com.chouten.app.data.ChoutenSetting

object AppPaths {
val baseDir =
Expand All @@ -28,7 +27,7 @@ object Preferences {
R.string.dynamic_colour_toggle__title,
R.string.dynamic_colour_toggle__desc,
preference = Pair("dynamicColor", Boolean),
constraints = { Build.VERSION.SDK_INT > 31 } // Disable if not Android 12 <=
constraints = { Build.VERSION.SDK_INT >= 31 } // Disable if not on Android 12+
)
{
PrimaryDataLayer.enqueueSnackbar(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
package com.chouten.app.ui.views.settingsPage

import androidx.compose.material3.Text
import androidx.annotation.StringRes
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.tooling.preview.Wallpapers
import androidx.compose.ui.unit.dp
import com.chouten.app.data.ChoutenSetting
import com.chouten.app.data.Preferences

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
package com.chouten.app.ui.views.settingsPage

import android.util.Log
import androidx.compose.runtime.*
import androidx.compose.runtime.snapshots.SnapshotStateMap
import androidx.core.os.toPersistableBundle
import androidx.lifecycle.ViewModel
import com.chouten.app.data.ChoutenSetting
import com.chouten.app.data.Preferences
import com.chouten.app.preferenceEditor
import com.chouten.app.preferenceHandler
import kotlin.reflect.KParameter
import kotlin.reflect.full.declaredMemberProperties
import kotlin.reflect.full.declaredMembers
import kotlin.reflect.full.memberProperties
import kotlin.reflect.full.valueParameters
import kotlin.reflect.typeOf

enum class SettingType {
ENUM,
Expand Down

0 comments on commit 466ba36

Please sign in to comment.