Browse Source

android: make sure we left the current meeting when the activity is destroyed

If the user swipes the activity from the recents list there is no other chance,
onDestroy gets called directly.
master
Saúl Ibarra Corretgé 6 years ago
parent
commit
ddaa22048f

+ 7
- 0
android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetActivity.java View File

71
         }
71
         }
72
     }
72
     }
73
 
73
 
74
+    @Override
75
+    public void onDestroy() {
76
+        leave();
77
+
78
+        super.onDestroy();
79
+    }
80
+
74
     @Override
81
     @Override
75
     public void finish() {
82
     public void finish() {
76
         leave();
83
         leave();

Loading…
Cancel
Save