RestoreFiles: Use RESULT_SKIP when skipping
* Based on the changes done to RestoreSet in commit "Seedvault: redesign SUW activities" I2effdf5f11c8d92899f328abf0027e7bfd1a57ba Change-Id: Ie81407ee79c16d6c40a352efa846a05eac1ada37
This commit is contained in:
parent
129f8d90e5
commit
905b681059
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package com.stevesoltys.seedvault.restore
|
||||
|
||||
import android.app.Activity.RESULT_FIRST_USER
|
||||
import android.app.Activity.RESULT_OK
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
|
|
@ -34,7 +35,9 @@ internal class RestoreFilesFragment : SnapshotFragment() {
|
|||
val skipView: TextView = footer.findViewById(R.id.skipView)
|
||||
skipView.setOnClickListener {
|
||||
requireActivity().apply {
|
||||
setResult(RESULT_OK)
|
||||
// Equivalent to com.google.android.setupcompat.util.ResultCodes.RESULT_SKIP
|
||||
// SetupWizard handles this
|
||||
setResult(RESULT_FIRST_USER)
|
||||
finishAfterTransition()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue