kopia lustrzana https://github.com/TeamNewPipe/NewPipe
Don't finish() to allow recreate
when orientation change is on footpull/9135/head
rodzic
400ee808e0
commit
73e32889b6
|
@ -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(() -> {
|
||||
|
|
Ładowanie…
Reference in New Issue