Skip to content

Commit

Permalink
fix(android) don't re-launch activity after closing PiP
Browse files Browse the repository at this point in the history
Just remain in the background. The ongoing notification can be used to
get back to the meeting.

NOTE: This behavior only affected the app, not the SDK.
  • Loading branch information
saghul committed Aug 13, 2024
1 parent 21eac41 commit a3a1a57
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions android/app/src/main/java/org/jitsi/meet/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,6 @@ public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode) {
super.onPictureInPictureModeChanged(isInPictureInPictureMode);

Log.d(TAG, "Is in picture-in-picture mode: " + isInPictureInPictureMode);

if (!isInPictureInPictureMode) {
this.startActivity(new Intent(this, getClass())
.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT));
}
}

// Helper methods
Expand Down

0 comments on commit a3a1a57

Please sign in to comment.