Compare commits

...

3 Commits

3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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