去掉多余的权限弹框
This commit is contained in:
parent
1ceb45d401
commit
846b425040
|
|
@ -263,24 +263,24 @@ public class DeviceFragment extends BaseV4Fragment implements ObservableScrollVi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPermissionDeniedBySystem() {
|
public void onPermissionDeniedBySystem() {
|
||||||
AlertDialog.Builder dialog = new AlertDialog.Builder(getContext());
|
// AlertDialog.Builder dialog = new AlertDialog.Builder(getContext());
|
||||||
dialog.setCancelable(false);
|
// dialog.setCancelable(false);
|
||||||
dialog.setMessage("请到应用管理-爱鱼奇-应用权限页面开启权限后重新打开app");
|
// dialog.setMessage("请到应用管理-爱鱼奇-应用权限页面开启权限后重新打开app");
|
||||||
dialog.setPositiveButton("确定", new DialogInterface.OnClickListener() {
|
// dialog.setPositiveButton("确定", new DialogInterface.OnClickListener() {
|
||||||
@Override
|
// @Override
|
||||||
public void onClick(
|
// public void onClick(
|
||||||
DialogInterface dialog,
|
// DialogInterface dialog,
|
||||||
int which) {
|
// int which) {
|
||||||
Intent mItent = new Intent(Settings.ACTION_SETTINGS);
|
// Intent mItent = new Intent(Settings.ACTION_SETTINGS);
|
||||||
startActivity(mItent);
|
// startActivity(mItent);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
dialog.setNegativeButton("取消", new DialogInterface.OnClickListener() {
|
// dialog.setNegativeButton("取消", new DialogInterface.OnClickListener() {
|
||||||
@Override
|
// @Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
// public void onClick(DialogInterface dialog, int which) {
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
dialog.show();
|
// dialog.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue