Commit c7b04d2f authored by Libin Lu's avatar Libin Lu Committed by GitHub

fix remote number in remote notification

parent 9c88d085
......@@ -84,7 +84,7 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> {
.setTicker(ticker)
.setVisibility(NotificationCompat.VISIBILITY_PRIVATE)
.setAutoCancel(bundle.getBoolean("auto_cancel", true))
.setNumber((int)bundle.getDouble("number"))
.setNumber(bundle.getInt("number", (int)bundle.getDouble("number")))
.setSubText(subText)
.setVibrate(new long[]{0, DEFAULT_VIBRATION})
.setExtras(bundle.getBundle("data"));
......
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