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,7 +410,6 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener { ...@@ -411,7 +410,6 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener {
) )
} }
request.subscribe { granted: Boolean -> request.subscribe { granted: Boolean ->
if (granted) {
// 预加载信息流 // 预加载信息流
ExpressManager.loadExpress(false) ExpressManager.loadExpress(false)
...@@ -421,9 +419,6 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener { ...@@ -421,9 +419,6 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener {
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