mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-03-30 19:30:07 +02:00
remove a redundant function
This commit is contained in:
parent
14f125e808
commit
02b4de56c5
@ -155,16 +155,12 @@ class MainActivity : SimpleActivity() {
|
||||
|
||||
when (view_pager.currentItem) {
|
||||
TAB_ALARM -> getViewPagerAdapter()?.updateAlarmTabAlarmSound(newAlarmSound)
|
||||
TAB_TIMER -> updateTimerTabAlarmSound(newAlarmSound)
|
||||
TAB_TIMER -> getViewPagerAdapter()?.updateTimerTabAlarmSound(newAlarmSound)
|
||||
}
|
||||
}
|
||||
|
||||
private fun getViewPagerAdapter() = view_pager.adapter as? ViewPagerAdapter
|
||||
|
||||
fun updateTimerTabAlarmSound(alarmSound: AlarmSound) {
|
||||
getViewPagerAdapter()?.updateTimerTabAlarmSound(alarmSound)
|
||||
}
|
||||
|
||||
private fun initFragments() {
|
||||
view_pager.adapter = ViewPagerAdapter(supportFragmentManager)
|
||||
view_pager.onPageChangeListener {
|
||||
|
Loading…
x
Reference in New Issue
Block a user