mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-23 04:33:54 -04:00
Refactor: Remove overridden onBackPressed()
- onDestroy() already handles cancelling async tasks
This commit is contained in:
parent
0a9126d940
commit
c590ebabe9
@ -583,9 +583,4 @@ public class LocalFileTransferActivity extends AppCompatActivity implements
|
||||
super.onDestroy();
|
||||
cancelAsyncTasks();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
wifiDirectManager.closeLocalFileTransferActivity();
|
||||
}
|
||||
}
|
||||
|
@ -212,6 +212,7 @@ public class WifiDirectManager implements WifiP2pManager.ChannelListener, WifiP2
|
||||
});
|
||||
}
|
||||
|
||||
// TODO: Shift async tasks to WDM and handle cleanup from here itself
|
||||
public void closeLocalFileTransferActivity() {
|
||||
activity.cancelAsyncTasks();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user