Commit 53886cce by Rich Sage

Catch previously-valid notification non-int keys.

parent 829501a9
......@@ -30,6 +30,7 @@ import android.content.SharedPreferences;
import org.json.JSONException;
import org.json.JSONObject;
import java.lang.NumberFormatException;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
......@@ -193,7 +194,11 @@ public class Manager {
ArrayList<Integer> ids = new ArrayList<Integer>();
for (String key : keys) {
ids.add(Integer.parseInt(key));
try {
ids.add(Integer.parseInt(key));
} catch (NumberFormatException e) {
e.printStackTrace();
}
}
return ids;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment