Skip to content

Commit

Permalink
Code reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
KyuubiRan committed Feb 9, 2021
1 parent 71e9961 commit 8ca6598
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package me.kyuubiran.qqcleaner.utils


import me.kyuubiran.qqcleaner.utils.ConfigManager.CFG_CUSTOMER_CLEAN_LIST
import com.alibaba.fastjson.JSONArray
import me.kyuubiran.qqcleaner.utils.CleanManager.getFiles
import me.kyuubiran.qqcleaner.utils.CleanManager.getFullList
import me.kyuubiran.qqcleaner.utils.CleanManager.getHalfList
import me.kyuubiran.qqcleaner.utils.ConfigManager.CFG_AUTO_CLEAN_ENABLED
import me.kyuubiran.qqcleaner.utils.ConfigManager.CFG_CLEAN_DELAY
import me.kyuubiran.qqcleaner.utils.ConfigManager.CFG_CURRENT_CLEANED_TIME
import me.kyuubiran.qqcleaner.utils.ConfigManager.CFG_CUSTOMER_CLEAN_LIST
import me.kyuubiran.qqcleaner.utils.ConfigManager.CFG_CUSTOMER_CLEAN_MODE
import me.kyuubiran.qqcleaner.utils.ConfigManager.CFG_TOTAL_CLEANED_SIZE
import me.kyuubiran.qqcleaner.utils.ConfigManager.getConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject
import java.io.File
import java.io.FileOutputStream
import java.io.OutputStreamWriter
import java.lang.Exception
import kotlin.concurrent.thread

object ConfigManager {
Expand Down
35 changes: 16 additions & 19 deletions app/src/main/res/xml/root_preferences.xml
Original file line number Diff line number Diff line change
@@ -1,76 +1,73 @@
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceCategory
app:title="@string/auto_clean_switch_title">
<PreferenceCategory app:title="@string/auto_clean_switch_title">
<SwitchPreferenceCompat
app:key="AutoClean"
app:title="@string/auto_clean_switch_key"
app:summary="@string/auto_clean_switch_hint"/>
app:summary="@string/auto_clean_switch_hint" />
<ListPreference
app:entries="@array/auto_clean_mode"
app:entryValues="@array/auto_clean_mode_value"
app:defaultValue="half_mode"
app:key="AutoCleanMode"
app:title="@string/auto_clean_mode"
app:summary="@string/auto_clean_mode_hint"
app:isPreferenceVisible="false"/>
app:isPreferenceVisible="false" />
<Preference
app:key="CleanDelay"
app:title="@string/auto_clean_delay"
app:summary="@string/auto_clean_delay_hint"
app:isPreferenceVisible="false"/>
app:isPreferenceVisible="false" />
<Preference
app:key="CleanedTime"
app:title="@string/auto_clean_time"
app:summary="@string/no_cleaned_his_hint"
app:isPreferenceVisible="false"/>
app:isPreferenceVisible="false" />
</PreferenceCategory>

<PreferenceCategory
app:title="@string/clean_title">
<PreferenceCategory app:title="@string/clean_title">
<Preference
app:key="HalfClean"
app:title="@string/clean_half"
app:summary="@string/clean_half_hint"/>
app:summary="@string/clean_half_hint" />
<Preference
app:key="FullClean"
app:title="@string/clean_full"
app:summary="@string/clean_full_hint"/>
app:summary="@string/clean_full_hint" />
<MultiSelectListPreference
app:entries="@array/customer_clean_list"
app:entryValues="@array/customer_clean_list_value"
app:key="CustomerClean"
app:title="@string/clean_cus"
app:summary="@string/clean_cus_hint"/>
app:summary="@string/clean_cus_hint" />
<Preference
app:key="DoCustomerClean"
app:title="@string/do_clean_cus"
app:summary="@string/do_clean_cus_hint"/>
app:summary="@string/do_clean_cus_hint" />
</PreferenceCategory>
<PreferenceCategory
app:title="@string/other_title">
<PreferenceCategory app:title="@string/other_title">
<Preference
app:key="CleanedHistory"
app:title="@string/enable_cleaned_history"
app:summary="@string/no_cleaned_his_hint"/>
app:summary="@string/no_cleaned_his_hint" />
<Preference
app:key="ModuleInfo"
app:title="@string/module_version"
app:summary="@string/version_name"/>
app:summary="@string/version_name" />
<Preference
app:key="GotoGithub"
app:title="@string/goto_github"
app:summary="@string/author"/>
app:summary="@string/author" />
<Preference
app:key="JoinQQGroup"
app:title="@string/join_qq_group"
app:summary="@string/join_qq_group_hint" />
<Preference
app:key="SupportMe"
app:title="@string/support_me"
app:summary="@string/support_me_hint"/>
app:summary="@string/support_me_hint" />
<Preference
app:key="About"
app:title="@string/about"
app:summary="@string/about_hint"/>
app:summary="@string/about_hint" />
</PreferenceCategory>
</PreferenceScreen>

0 comments on commit 8ca6598

Please sign in to comment.