Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldrudell committed Jul 16, 2023
1 parent 74ba214 commit c8286b5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import com.dimowner.audiorecorder.util.RippleUtils
import com.dimowner.audiorecorder.util.TimeUtils
import com.dimowner.audiorecorder.util.isVisible
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.collect
import timber.log.Timber
import java.io.File

Expand Down Expand Up @@ -359,6 +358,12 @@ class MoveRecordsActivity : Activity() {
clear()
}

// 230716 should be uopgraded for Android 13…
// in AndroidManifest.xml, Application tag, add property android:enableOnBackInvokedCallback="true"
// make Activity AppCompatActivity
// in onCreate: onBackPressedDispatcher.addCallback(this,onBackPressedCallback)
// write the callback
// does not seem to work right yet, unless Activity 1.6+ is used
override fun onBackPressed() {
super.onBackPressed()
clear()
Expand Down

0 comments on commit c8286b5

Please sign in to comment.