|
|
@ -7,10 +7,11 @@ import android.view.MenuItem |
|
|
|
import android.view.View |
|
|
|
import android.view.View |
|
|
|
import androidx.appcompat.widget.Toolbar |
|
|
|
import androidx.appcompat.widget.Toolbar |
|
|
|
import androidx.fragment.app.Fragment |
|
|
|
import androidx.fragment.app.Fragment |
|
|
|
|
|
|
|
import io.legado.app.App |
|
|
|
import io.legado.app.R |
|
|
|
import io.legado.app.R |
|
|
|
import io.legado.app.ui.config.ConfigActivity |
|
|
|
import io.legado.app.ui.config.ConfigActivity |
|
|
|
import io.legado.app.ui.config.ConfigViewModel |
|
|
|
import io.legado.app.ui.config.ConfigViewModel |
|
|
|
import io.legado.app.utils.initIconColor |
|
|
|
import io.legado.app.utils.setIconColor |
|
|
|
import kotlinx.android.synthetic.main.fragment_my_config.* |
|
|
|
import kotlinx.android.synthetic.main.fragment_my_config.* |
|
|
|
import kotlinx.android.synthetic.main.view_titlebar.* |
|
|
|
import kotlinx.android.synthetic.main.view_titlebar.* |
|
|
|
|
|
|
|
|
|
|
@ -20,7 +21,7 @@ class MyConfigFragment : Fragment(R.layout.fragment_my_config), Toolbar.OnMenuIt |
|
|
|
super.onViewCreated(view, savedInstanceState) |
|
|
|
super.onViewCreated(view, savedInstanceState) |
|
|
|
Log.e("TAG", "MyConfigFragment") |
|
|
|
Log.e("TAG", "MyConfigFragment") |
|
|
|
toolbar.inflateMenu(R.menu.my_config) |
|
|
|
toolbar.inflateMenu(R.menu.my_config) |
|
|
|
toolbar.menu.initIconColor |
|
|
|
toolbar.menu.setIconColor(App.INSTANCE) |
|
|
|
toolbar.setOnMenuItemClickListener(this) |
|
|
|
toolbar.setOnMenuItemClickListener(this) |
|
|
|
tv_theme_config.setOnClickListener(View.OnClickListener { |
|
|
|
tv_theme_config.setOnClickListener(View.OnClickListener { |
|
|
|
val intent = Intent(context, ConfigActivity::class.java) |
|
|
|
val intent = Intent(context, ConfigActivity::class.java) |
|
|
|