File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed
app/src/main/java/com/wirelessalien/zipxtract/service Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,8 @@ class Archive7zService : Service() {
231
231
e.printStackTrace()
232
232
showErrorNotification(e.message ? : getString(R .string.general_error_msg))
233
233
sendLocalBroadcast(Intent (ACTION_ARCHIVE_ERROR ).putExtra(EXTRA_ERROR_MESSAGE , e.message))
234
+ } finally {
235
+ filesDir.deleteRecursively()
234
236
}
235
237
}
236
238
Original file line number Diff line number Diff line change @@ -268,6 +268,8 @@ class ArchiveSplitZipService : Service() {
268
268
e.printStackTrace()
269
269
showErrorNotification(e.message ? : getString(R .string.general_error_msg))
270
270
sendLocalBroadcast(Intent (ACTION_ARCHIVE_ERROR ).putExtra(EXTRA_ERROR_MESSAGE , e.message))
271
+ } finally {
272
+ filesDir.deleteRecursively()
271
273
}
272
274
}
273
275
Original file line number Diff line number Diff line change @@ -203,6 +203,8 @@ class ArchiveTarService : Service() {
203
203
e.printStackTrace()
204
204
showErrorNotification(e.message ? : getString(R .string.general_error_msg))
205
205
sendLocalBroadcast(Intent (ACTION_ARCHIVE_ERROR ).putExtra(EXTRA_ERROR_MESSAGE , e.message))
206
+ } finally {
207
+ filesDir.deleteRecursively()
206
208
}
207
209
}
208
210
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import android.content.Intent
25
25
import android.os.Build
26
26
import android.os.Environment
27
27
import android.os.IBinder
28
- import android.util.Log
29
28
import androidx.core.app.NotificationCompat
30
29
import androidx.localbroadcastmanager.content.LocalBroadcastManager
31
30
import androidx.preference.PreferenceManager
@@ -272,6 +271,8 @@ class ArchiveZipService : Service() {
272
271
e.printStackTrace()
273
272
showErrorNotification(e.message ? : getString(R .string.general_error_msg))
274
273
sendLocalBroadcast(Intent (ACTION_ARCHIVE_ERROR ).putExtra(EXTRA_ERROR_MESSAGE , e.message))
274
+ } finally {
275
+ filesDir.deleteRecursively()
275
276
}
276
277
}
277
278
You can’t perform that action at this time.
0 commit comments