|
|
@@ -1,503 +0,0 @@
|
|
|
-package com.sheep.jiuyan.samllsheep.page;
|
|
|
-
|
|
|
-import android.app.AlertDialog;
|
|
|
-import android.content.DialogInterface;
|
|
|
-import android.content.Intent;
|
|
|
-import android.os.Build;
|
|
|
-import android.os.Bundle;
|
|
|
-import android.support.design.widget.AppBarLayout;
|
|
|
-import android.support.design.widget.TextInputEditText;
|
|
|
-import android.support.v4.view.ViewPager;
|
|
|
-import android.support.v4.widget.SwipeRefreshLayout;
|
|
|
-import android.text.TextUtils;
|
|
|
-import android.view.View;
|
|
|
-import android.view.animation.AccelerateDecelerateInterpolator;
|
|
|
-import android.view.animation.Animation;
|
|
|
-import android.view.animation.RotateAnimation;
|
|
|
-import android.widget.ImageButton;
|
|
|
-import android.widget.ImageView;
|
|
|
-import android.widget.RadioButton;
|
|
|
-import android.widget.RadioGroup;
|
|
|
-import android.widget.TextView;
|
|
|
-import android.widget.Toast;
|
|
|
-
|
|
|
-import com.app.hubert.library.NewbieGuide;
|
|
|
-import com.bumptech.glide.Glide;
|
|
|
-import com.bumptech.glide.request.RequestOptions;
|
|
|
-import com.sheep.jiuyan.samllsheep.Config;
|
|
|
-import com.sheep.jiuyan.samllsheep.R;
|
|
|
-import com.sheep.jiuyan.samllsheep.base.BaseActivity;
|
|
|
-import com.sheep.jiuyan.samllsheep.download.DownloadManager;
|
|
|
-import com.sheep.jiuyan.samllsheep.event.MainTab;
|
|
|
-import com.sheep.jiuyan.samllsheep.event.NewUserDialog;
|
|
|
-import com.sheep.jiuyan.samllsheep.floatwindow.FloatService;
|
|
|
-import com.sheep.jiuyan.samllsheep.net.NetManager;
|
|
|
-import com.sheep.jiuyan.samllsheep.net.SheepCallback;
|
|
|
-import com.sheep.jiuyan.samllsheep.net.Url;
|
|
|
-import com.sheep.jiuyan.samllsheep.page.adapter.AdpMainPageViewPager;
|
|
|
-import com.sheep.jiuyan.samllsheep.page.entry.User;
|
|
|
-import com.sheep.jiuyan.samllsheep.page.fragment.FgtMainPageOffline;
|
|
|
-import com.sheep.jiuyan.samllsheep.page.fragment.FgtMainPageTask;
|
|
|
-import com.sheep.jiuyan.samllsheep.page.view.RappTabLayout;
|
|
|
-import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
-import com.sheep.jiuyan.samllsheep.utils.PremissUtils;
|
|
|
-import com.sheep.jiuyan.samllsheep.utils.SpUtils;
|
|
|
-import com.sheep.jiuyan.samllsheep.utils.StringUtils;
|
|
|
-import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
|
-
|
|
|
-import org.greenrobot.eventbus.Subscribe;
|
|
|
-import org.greenrobot.eventbus.ThreadMode;
|
|
|
-
|
|
|
-import java.io.IOException;
|
|
|
-import java.util.HashMap;
|
|
|
-
|
|
|
-
|
|
|
-import static android.support.v4.view.ViewPager.SCROLL_STATE_IDLE;
|
|
|
-
|
|
|
-
|
|
|
-/*
|
|
|
-* author:kemllor
|
|
|
-* version:1.0.0
|
|
|
-* copyright:云端助手
|
|
|
-* date:2017-12-15
|
|
|
-* file: MainActivity.class
|
|
|
-*/
|
|
|
-public class MainActivity extends BaseActivity {
|
|
|
- private RappTabLayout mRappTabLayout;
|
|
|
- private ViewPager mViewPager;
|
|
|
- private AdpMainPageViewPager mAdpMainPageViewPager;
|
|
|
- private SwipeRefreshLayout mSwipeRefreshLayout;
|
|
|
- private FgtMainPageTask mFgtMainPageTask;
|
|
|
- private FgtMainPageOffline mFgtMainPageOffline;
|
|
|
- private AppBarLayout mAppBarLayout;
|
|
|
- private boolean mIsTopest = true;//下滑是否在最顶端
|
|
|
- private boolean mIsLeftest = true;//右滑时是否在最左端
|
|
|
- private ImageView mImgBag;
|
|
|
- private AlertDialog mDialog;
|
|
|
-
|
|
|
- private ImageButton btn;
|
|
|
- private AlertDialog mRedDialog;
|
|
|
- private TextView mTvRedMoney;
|
|
|
- private View mView;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- @Override
|
|
|
- protected void onCreate(Bundle savedInstanceState) {
|
|
|
- NewbieGuide.with(this)//传入fragment
|
|
|
- .setLabel("guide2")//设置引导层标示,必传!否则报错
|
|
|
- .setLayoutRes(R.layout.splash_2)//自定义的提示layout,不要添加背景色,引导层背景色通过setBackgroundColor()设置
|
|
|
- .alwaysShow(false)
|
|
|
- .show();//直接显示引导层
|
|
|
- Intent intent = getIntent();
|
|
|
- String tag = intent.getStringExtra("tag");
|
|
|
- if (TextUtils.equals(tag, "once")) {
|
|
|
- showNewDialog();
|
|
|
- }
|
|
|
- super.onCreate(savedInstanceState);
|
|
|
- startOpenXFK();
|
|
|
- goToQX();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- private void goToQX(){
|
|
|
- if (Build.VERSION.SDK_INT >= 23) {
|
|
|
- boolean has = PremissUtils.hasPermission(MainActivity.this);
|
|
|
- if (!has) {
|
|
|
- AlertDialog.Builder builder= new AlertDialog.Builder(this)
|
|
|
- .setTitle("温馨提示!")
|
|
|
- .setMessage("亲!要赚钱需要手动开启读取其他应用权限功能哟!")
|
|
|
-
|
|
|
- .setPositiveButton("去开启", new DialogInterface.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(DialogInterface dialog, int which) {
|
|
|
- PremissUtils.openUsageAccessPage(MainActivity.this);
|
|
|
- }
|
|
|
- });
|
|
|
- builder.setCancelable(false);
|
|
|
- builder .show();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- private void startOpenXFK(){
|
|
|
- Intent intent = new Intent(MainActivity.this, FloatService.class);
|
|
|
- startService(intent);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- protected int getLayoutId() {
|
|
|
- return R.layout.main_activity;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void initListener() {
|
|
|
-/*
|
|
|
-if (BuildConfig.DEBUG)
|
|
|
- mImgBag.setOnLongClickListener(new View.OnLongClickListener() {
|
|
|
- @Override
|
|
|
- public boolean onLongClick(View v) {
|
|
|
- initDialog();
|
|
|
- return true;
|
|
|
- }
|
|
|
- });*/
|
|
|
- //防止右滑一部分后,还能下拉刷新。
|
|
|
- mViewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
|
|
|
- @Override
|
|
|
- public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
|
|
|
- mIsLeftest = positionOffsetPixels < 8;
|
|
|
- reSetSwipeRefreshLayout();
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void onPageSelected(int position) {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void onPageScrollStateChanged(int state) {
|
|
|
- if (state == SCROLL_STATE_IDLE) {
|
|
|
- mSwipeRefreshLayout.setEnabled(mIsTopest);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- //防止下拉刷新效果差
|
|
|
- mAppBarLayout.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() {
|
|
|
- @Override
|
|
|
- public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) {
|
|
|
- mIsTopest = verticalOffset >= 0;
|
|
|
- reSetSwipeRefreshLayout();
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- mSwipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
|
|
|
- @Override
|
|
|
- public void onRefresh() {
|
|
|
- mFgtMainPageTask.initData(false);
|
|
|
- mFgtMainPageOffline.initData(false);
|
|
|
- }
|
|
|
- });
|
|
|
- findViewById(R.id.linearLayout).setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View view) {
|
|
|
- Intent intent = new Intent(MainActivity.this, UserCenterActivity.class);
|
|
|
- startActivity(intent);
|
|
|
- }
|
|
|
- });
|
|
|
- findViewById(R.id.txt_get_cash).setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View view) {
|
|
|
-
|
|
|
- HashMap<String, String> map = new HashMap<>();
|
|
|
- map.put("wx_open_id", SpUtils.getOpenId(MainActivity.this));
|
|
|
- NetManager.get(Url.USER_INFO, map, getApplicationContext(), new SheepCallback<User>(MainActivity.this) {
|
|
|
- @Override
|
|
|
- public void success(User user) {
|
|
|
- hideProgress();
|
|
|
- if(!TextUtils.isEmpty(user.getBalance())){
|
|
|
- try {
|
|
|
- float money =Float.parseFloat(user.getBalance());
|
|
|
- if(money>=20){
|
|
|
- Intent intent = new Intent(MainActivity.this, WithdrawActivity.class);
|
|
|
- intent.putExtra("money", user.getBalance());
|
|
|
- startActivity(intent);
|
|
|
- }else{
|
|
|
- Toast.makeText(MainActivity.this,"亲!最低提现金额是20元哟!赶紧去做任务吧",Toast.LENGTH_LONG).show();
|
|
|
- }
|
|
|
-
|
|
|
- }catch (Exception e){
|
|
|
- Toast.makeText(MainActivity.this,"亲!最低提现金额是20元哟!赶紧去做任务吧",Toast.LENGTH_LONG).show();
|
|
|
- }
|
|
|
-
|
|
|
- }else{
|
|
|
- Toast.makeText(MainActivity.this,"亲!最低提现金额是20元哟!赶紧去做任务吧",Toast.LENGTH_LONG).show();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void failure(IOException e) {
|
|
|
- hideProgress();
|
|
|
- Toast.makeText(MainActivity.this,"系统异常,请稍后访问",Toast.LENGTH_LONG).show();
|
|
|
-
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- findViewById(R.id.img_share).setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View v) {
|
|
|
- Intent i = new Intent(MainActivity.this, AskFriendActivity.class);
|
|
|
- startActivity(i);
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- mImgBag.setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View v) {
|
|
|
- mImgBag.clearAnimation();
|
|
|
- showNewDialog();
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- private void reSetSwipeRefreshLayout() {
|
|
|
- if (!mIsLeftest ) {
|
|
|
- mSwipeRefreshLayout.setEnabled(false);
|
|
|
- } else if (!mIsTopest ) {
|
|
|
- mSwipeRefreshLayout.setEnabled(false);
|
|
|
- } else {
|
|
|
- mSwipeRefreshLayout.setEnabled(true);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void initData() {
|
|
|
- ((TextView) findViewById(R.id.txt_main_activity_money))
|
|
|
- .setText("¥" + StringUtils.strToMoney(G.mUser.getBalance()) );
|
|
|
- ((TextView) findViewById(R.id.txt_main_activity_nick))
|
|
|
- .setText(G.mUser.getNickName());
|
|
|
- Glide.with(this)
|
|
|
- .load(G.mUser.getIcon())
|
|
|
- .apply(new RequestOptions().circleCrop().placeholder(R.drawable.icon)
|
|
|
- .dontAnimate())
|
|
|
- .into((ImageView) findViewById(R.id.img_user));
|
|
|
-
|
|
|
- if (G.mUser.getReceived_red_packet() == 1) {
|
|
|
- mImgBag.clearAnimation();
|
|
|
- mImgBag.setVisibility(View.GONE);
|
|
|
- } else {
|
|
|
- mImgBag.setVisibility(View.VISIBLE);
|
|
|
- startAnimation(mImgBag);
|
|
|
- }
|
|
|
- // reSetSwipeRefreshLayout();
|
|
|
- }
|
|
|
-
|
|
|
- public void refresh(boolean bool) {
|
|
|
- mSwipeRefreshLayout.setRefreshing(bool);
|
|
|
- /* mSwipeRefreshLayout.setEnabled(!bool);*/
|
|
|
- }
|
|
|
-
|
|
|
- private void showNewDialog() {
|
|
|
- if (mDialog == null) {
|
|
|
- AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this, R.style.Theme_Transparent);
|
|
|
- View view = View.inflate(this, R.layout.new_user_dialog, null);
|
|
|
- builder.setView(view);
|
|
|
- mDialog = builder.create();
|
|
|
- view.findViewById(R.id.img_close).setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View v) {
|
|
|
- mDialog.dismiss();
|
|
|
- }
|
|
|
- });
|
|
|
- view.findViewById(R.id.img_begin_new).setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View v) {
|
|
|
- Intent intent = new Intent(MainActivity.this, NewUserGuideActivity.class);
|
|
|
- startActivity(intent);
|
|
|
- mDialog.dismiss();
|
|
|
- }
|
|
|
- });
|
|
|
- mDialog.setCanceledOnTouchOutside(false);
|
|
|
- mDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
|
|
|
- @Override
|
|
|
- public void onDismiss(DialogInterface dialog) {
|
|
|
- startAnimation(mImgBag);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- mDialog.show();
|
|
|
- }
|
|
|
-
|
|
|
- private void initDialog() {
|
|
|
- if (mDialog == null) {
|
|
|
- final View view = View.inflate(this, R.layout.baseurl_dialog, null);
|
|
|
- final RadioGroup mRgUrl = (RadioGroup) view.findViewById(R.id.rg_url);
|
|
|
- final TextInputEditText mEtUrl = (TextInputEditText) view.findViewById(R.id.et_url);
|
|
|
- TextView tvEnter = (TextView) view.findViewById(R.id.tv_enter);
|
|
|
- for (String url : Config.instance().mUrlList) {
|
|
|
- RadioButton button = new RadioButton(this);
|
|
|
- button.setText(url);
|
|
|
- mRgUrl.addView(button);
|
|
|
- }
|
|
|
- AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
|
|
- mDialog = builder.setView(view).create();
|
|
|
- mDialog.setCanceledOnTouchOutside(true);
|
|
|
- tvEnter.setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View v) {
|
|
|
- String url = mEtUrl.getText().toString().trim();
|
|
|
- if (TextUtils.isEmpty(url)) {
|
|
|
- int id = mRgUrl.getCheckedRadioButtonId();
|
|
|
- if (id != -1) {
|
|
|
- RadioButton btn = (RadioButton) view.findViewById(id);
|
|
|
- url = btn.getText().toString().trim();
|
|
|
- }
|
|
|
- }
|
|
|
- if (!TextUtils.isEmpty(url)) {
|
|
|
- Config.instance().setBaseUrl(url);
|
|
|
- }
|
|
|
- mDialog.dismiss();
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- mDialog.show();
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void initView() {
|
|
|
- ((TextView) findViewById(R.id.txt_baseactivity_title)).setText("我的奖金");
|
|
|
- btn = (ImageButton) findViewById(R.id.ibtn_baseactivity_right);
|
|
|
- btn.setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View view) {
|
|
|
- Intent i = new Intent(MainActivity.this, XDownLoadActivity.class);
|
|
|
- startActivity(i);
|
|
|
- }
|
|
|
- });
|
|
|
- btn.setVisibility(View.VISIBLE);
|
|
|
-
|
|
|
- findViewById(R.id.img_baseactivity_title).setVisibility(View.GONE);
|
|
|
- mImgBag = (ImageView) findViewById(R.id.img_red);
|
|
|
- mRappTabLayout = (RappTabLayout) findViewById(R.id.tab_main_activity);
|
|
|
- mViewPager = (ViewPager) findViewById(R.id.viewpager_main_activity);
|
|
|
- mSwipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_main_activity);
|
|
|
- mAppBarLayout = (AppBarLayout) findViewById(R.id.app_layout_main_activity);
|
|
|
- mView = findViewById(R.id.cl_coor);
|
|
|
- mSwipeRefreshLayout.setProgressViewOffset(true, getResources().getDimensionPixelOffset(R.dimen.layout_heigh_default), G.getRealPix(80));
|
|
|
- mAdpMainPageViewPager = new AdpMainPageViewPager(getSupportFragmentManager());
|
|
|
- mFgtMainPageTask = new FgtMainPageTask();
|
|
|
- mAdpMainPageViewPager.add(mFgtMainPageTask);
|
|
|
- mFgtMainPageOffline = new FgtMainPageOffline();
|
|
|
- mAdpMainPageViewPager.add(mFgtMainPageOffline);
|
|
|
- mViewPager.setAdapter(mAdpMainPageViewPager);
|
|
|
- mRappTabLayout.setLine(G.getRealPix(20), G.getRealPix(4))
|
|
|
- .setLineMargin(0, G.getRealPix(2), 0, 0)
|
|
|
- .setLineColor(getResources().getColor(R.color.black_text_deep))
|
|
|
- .setupWithViewPager(mViewPager, R.layout.tab_ripple);
|
|
|
- TitleBarUtils.getInstance().setTitleFinish(this);
|
|
|
- }
|
|
|
-
|
|
|
- private void startAnimation(View view) {
|
|
|
- RotateAnimation rAnima = new RotateAnimation(-5, 5);
|
|
|
- rAnima.setDuration(500);
|
|
|
- rAnima.setRepeatCount(-1);
|
|
|
- rAnima.setRepeatMode(Animation.REVERSE);
|
|
|
- rAnima.setInterpolator(new AccelerateDecelerateInterpolator());
|
|
|
- view.startAnimation(rAnima);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- protected void onResume() {
|
|
|
- super.onResume();
|
|
|
- if (DownloadManager.getInstance().getDownloadListCount() > 0) {
|
|
|
- btn.setImageResource(R.drawable.icon_download_red);
|
|
|
- } else {
|
|
|
- btn.setImageResource(R.drawable.icon_download);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- protected void onStop() {
|
|
|
- super.onStop();
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- protected void onDestroy() {
|
|
|
- super.onDestroy();
|
|
|
- /* FloatMsg floatMsg = new FloatMsg();
|
|
|
- floatMsg.shouldShow = true;
|
|
|
- EventBus.getDefault().post(floatMsg);*/
|
|
|
- }
|
|
|
-
|
|
|
- @Subscribe(threadMode = ThreadMode.MAIN)
|
|
|
- public void onMessageEvent(NewUserDialog done) {
|
|
|
- if (done.isDoneNewTask) {
|
|
|
- HashMap<String, String> map = new HashMap<>();
|
|
|
- map.put("open_id", SpUtils.getOpenId(this));
|
|
|
- NetManager.postForm(Url.GET_NEW_TASK_RED, map, getApplicationContext(), new SheepCallback<String>(this) {
|
|
|
- @Override
|
|
|
- public void success(String money) {
|
|
|
- showRedbagDialog(money);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void failure(IOException e) {
|
|
|
- super.failure(e);
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- @Subscribe(threadMode = ThreadMode.MAIN)
|
|
|
- public void onMessageEvent(MainTab tab) {
|
|
|
- mRappTabLayout.selectTab(tab.index);
|
|
|
- }
|
|
|
-
|
|
|
- private void showRedbagDialog(String money) {
|
|
|
- try {
|
|
|
- if (mRedDialog == null) {
|
|
|
- AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this, R.style.Theme_Transparent);
|
|
|
- View view = View.inflate(this, R.layout.new_user_red_dialog, null);
|
|
|
- builder.setView(view);
|
|
|
- mRedDialog = builder.create();
|
|
|
- view.findViewById(R.id.img_close).setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View v) {
|
|
|
- mRedDialog.dismiss();
|
|
|
- }
|
|
|
- });
|
|
|
- view.findViewById(R.id.btn_get_money).setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View v) {
|
|
|
- mRedDialog.dismiss();
|
|
|
- mFgtMainPageTask.initData(false);
|
|
|
- }
|
|
|
- });
|
|
|
- mTvRedMoney = (TextView) view.findViewById(R.id.tv_money);
|
|
|
- mRedDialog.setCanceledOnTouchOutside(false);
|
|
|
- }
|
|
|
- mTvRedMoney.setText(money);
|
|
|
- mRedDialog.show();
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- long last = 0;
|
|
|
-
|
|
|
- @Override
|
|
|
- public void onBackPressed() {
|
|
|
- long now = System.currentTimeMillis();
|
|
|
- if (now - last > 1500) {
|
|
|
- Toast.makeText(this, "双击返回退出程序", Toast.LENGTH_SHORT).show();
|
|
|
- } else {
|
|
|
- super.onBackPressed();
|
|
|
- }
|
|
|
- last = System.currentTimeMillis();
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
- super.onActivityResult(requestCode, resultCode, data);
|
|
|
- if(PremissUtils.MY_PERMISSIONS_REQUEST_PACKAGE_USAGE_STATS==requestCode){
|
|
|
- goToQX();
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-}
|