1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-22 21:23:19 +00:00

Don't finish() to allow recreate

when orientation change is on foot
This commit is contained in:
devlearner 2022-10-16 01:01:19 +08:00 committed by Stypox
parent 400ee808e0
commit 73e32889b6
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -161,6 +161,14 @@ public class RouterActivity extends AppCompatActivity {
disposables.clear();
}
@Override
public void finish() {
// allow the activity to recreate in case orientation changes
if (!isChangingConfigurations()) {
super.finish();
}
}
private void handleUrl(final String url) {
disposables.add(Observable
.fromCallable(() -> {