|
@ -725,21 +725,21 @@ public class ChargingStatusActivity extends Activity implements View.OnClickList
|
725
|
725
|
count = ProfileManager.getInstance().getMsgChargingStatusNo(this);
|
726
|
726
|
// LogUtils.e("没权限---"+count+"次");
|
727
|
727
|
final int no = count + 1;
|
728
|
|
if (no == 30 || no == 60 || no == 90) {
|
|
728
|
if (no >= 20 ) {
|
729
|
729
|
new com.electric.chargingpile.view.AlertDialog(ChargingStatusActivity.this).builder()
|
730
|
730
|
.setMsg("爱车快要充满时,我们会给您推送消息,检测到您没有打开消息通知,快去开启吧")
|
731
|
731
|
.setPositiveButton("去开启", new View.OnClickListener() {
|
732
|
732
|
@Override
|
733
|
733
|
public void onClick(View v) {
|
734
|
734
|
showInstalledAppDetails(ChargingStatusActivity.this, "com.electric.chargingpile");
|
735
|
|
ProfileManager.getInstance().setMsgChargingStatusNo(ChargingStatusActivity.this, 0);
|
736
|
735
|
}
|
737
|
|
}).setNegativeButton("忽略", new View.OnClickListener() {
|
738
|
|
@Override
|
739
|
|
public void onClick(View v) {
|
740
|
|
ProfileManager.getInstance().setMsgChargingStatusNo(ChargingStatusActivity.this, no);
|
741
|
|
}
|
742
|
|
}).show();
|
|
736
|
})
|
|
737
|
.setNegativeButton("忽略", new View.OnClickListener() {
|
|
738
|
@Override
|
|
739
|
public void onClick(View v) {
|
|
740
|
}
|
|
741
|
}).show();
|
|
742
|
ProfileManager.getInstance().setMsgChargingStatusNo(ChargingStatusActivity.this, 0);
|
743
|
743
|
} else {
|
744
|
744
|
ProfileManager.getInstance().setMsgChargingStatusNo(ChargingStatusActivity.this, no);
|
745
|
745
|
}
|