|
@@ -200,6 +200,7 @@ public class MainActivity extends BaseFragmentActivity implements MineFragment.o
|
200
|
200
|
}
|
201
|
201
|
GoldManager.getInstance().getUserCoin();
|
202
|
202
|
getSplashAd();
|
|
203
|
+
|
203
|
204
|
}
|
204
|
205
|
|
205
|
206
|
/**
|
|
@@ -243,6 +244,7 @@ public class MainActivity extends BaseFragmentActivity implements MineFragment.o
|
243
|
244
|
SPUtil.putAndApply(MyApplication.getInstance(), Constant.System.SWITCH_AD, false);
|
244
|
245
|
SPUtil.putAndApply(MyApplication.getInstance(), Constant.System.IMAGE_URL, adJson.getImg_url());
|
245
|
246
|
SPUtil.putAndApply(MyApplication.getInstance(), Constant.System.LINK_URL, adJson.getAdvert_url());
|
|
247
|
+ SPUtil.putAndApply(MyApplication.getInstance(), Constant.System.TITLE_URL, adJson.getName());
|
246
|
248
|
}
|
247
|
249
|
}
|
248
|
250
|
|
|
@@ -893,12 +895,16 @@ public class MainActivity extends BaseFragmentActivity implements MineFragment.o
|
893
|
895
|
Manifest.permission.WRITE_EXTERNAL_STORAGE,
|
894
|
896
|
Manifest.permission.READ_EXTERNAL_STORAGE,
|
895
|
897
|
Manifest.permission.CAMERA
|
|
898
|
+
|
896
|
899
|
)
|
897
|
900
|
.subscribe(new io.reactivex.functions.Consumer<Permission>() {
|
898
|
901
|
@Override
|
899
|
902
|
public void accept(Permission permission) throws Exception {
|
900
|
903
|
if (permission.granted) {
|
901
|
904
|
// 用户已经同意该权限
|
|
905
|
+ if (permission.name.equals("android.permission.READ_PHONE_STATE")) {
|
|
906
|
+ getIMEI(MainActivity.this);
|
|
907
|
+ }
|
902
|
908
|
|
903
|
909
|
|
904
|
910
|
} else if (permission.shouldShowRequestPermissionRationale) {
|