Skip to content

Commit

Permalink
#71
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed Jun 27, 2024
1 parent ce9ebad commit 20cbcf9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/src/main/java/org/b3log/siyuan/services/BootService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class BootService : Service() {
private lateinit var mHandlerThread: HandlerThread
private lateinit var mHandler: Handler
private var webViewKey: String? = null
private val dataDir = filesDir.absolutePath
private val appDir = "$dataDir/app"
override fun onCreate() {
super.onCreate()
mHandlerThread = HandlerThread("MyHandlerThread")
Expand Down Expand Up @@ -307,8 +309,6 @@ class BootService : Service() {

private fun needUnzipAssets(): Boolean {
BuglyLog.i(TAG, "needUnzipAssets() invoked")
val dataDir = filesDir.absolutePath
val appDir = "$dataDir/app"
val appDirFile = File(appDir)
appDirFile.mkdirs()
var ret = true
Expand All @@ -330,8 +330,6 @@ class BootService : Service() {

private fun initAppAssets() {
if (needUnzipAssets()) {
val dataDir = filesDir.absolutePath
val appDir = "$dataDir/app"
val appVerFile = File(appDir, "VERSION")
BuglyLog.i(TAG, "Clearing appearance... 20%")
try {
Expand Down

0 comments on commit 20cbcf9

Please sign in to comment.