Commit ee2243e1 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 2c42cce3
...@@ -400,7 +400,6 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener { ...@@ -400,7 +400,6 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener {
RxPermissions(this) RxPermissions(this)
.request( .request(
Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION,
Manifest.permission.ACCESS_COARSE_LOCATION,
Manifest.permission.ACCESS_BACKGROUND_LOCATION Manifest.permission.ACCESS_BACKGROUND_LOCATION
) )
} else { } else {
...@@ -411,19 +410,15 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener { ...@@ -411,19 +410,15 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener {
) )
} }
request.subscribe { granted: Boolean -> request.subscribe { granted: Boolean ->
if (granted) { // 预加载信息流
// 预加载信息流 ExpressManager.loadExpress(false)
ExpressManager.loadExpress(false)
val bundle = Bundle() val bundle = Bundle()
bundle.putString( bundle.putString(
IncreasespeedActivity.INCREASE_TYPE, IncreasespeedActivity.INCREASE_TYPE,
IncreasespeedActivity.INCREASE_BOOST IncreasespeedActivity.INCREASE_BOOST
) )
readyGo(IncreasespeedActivity::class.java) readyGo(IncreasespeedActivity::class.java)
} 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