opt
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package com.mogo.module.navi.ui.setting
|
||||
|
||||
import android.content.Context
|
||||
import android.media.AudioManager
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import android.widget.CompoundButton
|
||||
@@ -9,7 +7,7 @@ import android.widget.CompoundButton.OnCheckedChangeListener
|
||||
import android.widget.SeekBar
|
||||
import android.widget.SeekBar.OnSeekBarChangeListener
|
||||
import com.alibaba.android.arouter.facade.annotation.Route
|
||||
import com.alibaba.android.arouter.launcher.ARouter
|
||||
import com.mogo.commons.debug.DebugConfig
|
||||
import com.mogo.map.constants.BroadcastMode
|
||||
import com.mogo.map.uicontroller.EnumMapUI
|
||||
import com.mogo.module.common.MogoModulePaths
|
||||
@@ -21,33 +19,10 @@ import com.mogo.module.navi.manager.AddressManager
|
||||
import com.mogo.module.navi.manager.SettingManager
|
||||
import com.mogo.module.navi.manager.VolumeManager
|
||||
import com.mogo.module.navi.ui.base.BaseFragment
|
||||
import com.mogo.service.MogoServicePaths
|
||||
import com.mogo.service.module.IMogoSettingManager
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.iv_back
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.iv_navi_sound_high
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.iv_navi_sound_low
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.iv_sound_minus
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.iv_sound_plus
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rb_navi_auto
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rb_navi_day
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rb_navi_detail
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rb_navi_draft
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rb_navi_fee
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rb_navi_high_way
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rb_navi_jam
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rb_navi_night
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rb_navi_no_high_way
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rg_navi_day_night
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.rg_navi_sound_type
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.sb_navi_volume_progress
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.tv_navi_clear_company_address
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.tv_navi_clear_home_address
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.tv_navi_company_address
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.tv_navi_home_address
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.*
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
import org.greenrobot.eventbus.Subscribe
|
||||
import org.greenrobot.eventbus.ThreadMode
|
||||
import java.util.HashMap
|
||||
|
||||
/**
|
||||
* @author zyz
|
||||
@@ -242,6 +217,30 @@ class NaviSettingFragment : BaseFragment(), OnCheckedChangeListener {
|
||||
AddressManager.goHome()
|
||||
}
|
||||
}
|
||||
|
||||
if (DebugConfig.isDebug()) {
|
||||
sb_navi_fps_progress.setOnSeekBarChangeListener(object : OnSeekBarChangeListener{
|
||||
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
|
||||
if (progress == 0) {
|
||||
tv_fps_value.text = "-1"
|
||||
SearchServiceHolder.getMapUIController().setRenderFps(-1)
|
||||
} else {
|
||||
tv_fps_value.text = "${progress}"
|
||||
SearchServiceHolder.getMapUIController().setRenderFps(progress)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onStartTrackingTouch(seekBar: SeekBar?) {
|
||||
}
|
||||
|
||||
override fun onStopTrackingTouch(seekBar: SeekBar?) {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
tv_navi_fps.visibility = View.GONE
|
||||
ll_navi_fps.visibility = View.GONE
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private fun updateHome() {
|
||||
|
||||
Reference in New Issue
Block a user