Commit 046d9fe6 authored by Mygod's avatar Mygod

Refine code style

parent 0939f5b4
...@@ -150,12 +150,10 @@ class ProfileConfigFragment : PreferenceFragmentCompat(), ...@@ -150,12 +150,10 @@ class ProfileConfigFragment : PreferenceFragmentCompat(),
override fun onDisplayPreferenceDialog(preference: Preference) { override fun onDisplayPreferenceDialog(preference: Preference) {
when (preference.key) { when (preference.key) {
Key.plugin -> { Key.plugin -> BottomSheetPreferenceDialogFragment().apply {
BottomSheetPreferenceDialogFragment().apply { setArg(Key.plugin)
setArg(Key.plugin) setTargetFragment(this@ProfileConfigFragment, 0)
setTargetFragment(this@ProfileConfigFragment, 0) }.show(fragmentManager ?: return, Key.plugin)
}.show(fragmentManager ?: return, Key.plugin)
}
Key.pluginConfigure -> { Key.pluginConfigure -> {
val intent = PluginManager.buildIntent(pluginConfiguration.selected, PluginContract.ACTION_CONFIGURE) val intent = PluginManager.buildIntent(pluginConfiguration.selected, PluginContract.ACTION_CONFIGURE)
if (intent.resolveActivity(requireContext().packageManager) == null) showPluginEditor() else { if (intent.resolveActivity(requireContext().packageManager) == null) showPluginEditor() else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment