forked from github/wulkanowy-mirror
Update dependencies (#1448)
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
package io.github.wulkanowy.services.alarm
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.app.PendingIntent
|
||||
import android.app.PendingIntent.FLAG_UPDATE_CURRENT
|
||||
import android.content.Context
|
||||
@ -20,6 +19,7 @@ import io.github.wulkanowy.ui.modules.main.MainView
|
||||
import io.github.wulkanowy.utils.flowWithResource
|
||||
import io.github.wulkanowy.utils.getCompatColor
|
||||
import io.github.wulkanowy.utils.toLocalDateTime
|
||||
import kotlinx.coroutines.DelicateCoroutinesApi
|
||||
import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
@ -50,7 +50,7 @@ class TimetableNotificationReceiver : HiltBroadcastReceiver() {
|
||||
const val LESSON_END = "end_timestamp"
|
||||
}
|
||||
|
||||
@SuppressLint("CheckResult")
|
||||
@OptIn(DelicateCoroutinesApi::class)
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
super.onReceive(context, intent)
|
||||
Timber.d("Receiving intent... ${intent.toUri(0)}")
|
||||
|
@ -230,8 +230,8 @@ class MainActivity : BaseActivity<MainPresenter, ActivityMainBinding>(), MainVie
|
||||
.setIcon(R.drawable.ic_main_more)
|
||||
}
|
||||
selectedItemId = startMenuIndex
|
||||
setOnNavigationItemSelectedListener { presenter.onTabSelected(it.itemId, false) }
|
||||
setOnNavigationItemReselectedListener { presenter.onTabSelected(it.itemId, true) }
|
||||
setOnItemSelectedListener { presenter.onTabSelected(it.itemId, false) }
|
||||
setOnItemReselectedListener { presenter.onTabSelected(it.itemId, true) }
|
||||
}
|
||||
|
||||
with(navController) {
|
||||
|
@ -23,8 +23,6 @@ import io.github.wulkanowy.ui.base.BaseActivity
|
||||
import io.github.wulkanowy.utils.dpToPx
|
||||
import io.github.wulkanowy.utils.hideSoftInput
|
||||
import io.github.wulkanowy.utils.showSoftInput
|
||||
import kotlinx.coroutines.FlowPreview
|
||||
import timber.log.Timber
|
||||
import javax.inject.Inject
|
||||
|
||||
@AndroidEntryPoint
|
||||
@ -67,7 +65,6 @@ class SendMessageActivity : BaseActivity<SendMessagePresenter, ActivitySendMessa
|
||||
override val messageSuccess: String
|
||||
get() = getString(R.string.message_send_successful)
|
||||
|
||||
@FlowPreview
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
public override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
@ -221,6 +218,7 @@ class SendMessageActivity : BaseActivity<SendMessagePresenter, ActivitySendMessa
|
||||
.show()
|
||||
}
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
override fun clearDraft() {
|
||||
formRecipientsData = binding.sendMessageTo.addedChipItems as List<RecipientChipItem>
|
||||
presenter.clearDraft()
|
||||
|
@ -1,6 +1,5 @@
|
||||
package io.github.wulkanowy.ui.modules.message.send
|
||||
|
||||
import io.github.wulkanowy.R
|
||||
import io.github.wulkanowy.data.Status
|
||||
import io.github.wulkanowy.data.db.entities.Message
|
||||
import io.github.wulkanowy.data.db.entities.Recipient
|
||||
@ -41,7 +40,6 @@ class SendMessagePresenter @Inject constructor(
|
||||
|
||||
private val messageUpdateChannel = Channel<Unit>()
|
||||
|
||||
@FlowPreview
|
||||
fun onAttachView(view: SendMessageView, message: Message?, reply: Boolean?) {
|
||||
super.onAttachView(view)
|
||||
view.initView()
|
||||
|
@ -21,7 +21,6 @@ import io.github.wulkanowy.ui.modules.message.MessageFragment
|
||||
import io.github.wulkanowy.ui.modules.message.preview.MessagePreviewFragment
|
||||
import io.github.wulkanowy.ui.widgets.DividerItemDecoration
|
||||
import io.github.wulkanowy.utils.getThemeAttrColor
|
||||
import kotlinx.coroutines.FlowPreview
|
||||
import javax.inject.Inject
|
||||
|
||||
@AndroidEntryPoint
|
||||
@ -58,7 +57,6 @@ class MessageTabFragment : BaseFragment<FragmentMessageTabBinding>(R.layout.frag
|
||||
setHasOptionsMenu(true)
|
||||
}
|
||||
|
||||
@FlowPreview
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
binding = FragmentMessageTabBinding.bind(view)
|
||||
|
@ -44,7 +44,6 @@ class MessageTabPresenter @Inject constructor(
|
||||
|
||||
private val searchChannel = Channel<String>()
|
||||
|
||||
@FlowPreview
|
||||
fun onAttachView(view: MessageTabView, folder: MessageFolder) {
|
||||
super.onAttachView(view)
|
||||
view.initView()
|
||||
@ -178,7 +177,7 @@ class MessageTabPresenter @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
@FlowPreview
|
||||
@OptIn(FlowPreview::class)
|
||||
private fun initializeSearchStream() {
|
||||
launch {
|
||||
searchChannel.consumeAsFlow()
|
||||
|
@ -35,6 +35,7 @@ import io.github.wulkanowy.utils.nextSchoolDay
|
||||
import io.github.wulkanowy.utils.nickOrName
|
||||
import io.github.wulkanowy.utils.previousSchoolDay
|
||||
import io.github.wulkanowy.utils.toFormattedString
|
||||
import kotlinx.coroutines.DelicateCoroutinesApi
|
||||
import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.launch
|
||||
import timber.log.Timber
|
||||
@ -81,6 +82,7 @@ class TimetableWidgetProvider : HiltBroadcastReceiver() {
|
||||
"timetable_widget_current_theme_$appWidgetId"
|
||||
}
|
||||
|
||||
@OptIn(DelicateCoroutinesApi::class)
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
super.onReceive(context, intent)
|
||||
GlobalScope.launch {
|
||||
|
Reference in New Issue
Block a user