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 cba42a6 commit a0bfdf1Copy full SHA for a0bfdf1
1 file changed
core/main/src/main/java/com/rk/terminal/App.kt
@@ -26,14 +26,6 @@ class App : Application() {
26
}
27
return tmp
28
29
-
30
- init {
31
- GlobalScope.launch(Dispatchers.IO) {
32
- getTempDir().apply {
33
- if (exists() && listFiles().isNullOrEmpty().not()){ deleteRecursively() }
34
- }
35
36
37
38
39
@OptIn(DelicateCoroutinesApi::class)
@@ -42,6 +34,12 @@ class App : Application() {
42
application = this
43
Res.application = this
44
+ GlobalScope.launch(Dispatchers.IO) {
+ getTempDir().apply {
+ if (exists() && listFiles().isNullOrEmpty().not()){ deleteRecursively() }
40
+ }
41
+
45
//Thread.setDefaultUncaughtExceptionHandler(CrashHandler)
46
ANRWatchDog().start()
47
0 commit comments