From d81c3557994b8564855c5b1f5d1fb4da1a4f9f4c Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 23 Sep 2019 16:15:26 -0300 Subject: [PATCH] Advance a step when returning to SetupWizard from restore --- .../stevesoltys/backup/restore/RestoreProgressFragment.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/stevesoltys/backup/restore/RestoreProgressFragment.kt b/app/src/main/java/com/stevesoltys/backup/restore/RestoreProgressFragment.kt index 28d35ce4..e5805087 100644 --- a/app/src/main/java/com/stevesoltys/backup/restore/RestoreProgressFragment.kt +++ b/app/src/main/java/com/stevesoltys/backup/restore/RestoreProgressFragment.kt @@ -1,5 +1,6 @@ package com.stevesoltys.backup.restore +import android.app.Activity.RESULT_OK import android.os.Bundle import android.view.LayoutInflater import android.view.View @@ -64,7 +65,10 @@ class RestoreProgressFragment : Fragment() { activity?.window?.clearFlags(FLAG_KEEP_SCREEN_ON) }) - button.setOnClickListener { requireActivity().finishAfterTransition() } + button.setOnClickListener { + requireActivity().setResult(RESULT_OK) + requireActivity().finishAfterTransition() + } } }