Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
chore(app): clear code
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaBrighi committed Jul 9, 2023
1 parent 12f5676 commit f281551
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import android.nfc.tech.MifareClassic
import android.nfc.tech.MifareUltralight
import android.util.Log
import java.io.IOException

import java.nio.charset.Charset

/**
Expand All @@ -32,9 +31,6 @@ data class NFCTag(val rfidId: String, val rfidData: String?) {
val hexId = toHex(id)
var data: String? = null
sb.append("ID (hex): ").append(hexId).append('\n')
//sb.append("ID (reversed hex): ").append(toReversedHex(id)).append('\n')
//sb.append("ID (dec): ").append(toDec(id)).append('\n')
//sb.append("ID (reversed dec): ").append(toReversedDec(id)).append('\n')
val prefix = "android.nfc.tech."
sb.append("Technologies: ")
for (tech in tag.techList) {
Expand Down
17 changes: 0 additions & 17 deletions app/src/main/kotlin/com/intelligentbackpack/app/ui/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,14 @@ private val lightColorScheme = lightColorScheme(
secondary = Orange800,
tertiary = Color.Gray,
onPrimary = Color.White,

/* Other default colors to override
background = Color(0xFFFFFBFE),
surface = Color(0xFFFFFBFE),
onPrimary = Color.White,
onSecondary = Color.White,
onTertiary = Color.White,
onBackground = Color(0xFF1C1B1F),
onSurface = Color(0xFF1C1B1F),
*/
)

@Composable
fun IntelligentBackpackAppTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
// Dynamic color is available on Android 12+
dynamicColor: Boolean = true,
content: @Composable () -> Unit,
) {
val colorScheme = when {
/*dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
val context = LocalContext.current
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
}*/

darkTheme -> darkColorScheme
else -> lightColorScheme
}
Expand Down
8 changes: 0 additions & 8 deletions app/src/main/kotlin/com/intelligentbackpack/app/view/Home.kt
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,6 @@ fun HomePage(
selected = item == selectedItem.value,
onClick = {
item.action()
/*scope.launch {
if (item == "Logout") {
logout()
} else {
drawerState.close()
selectedItem.value = item
}
}*/
},
modifier = Modifier.padding(NavigationDrawerItemDefaults.ItemPadding),
colors = NavigationDrawerItemDefaults.colors(
Expand Down

0 comments on commit f281551

Please sign in to comment.