浏览代码

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 年前
父节点
当前提交
ddaa22048f
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetActivity.java

+ 7
- 0
android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetActivity.java 查看文件

@@ -71,6 +71,13 @@ public class JitsiMeetActivity extends FragmentActivity
71 71
         }
72 72
     }
73 73
 
74
+    @Override
75
+    public void onDestroy() {
76
+        leave();
77
+
78
+        super.onDestroy();
79
+    }
80
+
74 81
     @Override
75 82
     public void finish() {
76 83
         leave();

正在加载...
取消
保存