Skip to content

Commit 7e14b76

Browse files
committed
Comment out alert debugging for now
1 parent 2e6dfb0 commit 7e14b76

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

smssync/src/main/java/org/addhen/smssync/receivers/SmsSentReceiver.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public void onError(Exception exception) {
8585
});
8686

8787
} else {
88+
//TODO: Renable if alert is made configurable.
89+
/*
8890
final String errorCode;
8991
final AlertCallbacks alertCallbacks = new AlertCallbacks(new Prefs(context));
9092
if (intent.hasExtra("errorCode")) {
@@ -97,13 +99,13 @@ public void onError(Exception exception) {
9799
public void run() {
98100
alertCallbacks.smsSendFailedRequest(resultMessage, errorCode);
99101
}
100-
}).start();
102+
}).start();*/
101103

102104
Prefs prefs = new Prefs(context);
103105
boolean deleted = false;
104106

105-
Logger.log(SmsSentReceiver.class.getSimpleName(), "Statuses: ");
106-
if (prefs.enableRetry().get()) {
107+
Logger.log(SmsSentReceiver.class.getSimpleName(), "Statuses: "+prefs.enableRetry().get());
108+
//if (prefs.enableRetry().get()) {
107109
final int retry = prefs.retries().get();
108110
if (message.getRetries() > retry) {
109111
App.getDatabaseInstance().getMessageInstance().deleteByUuid(message.getUuid());
@@ -113,10 +115,10 @@ public void run() {
113115
int retries = message.getRetries() + 1;
114116
message.setRetries(retries);
115117
}
116-
}
118+
//}
117119

118120
// Make sure the message is not deleted before attempting to update it retries status;
119-
if (!deleted) {
121+
//if (!deleted) {
120122
message.setStatus(Message.Status.FAILED);
121123
Logger.log(SmsSentReceiver.class.getSimpleName(), "messages "+message);
122124
App.getDatabaseInstance().getMessageInstance().updateSentFields(message,
@@ -131,7 +133,7 @@ public void onError(Exception exception) {
131133

132134
}
133135
});
134-
}
136+
//}
135137
}
136138
}
137139

0 commit comments

Comments
 (0)