Skip to content

Commit

Permalink
Do not report illegal state for Sui migration
Browse files Browse the repository at this point in the history
  • Loading branch information
0ranko0P committed Jan 31, 2022
1 parent 8f82e52 commit 467d24a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/main/java/me/ranko/autodark/ui/DarkWallpaperHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ import kotlinx.coroutines.*
import me.ranko.autodark.AutoDarkApplication
import me.ranko.autodark.R
import me.ranko.autodark.Utils.ViewUtil
import me.ranko.autodark.core.*
import me.ranko.autodark.core.DarkModeSettings
import me.ranko.autodark.core.ShizukuApi
import me.ranko.autodark.core.ShizukuStatus
import me.ranko.autodark.core.WallpaperSetterConnection
import me.ranko.autodark.model.*
import me.ranko.autodark.model.PersistableWallpaper.Companion.getWallpaperFile
import me.ranko.autodark.services.DarkLiveWallpaperService
Expand Down Expand Up @@ -253,7 +256,7 @@ class DarkWallpaperHelper private constructor(private val mContext: Context) {

ShizukuStatus.UNAUTHORIZED -> Toast.makeText(mContext, R.string.permission_failed, Toast.LENGTH_SHORT).show()

ShizukuStatus.NOT_INSTALL -> callback.onError(IllegalStateException("Shizuku uninstalled"))
ShizukuStatus.NOT_INSTALL -> callback.onError(CancellationException("Shizuku uninstalled"))
}
}

Expand Down

0 comments on commit 467d24a

Please sign in to comment.