From 34f0d1927d662956202620b8036384a026ceca29 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 18 四月 2022 10:17:48 +0800
Subject: [PATCH] 风行网页播放

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

diff --git a/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java b/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java
index c21a36e..932175f 100644
--- a/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java
+++ b/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java
@@ -124,6 +124,20 @@
     }
 
 
+    public static void saveOnLining(Context context, boolean content) {
+        saveConfig("onLining", content+"", context);
+    }
+
+
+    public static boolean isOnLining(Context context) {
+        String onLine= getConfig("onLining", 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