Skip to content

Commit

Permalink
Don't logging error level logs at AndroidRuntime
Browse files Browse the repository at this point in the history
Error in AndroidRuntime will cause soft reboot.
  • Loading branch information
Howard20181 committed Nov 14, 2022
1 parent 30b9277 commit bbb598f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import android.os.Build
import android.provider.Settings
import android.widget.CompoundButton
import com.highcapable.yukihookapi.hook.factory.modulePrefs
import com.highcapable.yukihookapi.hook.log.loggerE
import com.highcapable.yukihookapi.hook.log.loggerW
import com.highcapable.yukihookapi.hook.param.PackageParam
import com.highcapable.yukihookapi.hook.xposed.prefs.data.PrefsData
Expand Down Expand Up @@ -131,7 +130,7 @@ object ConfigData {
runCatching {
(instance as? PackageParam)?.appContext?.also { Settings.Secure.putString(it.contentResolver, key, value) }
}.onFailure {
loggerE(msg = "Write secure settings failed", e = it)
loggerW(msg = "Write secure settings failed ${it.message}")
}
}

Expand Down Expand Up @@ -194,4 +193,4 @@ object ConfigData {
set(value) {
putBoolean(ENABLE_MATERIAL3_STYLE_APP_ERRORS_DIALOG, value)
}
}
}

0 comments on commit bbb598f

Please # to comment.