mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-09-03 19:37:56 +00:00
Don't finish() to allow recreate
when orientation change is on foot
This commit is contained in:
@@ -161,6 +161,14 @@ public class RouterActivity extends AppCompatActivity {
|
|||||||
disposables.clear();
|
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) {
|
private void handleUrl(final String url) {
|
||||||
disposables.add(Observable
|
disposables.add(Observable
|
||||||
.fromCallable(() -> {
|
.fromCallable(() -> {
|
||||||
|
Reference in New Issue
Block a user