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