|
|
@ -6,6 +6,7 @@ import android.content.SharedPreferences |
|
|
|
import android.content.pm.PackageManager |
|
|
|
import android.content.pm.PackageManager |
|
|
|
import android.os.Bundle |
|
|
|
import android.os.Bundle |
|
|
|
import android.view.View |
|
|
|
import android.view.View |
|
|
|
|
|
|
|
import androidx.core.view.postDelayed |
|
|
|
import androidx.fragment.app.activityViewModels |
|
|
|
import androidx.fragment.app.activityViewModels |
|
|
|
import androidx.preference.ListPreference |
|
|
|
import androidx.preference.ListPreference |
|
|
|
import androidx.preference.Preference |
|
|
|
import androidx.preference.Preference |
|
|
@ -131,9 +132,9 @@ class OtherConfigFragment : PreferenceFragment(), |
|
|
|
setProcessTextEnable(it.getBoolean(key, true)) |
|
|
|
setProcessTextEnable(it.getBoolean(key, true)) |
|
|
|
} |
|
|
|
} |
|
|
|
PreferKey.showDiscovery, PreferKey.showRss -> postEvent(EventBus.NOTIFY_MAIN, true) |
|
|
|
PreferKey.showDiscovery, PreferKey.showRss -> postEvent(EventBus.NOTIFY_MAIN, true) |
|
|
|
PreferKey.language -> listView.postDelayed({ |
|
|
|
PreferKey.language -> listView.postDelayed(1000) { |
|
|
|
appCtx.restart() |
|
|
|
appCtx.restart() |
|
|
|
}, 1000) |
|
|
|
} |
|
|
|
PreferKey.userAgent -> listView.post { |
|
|
|
PreferKey.userAgent -> listView.post { |
|
|
|
upPreferenceSummary(PreferKey.userAgent, AppConfig.userAgent) |
|
|
|
upPreferenceSummary(PreferKey.userAgent, AppConfig.userAgent) |
|
|
|
} |
|
|
|
} |
|
|
|