@ -20,7 +20,7 @@ class App : CommonApplication() {
// LztekUtil.setObject(Lztek.create(this))
CrashHandler.getInstance().init(this)
ipConfig()
GPIOUtils.openCamera()
GPIOUtils.closeCamera()
tryFixDbData()
}
@ -25,7 +25,7 @@ object BatteryHelper {
val level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, -1)!!
val status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
val isCharging =
(status == BatteryManager.BATTERY_STATUS_CHARGING)
(status == BatteryManager.BATTERY_STATUS_CHARGING || status == BatteryManager.BATTERY_STATUS_FULL)
notifyUser(level)
mLevel = level
Log.i(
@ -71,6 +71,7 @@
android:focusable="true"
android:gravity="center"
android:text="@string/cancel"
android:nextFocusLeft="@id/tv_cancel"
android:textColor="@color/white_30"
android:textSize="@dimen/_36dp" />
@ -84,6 +85,7 @@
android:text="@string/confirm"
android:nextFocusRight="@id/tv_confirm"
android:textColor="@color/white"
</RelativeLayout>