Add Integer serialization to JSON converter

Required to make vibration work for scheduled notifications. May need to add other types also. (Double off the top of my head)
This commit is contained in:
Tal Davidi 2018-03-26 16:44:05 -04:00 committed by GitHub
parent 57c64668b9
commit 4c11161f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ public class BundleJSONConverter {
jsonArray.put(objValue);
} else if (objValue instanceof Bundle) {
jsonArray.put(convertToJSON((Bundle) objValue));
} else if (objValue instanceof Integer) {
jsonArray.put(objValue);
} else {
throw new IllegalArgumentException("Unsupported type: " + objValue.getClass());
}