mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-02-01 10:41:39 -05:00
84f150ed6a741ae8fd4e78a100f840e2f174fc40
This moves the download thread from an anonymous inner class to the class Downloader, which isn't tied to the activity. The state of the progress dialog is updated by polling the download thread at regular intervals - message passing seemed to need a bunch of synchronized methods and shared variables anyway (to ensure that all messages reached the right activity) so it was much simpler to just take it out. But maybe my approach is completely backward.
Description
Languages
Kotlin
49.8%
Java
48.6%
Python
0.9%
Shell
0.5%
AIDL
0.1%