Progressed with the Stundenplan

Progressed with the TimeTableSetupActivity -> (nearly done, only individual day setup left)
hardly progressed with the StundenplanActivity
switching back to Desktop tomorrow evening (progress from holidays)
This commit is contained in:
Matthias
2024-05-31 23:29:52 +02:00
parent 344aa1ef9f
commit ac7ce0ad3d
2 changed files with 312 additions and 80 deletions

View File

@@ -45,8 +45,7 @@ class StundenplanActivity : ComponentActivity() {
super.onCreate(savedInstanceState)
val sharedPreferences = this.getSharedPreferences("TimeTable", Context.MODE_PRIVATE)
val maxLessons = sharedPreferences.getString("maxLessons", "").toString()
val lessonLength = sharedPreferences.getString("lessonLength", "").toString()
val setupDone = sharedPreferences.getBoolean("setupDone", false)
setContent {
CleverClassTheme {
@@ -54,11 +53,9 @@ class StundenplanActivity : ComponentActivity() {
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colorScheme.background
) {
println(maxLessons)
//println(lessonLength)
if (maxLessons.isEmpty() || lessonLength.isEmpty()) {
if (!setupDone) {
val intent = Intent(this@StundenplanActivity, TimeTableSetupActivity::class.java).apply {
putExtra(TimeTableSetupActivity.TYPE_KEY, "FirstSetup")
putExtra(TimeTableSetupActivity.TYPE_KEY, "TimeSetup")
}
startActivity(intent)
}