Back button works weirdly in Local Repo
Steps to reproduce:
- Kill the app from memory (swipe it in the recent apps list)
- Enter F-Droid and the Local Repo activity
- Disable the local repo by unticking the tick box at the top
- Press back: Nothing happens
- Press back again: Hangs for a few seconds
Those few seconds are sometimes longer and can get the app to get an App-Not-Responding (ANR) dialog.
Logcat shows nothing.
Possibly related, F-Droid sometimes crashes when tinkering with local repos with jmdns enabled. Haven't been able to reproduce it yet:
java.lang.IllegalStateException: A service information can only be registered with a single instamce of JmDNS.
at javax.jmdns.impl.JmDNSImpl.registerService(JmDNSImpl.java:1005)
at org.fdroid.fdroid.localrepo.LocalRepoService$5.run(LocalRepoService.java:239)