Commit ee2243e1 authored by mengcuiguang's avatar mengcuiguang

代码优化

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