From fd238846980b17d893d703ac8e56869bd3f23c89 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 30 十一月 2022 23:10:13 +0800
Subject: [PATCH] 哀悼模式

---
 BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java b/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java
index 932175f..58cbdff 100644
--- a/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java
+++ b/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java
@@ -138,6 +138,19 @@
     }
 
 
+    public static void saveAiDaoMode(Context context, boolean content) {
+        saveConfig("aiDaoMode", content+"", context);
+    }
+
+    public static boolean isAiDaoMode(Context context){
+        String onLine= getConfig("aiDaoMode", context);
+        if(StringUtils.isEmpty(onLine)){
+            return false;
+        }
+        return Boolean.parseBoolean(onLine);
+    }
+
+
     private static void saveConfig(String key, String value, Context context) {
         SharedPreferences.Editor editor = context.getSharedPreferences("config", Context.MODE_PRIVATE).edit();
         editor.putString(key, value);

--
Gitblit v1.8.0