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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user