mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix(terminal): cancel and release last toast to avoid memory leak in TermuxActivity
This commit is contained in:
@@ -348,6 +348,11 @@ public class TermuxActivity extends BaseIDEActivity implements ServiceConnection
|
||||
|
||||
Logger.logDebug(LOG_TAG, "onDestroy");
|
||||
|
||||
if (mLastToast != null) {
|
||||
mLastToast.cancel();
|
||||
mLastToast = null;
|
||||
}
|
||||
|
||||
if (mIsInvalidState) return;
|
||||
|
||||
if (mTermuxService != null) {
|
||||
|
||||
Reference in New Issue
Block a user