This commit is contained in:
parent
65943334b1
commit
f7def3a7f6
|
|
@ -93,6 +93,10 @@ public class CallBackResolution {
|
||||||
com.stand.standapp.MainActivity.onPttLoginSuccess();
|
com.stand.standapp.MainActivity.onPttLoginSuccess();
|
||||||
com.stand.standapp.MainActivity.executeJs("updatePttLoginStatus('" + pttLoginStatus + "','" + pttLoginId + "')");
|
com.stand.standapp.MainActivity.executeJs("updatePttLoginStatus('" + pttLoginStatus + "','" + pttLoginId + "')");
|
||||||
}
|
}
|
||||||
|
if ("01".equals(errorNum)) {
|
||||||
|
com.stand.standapp.MainActivity.onPttLoginSuccess();
|
||||||
|
com.stand.standapp.MainActivity.executeJs("updatePttLoginStatus('02','" + pttLoginId + "')");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "a2"://账号有视频功能
|
case "a2"://账号有视频功能
|
||||||
|
|
|
||||||
|
|
@ -516,12 +516,12 @@ class MainActivity : AppCompatActivity() {
|
||||||
// } catch (e: Exception) {
|
// } catch (e: Exception) {
|
||||||
// Timber.tag("MainActivity").e(e, "PTT cancel failed")
|
// Timber.tag("MainActivity").e(e, "PTT cancel failed")
|
||||||
// }
|
// }
|
||||||
// try {
|
try {
|
||||||
// com.example.kingway.ptt.SendAtUtil.toLogout()
|
com.example.kingway.ptt.SendAtUtil.toLogout()
|
||||||
// Timber.tag("MainActivity").i("PTT logout sent")
|
Timber.tag("MainActivity").i("PTT logout sent")
|
||||||
// } catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
// Timber.tag("MainActivity").e(e, "PTT logout failed")
|
Timber.tag("MainActivity").e(e, "PTT logout failed")
|
||||||
// }
|
}
|
||||||
|
|
||||||
// 2. Stop GPIO listening
|
// 2. Stop GPIO listening
|
||||||
try {
|
try {
|
||||||
|
|
@ -548,7 +548,6 @@ class MainActivity : AppCompatActivity() {
|
||||||
// 3. Destroy/release AudioTrack in PTT Native
|
// 3. Destroy/release AudioTrack in PTT Native
|
||||||
try {
|
try {
|
||||||
com.stand.standapp.MyApplication.pNative?.destory()
|
com.stand.standapp.MyApplication.pNative?.destory()
|
||||||
com.stand.standapp.MyApplication.pNative = null
|
|
||||||
Timber.tag("MainActivity").i("PTT native AudioTrack destroyed")
|
Timber.tag("MainActivity").i("PTT native AudioTrack destroyed")
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Timber.tag("MainActivity").e(e, "PTT native destroy failed")
|
Timber.tag("MainActivity").e(e, "PTT native destroy failed")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue