We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f79393 commit 514f592Copy full SHA for 514f592
app/src/main/java/com/termux/app/TermuxService.java
@@ -237,6 +237,18 @@ private Notification buildNotification() {
237
238
@Override
239
public void onDestroy() {
240
+ File termuxTmpDir = new File(TermuxService.PREFIX_PATH + "/tmp");
241
+
242
+ if (termuxTmpDir.exists()) {
243
+ try {
244
+ TermuxInstaller.deleteFolder(termuxTmpDir.getCanonicalFile());
245
+ } catch (Exception e) {
246
+ Log.e(EmulatorDebug.LOG_TAG, "Error while removing directory " + termuxTmpDir.getAbsolutePath(), e);
247
+ }
248
249
+ termuxTmpDir.mkdirs();
250
251
252
if (mWakeLock != null) mWakeLock.release();
253
if (mWifiLock != null) mWifiLock.release();
254
0 commit comments