Compare commits

..

3 Commits

3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,6 @@
package pl.szczodrzynski.edziennik package pl.szczodrzynski.edziennik
import android.annotation.SuppressLint
import android.app.ActivityManager import android.app.ActivityManager
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
@ -1211,9 +1212,9 @@ class MainActivity : AppCompatActivity(), CoroutineScope {
drawer.addProfileSettings(*drawerProfiles.toTypedArray()) drawer.addProfileSettings(*drawerProfiles.toTypedArray())
} }
@SuppressLint("MissingSuperCall")
@Deprecated("Deprecated in Java") @Deprecated("Deprecated in Java")
override fun onBackPressed() { override fun onBackPressed() {
super.onBackPressed()
if (App.config.ui.openDrawerOnBackPressed) { if (App.config.ui.openDrawerOnBackPressed) {
if (drawer.isOpen) if (drawer.isOpen)
navigateUp() navigateUp()

View File

@ -391,7 +391,7 @@ open class VulcanHebe(open val data: DataVulcan, open val lastSync: Long?) {
fun apiGetList( fun apiGetList(
tag: String, tag: String,
endpoint: String, endpoint: String,
filterType: HebeFilterType = HebeFilterType.BY_PUPIL, filterType: HebeFilterType? = null,
dateFrom: Date? = null, dateFrom: Date? = null,
dateTo: Date? = null, dateTo: Date? = null,
lastSync: Long? = null, lastSync: Long? = null,
@ -424,6 +424,7 @@ open class VulcanHebe(open val data: DataVulcan, open val lastSync: Long?) {
HebeFilterType.BY_MESSAGEBOX -> { HebeFilterType.BY_MESSAGEBOX -> {
query["box"] = messageBox ?: data.messageBoxKey ?: "" query["box"] = messageBox ?: data.messageBoxKey ?: ""
} }
else -> {}
} }
if (dateFrom != null) if (dateFrom != null)

View File

@ -47,9 +47,7 @@ class SettingsAboutCard(util: SettingsUtil) : SettingsCard(util), CoroutineScope
items = ::getItems, items = ::getItems,
itemsMore = ::getItemsMore, itemsMore = ::getItemsMore,
backgroundColor = R.attr.colorPrimaryContainer.resolveAttr(activity) backgroundColor = R.attr.colorPrimaryContainer.resolveAttr(activity)
).also { )
it.items.addAll(getItems(it))
}
private val versionDetailsItem by lazy { private val versionDetailsItem by lazy {
util.createActionItem( util.createActionItem(