diff --git a/app/build.gradle b/app/build.gradle index fa40b1d..5917ca7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "cn.moon.ql" minSdk 24 targetSdk 33 - versionCode 107 - versionName "1.0.7" + versionCode 108 + versionName "1.0.8" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/cn/moon/ql/util/CookieUtil.java b/app/src/main/java/cn/moon/ql/util/CookieUtil.java index 6fcf175..38c0ec4 100644 --- a/app/src/main/java/cn/moon/ql/util/CookieUtil.java +++ b/app/src/main/java/cn/moon/ql/util/CookieUtil.java @@ -1,11 +1,9 @@ package cn.moon.ql.util; import android.text.TextUtils; -import android.webkit.CookieManager; import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -14,7 +12,7 @@ public class CookieUtil { public static Map parse(String cookies) { String[] cookiesArr = cookies.split(";"); - Map map = new HashMap<>(); + Map map = new LinkedHashMap<>(); for (String ck : cookiesArr) { String[] arr = ck.split("="); if (arr.length == 2) { @@ -35,7 +33,7 @@ public static Map parse(String cookies) { public static Map parse(String cookies,String... keys) { Map map = parse(cookies); - Map newMap = new HashMap<>(); + Map newMap = new LinkedHashMap<>(); for (String key : keys) { String value = map.get(key); if(!TextUtils.isEmpty(value)){ diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index d9986d3..0df5223 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -40,7 +40,7 @@ android:id="@+id/ql_env_name" android:layout_width="200dp" android:layout_height="wrap_content" - android:hint="变量名" + android:hint="自定义变量名" android:inputType="text" />