Archived
All sheets now have the ability to scroll; a custom selectable item background has been added to clickable views to get a custom coloured ripple effect on click
This commit is contained in:
@@ -3,6 +3,7 @@ package com.denizk0461.studip.sheet
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import com.denizk0461.studip.R
|
||||
import com.denizk0461.studip.data.showToast
|
||||
import com.denizk0461.studip.data.viewBinding
|
||||
import com.denizk0461.studip.databinding.SheetAllergenConfigBinding
|
||||
import com.denizk0461.studip.model.AllergenPreferences
|
||||
@@ -100,6 +101,9 @@ class AllergenConfigSheet(
|
||||
)
|
||||
}
|
||||
|
||||
// Tell the user that saving was successful
|
||||
showToast(context, getString(R.string.allergens_config_confirmation))
|
||||
|
||||
// Close the sheet
|
||||
dismiss()
|
||||
}
|
||||
|
||||
@@ -73,6 +73,13 @@ class DevCodeSheet(
|
||||
intent.putExtras(bundle)
|
||||
})
|
||||
}
|
||||
"QkNFTExT".d64 -> {
|
||||
startActivity(Intent(context, ImageActivity::class.java).also { intent ->
|
||||
val bundle = Bundle()
|
||||
bundle.putString("img", "bcells")
|
||||
intent.putExtras(bundle)
|
||||
})
|
||||
}
|
||||
"NEVENT" -> { // nuke events
|
||||
nukeEvents()
|
||||
showToast(context, "Nuked all events")
|
||||
@@ -97,7 +104,6 @@ class DevCodeSheet(
|
||||
nukeEverything()
|
||||
showToast(context, "Nuked everything")
|
||||
}
|
||||
"HACK()" -> showToast(context, "Hack attempt unsuccessful")
|
||||
else -> showToast(context, "Code is invalid")
|
||||
}
|
||||
dismiss()
|
||||
|
||||
Reference in New Issue
Block a user