Hotfix invalid closed state

This commit is contained in:
Kelvin K
2025-12-03 18:06:38 -06:00
parent 1bb0cdc405
commit 035125d0f8
2 changed files with 2 additions and 1 deletions
@@ -1299,6 +1299,7 @@ class MainActivity : AppCompatActivity, IWithResultLauncher {
navigate(last.first, last.second, false, true);
} else {
if (_fragVideoDetail.state == VideoDetailFragment.State.CLOSED) {
Logger.i(TAG, "Closing activity because _fragVideoDetail.state == closed");
finish();
} else {
//UIDialogs.toast("Grayjay continues in background because of an open video.")
@@ -373,7 +373,7 @@ class VideoDetailFragment() : MainFragment() {
}
else if (state != State.MAXIMIZED && progress > 0.9) {
if (_isInitialMaximize) {
state = State.CLOSED;
//state = State.CLOSED; Causes issues? might no longer be needed
_isInitialMaximize = false;
}
else {