mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-25 16:07:20 +00:00
fix: set current pager item to 0 on scan
This commit is contained in:
parent
4f74d46b17
commit
cf373f3a93
@ -17,8 +17,6 @@ import kotlinx.android.synthetic.main.activity_create_private_chat.*
|
|||||||
import kotlinx.android.synthetic.main.activity_create_private_chat.tabLayout
|
import kotlinx.android.synthetic.main.activity_create_private_chat.tabLayout
|
||||||
import kotlinx.android.synthetic.main.activity_create_private_chat.viewPager
|
import kotlinx.android.synthetic.main.activity_create_private_chat.viewPager
|
||||||
import kotlinx.android.synthetic.main.activity_link_device.*
|
import kotlinx.android.synthetic.main.activity_link_device.*
|
||||||
import kotlinx.android.synthetic.main.activity_settings.*
|
|
||||||
import kotlinx.android.synthetic.main.activity_settings.loader
|
|
||||||
import kotlinx.android.synthetic.main.fragment_recovery_phrase.*
|
import kotlinx.android.synthetic.main.fragment_recovery_phrase.*
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
@ -86,6 +84,7 @@ class LinkDeviceActivity : BaseActionBarActivity(), ScanQRCodeWrapperFragmentDel
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun continueWithSeed(seed: ByteArray) {
|
private fun continueWithSeed(seed: ByteArray) {
|
||||||
|
viewPager.currentItem = 0 // reset view to the main one
|
||||||
restoreJob?.cancel()
|
restoreJob?.cancel()
|
||||||
restoreJob = lifecycleScope.launch {
|
restoreJob = lifecycleScope.launch {
|
||||||
// RestoreActivity handles seed this way
|
// RestoreActivity handles seed this way
|
||||||
|
Loading…
x
Reference in New Issue
Block a user