mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-04-13 09:52:14 +02:00
fixing a config value
This commit is contained in:
parent
740ec8acb2
commit
3aac7210ed
@ -102,6 +102,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
putExtra(TOGGLE_STOPWATCH, true)
|
putExtra(TOGGLE_STOPWATCH, true)
|
||||||
action = STOPWATCH_TOGGLE_ACTION
|
action = STOPWATCH_TOGGLE_ACTION
|
||||||
}
|
}
|
||||||
|
|
||||||
return ShortcutInfo.Builder(this, STOPWATCH_SHORTCUT_ID)
|
return ShortcutInfo.Builder(this, STOPWATCH_SHORTCUT_ID)
|
||||||
.setShortLabel(newEvent)
|
.setShortLabel(newEvent)
|
||||||
.setLongLabel(newEvent)
|
.setLongLabel(newEvent)
|
||||||
@ -197,9 +198,11 @@ class MainActivity : SimpleActivity() {
|
|||||||
val timerId = intent.getIntExtra(TIMER_ID, INVALID_TIMER_ID)
|
val timerId = intent.getIntExtra(TIMER_ID, INVALID_TIMER_ID)
|
||||||
viewPagerAdapter.updateTimerPosition(timerId)
|
viewPagerAdapter.updateTimerPosition(timerId)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tabToOpen == TAB_STOPWATCH) {
|
if (tabToOpen == TAB_STOPWATCH) {
|
||||||
config.toggleStopWatch = intent.getBooleanExtra(TOGGLE_STOPWATCH, false)
|
config.toggleStopwatch = intent.getBooleanExtra(TOGGLE_STOPWATCH, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
view_pager.offscreenPageLimit = TABS_COUNT - 1
|
view_pager.offscreenPageLimit = TABS_COUNT - 1
|
||||||
view_pager.currentItem = tabToOpen
|
view_pager.currentItem = tabToOpen
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user