Check validity of newly added record key 'UsedTime' 12/102112/1
authorSomin Kim <somin926.kim@samsung.com>
Mon, 5 Dec 2016 04:41:07 +0000 (13:41 +0900)
committerSomin Kim <somin926.kim@samsung.com>
Mon, 5 Dec 2016 04:41:07 +0000 (13:41 +0900)
Change-Id: Ib98b3cc64bfc4d1dcd1f842be7b29371b93655ec
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
src/context_history.cpp

index 0a0982a..1cb07a0 100644 (file)
@@ -386,7 +386,8 @@ bool check_record_key_data_type(int type, std::string key)
                        key.compare(CONTEXT_HISTORY_HOUR_OF_DAY) == 0 ||
                        key.compare(CONTEXT_HISTORY_AUDIO_JACK) == 0 ||
                        key.compare(CONTEXT_HISTORY_SYSTEM_VOLUME) == 0 ||
-                       key.compare(CONTEXT_HISTORY_MEDIA_VOLUME) == 0) {
+                       key.compare(CONTEXT_HISTORY_MEDIA_VOLUME) == 0 ||
+                       key.compare(KEY_USED_TIME) == 0) {              // Internal use for RecentBatteryUsage
                return (type == TYPE_NUMERIC);
        }