mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-08 00:26:50 +02:00
Backward compatibility action sound
This commit is contained in:
@@ -1428,8 +1428,8 @@ public class EntityRule {
|
||||
|
||||
private boolean onActionSound(Context context, EntityMessage message, JSONObject jargs) throws JSONException {
|
||||
Uri uri = (jargs.has("uri") ? Uri.parse(jargs.getString("uri")) : null);
|
||||
boolean loop = jargs.getBoolean("loop");
|
||||
boolean alarm = jargs.getBoolean("alarm");
|
||||
boolean loop = jargs.optBoolean("loop");
|
||||
boolean alarm = jargs.optBoolean("alarm");
|
||||
int duration = jargs.optInt("duration", MediaPlayerHelper.DEFAULT_ALARM_DURATION);
|
||||
Log.i("Sound uri=" + uri + " loop=" + loop + " alarm=" + alarm + " duration=" + duration);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user