Skip to content

Commit

Permalink
boot dialogs: upd order
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliskov committed Feb 2, 2023
1 parent 03861a5 commit de46399
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import androidx.annotation.NonNull;
import com.liskovsoft.sharedutils.helpers.Helpers;
import com.liskovsoft.smartyoutubetv2.common.prefs.AppPrefs;
import com.liskovsoft.smartyoutubetv2.common.prefs.PlayerData;
import com.liskovsoft.smartyoutubetv2.common.utils.Utils;

import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ public void unhold() {
}

public void start() {
startBackupPresenter();
}

private void startBackupPresenter() {
QuickRestorePresenter quickRestorePresenter = QuickRestorePresenter.instance(getContext());
quickRestorePresenter.setOnDone(this::startUpdatePresenter);
quickRestorePresenter.start();
quickRestorePresenter.unhold();
startUpdatePresenter();
}

private void startUpdatePresenter() {
AppUpdatePresenter updatePresenter = AppUpdatePresenter.instance(getContext());
updatePresenter.setOnDone(this::startBridgePresenter);
updatePresenter.setOnDone(this::startBackupPresenter);
updatePresenter.start(false);
updatePresenter.unhold();
}

private void startBackupPresenter() {
QuickRestorePresenter quickRestorePresenter = QuickRestorePresenter.instance(getContext());
quickRestorePresenter.setOnDone(this::startBridgePresenter);
quickRestorePresenter.start();
quickRestorePresenter.unhold();
}

private void startBridgePresenter() {
ATVBridgePresenter atvPresenter = ATVBridgePresenter.instance(getContext());
atvPresenter.start();
Expand Down

0 comments on commit de46399

Please sign in to comment.