shutdown observer report.
authorTrillGates <williamtrillgates@gmail.com>
Wed, 4 Aug 2021 07:45:36 +0000 (15:45 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Wed, 4 Aug 2021 07:45:36 +0000 (15:45 +0800)
app/src/main/java/com/enqualcomm/support/service/ShutdownFlagObserver.java
app/src/main/java/com/ic/protocols/protocol_s123.java

index 506dca0..1814516 100644 (file)
@@ -28,9 +28,8 @@ public class ShutdownFlagObserver extends ContentObserver {
             Cursor query = mResolver.query(Uri.parse(ICGlobalSettingsProvider.SETTINGS),
                     new String[]{ICDatabaseHelper.sValue},
                     ICDatabaseHelper.sKey + "=?",
-                    new String[]{"shutdown_flag"},
+                    new String[]{"shutdown_action_flag"},
                     null);
-
             if (query != null) {
                 if (query.moveToNext()) {
                     String isShutDown = query.getString(0);
index 77a88ed..0120bb2 100644 (file)
@@ -3658,7 +3658,7 @@ public class protocol_s123 {
         //修改数据库里的关机值
         ContentResolver resolver = mRuntime.getContextProxy().getResolver();
         ContentValues values = new ContentValues();
-        values.put(ICDatabaseHelper.sKey, "shutdown_flag");
+        values.put(ICDatabaseHelper.sKey, "shutdown_action_flag");
         values.put(ICDatabaseHelper.sValue, "false");
         resolver.insert(Uri.parse(ICGlobalSettingsProvider.SETTINGS), values);
         //执行关机操作