[3/5] Breathing Notifications
Change-Id: Ie026bf879e639c3b237fee2757a5f56943ef6165
diff --git a/res/drawable-hdpi/stat_notify_missed_call.png b/res/drawable-hdpi/stat_notify_missed_call.png
new file mode 100644
index 0000000..e62115f
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_0.png b/res/drawable-hdpi/stat_notify_missed_call_0.png
new file mode 100644
index 0000000..e62115f
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_0.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_1.png b/res/drawable-hdpi/stat_notify_missed_call_1.png
new file mode 100644
index 0000000..18b4910
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_1.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_10.png b/res/drawable-hdpi/stat_notify_missed_call_10.png
new file mode 100644
index 0000000..a26a882
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_10.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_11.png b/res/drawable-hdpi/stat_notify_missed_call_11.png
new file mode 100644
index 0000000..5b4450c
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_11.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_12.png b/res/drawable-hdpi/stat_notify_missed_call_12.png
new file mode 100644
index 0000000..1f2e19a
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_12.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_13.png b/res/drawable-hdpi/stat_notify_missed_call_13.png
new file mode 100644
index 0000000..b3deecc
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_13.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_14.png b/res/drawable-hdpi/stat_notify_missed_call_14.png
new file mode 100644
index 0000000..2d7b016
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_14.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_15.png b/res/drawable-hdpi/stat_notify_missed_call_15.png
new file mode 100644
index 0000000..a99c701
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_15.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_16.png b/res/drawable-hdpi/stat_notify_missed_call_16.png
new file mode 100644
index 0000000..99c1fcd
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_16.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_17.png b/res/drawable-hdpi/stat_notify_missed_call_17.png
new file mode 100644
index 0000000..5b1aa72
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_17.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_18.png b/res/drawable-hdpi/stat_notify_missed_call_18.png
new file mode 100644
index 0000000..796b370
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_18.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_19.png b/res/drawable-hdpi/stat_notify_missed_call_19.png
new file mode 100644
index 0000000..7d22c22
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_19.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_2.png b/res/drawable-hdpi/stat_notify_missed_call_2.png
new file mode 100644
index 0000000..7423566
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_2.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_20.png b/res/drawable-hdpi/stat_notify_missed_call_20.png
new file mode 100644
index 0000000..9c14361
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_20.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_3.png b/res/drawable-hdpi/stat_notify_missed_call_3.png
new file mode 100644
index 0000000..02c2972
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_3.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_4.png b/res/drawable-hdpi/stat_notify_missed_call_4.png
new file mode 100644
index 0000000..3577ccb
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_4.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_5.png b/res/drawable-hdpi/stat_notify_missed_call_5.png
new file mode 100644
index 0000000..1d23b40
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_5.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_6.png b/res/drawable-hdpi/stat_notify_missed_call_6.png
new file mode 100644
index 0000000..17cc38b
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_6.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_7.png b/res/drawable-hdpi/stat_notify_missed_call_7.png
new file mode 100644
index 0000000..8aff655
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_7.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_8.png b/res/drawable-hdpi/stat_notify_missed_call_8.png
new file mode 100644
index 0000000..0ddf944
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_8.png
Binary files differ
diff --git a/res/drawable-hdpi/stat_notify_missed_call_9.png b/res/drawable-hdpi/stat_notify_missed_call_9.png
new file mode 100644
index 0000000..b7c6c3d
--- /dev/null
+++ b/res/drawable-hdpi/stat_notify_missed_call_9.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call.png b/res/drawable-mdpi/stat_notify_missed_call.png
new file mode 100644
index 0000000..8046422
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_0.png b/res/drawable-mdpi/stat_notify_missed_call_0.png
new file mode 100644
index 0000000..8046422
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_0.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_1.png b/res/drawable-mdpi/stat_notify_missed_call_1.png
new file mode 100644
index 0000000..c244865
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_1.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_10.png b/res/drawable-mdpi/stat_notify_missed_call_10.png
new file mode 100644
index 0000000..c7331f2
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_10.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_11.png b/res/drawable-mdpi/stat_notify_missed_call_11.png
new file mode 100644
index 0000000..e058faa
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_11.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_12.png b/res/drawable-mdpi/stat_notify_missed_call_12.png
new file mode 100644
index 0000000..15fa60b
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_12.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_13.png b/res/drawable-mdpi/stat_notify_missed_call_13.png
new file mode 100644
index 0000000..0309ee9
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_13.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_14.png b/res/drawable-mdpi/stat_notify_missed_call_14.png
new file mode 100644
index 0000000..b750b0c
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_14.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_15.png b/res/drawable-mdpi/stat_notify_missed_call_15.png
new file mode 100644
index 0000000..2858b67
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_15.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_16.png b/res/drawable-mdpi/stat_notify_missed_call_16.png
new file mode 100644
index 0000000..39264d8
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_16.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_17.png b/res/drawable-mdpi/stat_notify_missed_call_17.png
new file mode 100644
index 0000000..c6600ca
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_17.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_18.png b/res/drawable-mdpi/stat_notify_missed_call_18.png
new file mode 100644
index 0000000..ef4a834
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_18.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_19.png b/res/drawable-mdpi/stat_notify_missed_call_19.png
new file mode 100644
index 0000000..bbd880a
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_19.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_2.png b/res/drawable-mdpi/stat_notify_missed_call_2.png
new file mode 100644
index 0000000..e45d30c
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_2.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_20.png b/res/drawable-mdpi/stat_notify_missed_call_20.png
new file mode 100644
index 0000000..cc6be7e
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_20.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_3.png b/res/drawable-mdpi/stat_notify_missed_call_3.png
new file mode 100644
index 0000000..fc03dc6
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_3.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_4.png b/res/drawable-mdpi/stat_notify_missed_call_4.png
new file mode 100644
index 0000000..7f3d374
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_4.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_5.png b/res/drawable-mdpi/stat_notify_missed_call_5.png
new file mode 100644
index 0000000..ad453f7
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_5.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_6.png b/res/drawable-mdpi/stat_notify_missed_call_6.png
new file mode 100644
index 0000000..8236288
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_6.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_7.png b/res/drawable-mdpi/stat_notify_missed_call_7.png
new file mode 100644
index 0000000..104f72b
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_7.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_8.png b/res/drawable-mdpi/stat_notify_missed_call_8.png
new file mode 100644
index 0000000..c59079f
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_8.png
Binary files differ
diff --git a/res/drawable-mdpi/stat_notify_missed_call_9.png b/res/drawable-mdpi/stat_notify_missed_call_9.png
new file mode 100644
index 0000000..f10571e
--- /dev/null
+++ b/res/drawable-mdpi/stat_notify_missed_call_9.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call.png b/res/drawable-xhdpi/stat_notify_missed_call.png
new file mode 100644
index 0000000..38a3dcb
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_0.png b/res/drawable-xhdpi/stat_notify_missed_call_0.png
new file mode 100644
index 0000000..38a3dcb
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_0.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_1.png b/res/drawable-xhdpi/stat_notify_missed_call_1.png
new file mode 100644
index 0000000..bdff6c6
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_1.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_10.png b/res/drawable-xhdpi/stat_notify_missed_call_10.png
new file mode 100644
index 0000000..b72f4af
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_10.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_11.png b/res/drawable-xhdpi/stat_notify_missed_call_11.png
new file mode 100644
index 0000000..7daff0b
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_11.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_12.png b/res/drawable-xhdpi/stat_notify_missed_call_12.png
new file mode 100644
index 0000000..e327fdf
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_12.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_13.png b/res/drawable-xhdpi/stat_notify_missed_call_13.png
new file mode 100644
index 0000000..5f639b4
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_13.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_14.png b/res/drawable-xhdpi/stat_notify_missed_call_14.png
new file mode 100644
index 0000000..b759b06
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_14.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_15.png b/res/drawable-xhdpi/stat_notify_missed_call_15.png
new file mode 100644
index 0000000..1194c48
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_15.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_16.png b/res/drawable-xhdpi/stat_notify_missed_call_16.png
new file mode 100644
index 0000000..8e12bdc
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_16.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_17.png b/res/drawable-xhdpi/stat_notify_missed_call_17.png
new file mode 100644
index 0000000..49b3ad5
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_17.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_18.png b/res/drawable-xhdpi/stat_notify_missed_call_18.png
new file mode 100644
index 0000000..2e8d8da
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_18.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_19.png b/res/drawable-xhdpi/stat_notify_missed_call_19.png
new file mode 100644
index 0000000..f9e466c
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_19.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_2.png b/res/drawable-xhdpi/stat_notify_missed_call_2.png
new file mode 100644
index 0000000..b0749df
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_2.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_20.png b/res/drawable-xhdpi/stat_notify_missed_call_20.png
new file mode 100644
index 0000000..45de757
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_20.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_3.png b/res/drawable-xhdpi/stat_notify_missed_call_3.png
new file mode 100644
index 0000000..5193454
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_3.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_4.png b/res/drawable-xhdpi/stat_notify_missed_call_4.png
new file mode 100644
index 0000000..0be8ff1
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_4.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_5.png b/res/drawable-xhdpi/stat_notify_missed_call_5.png
new file mode 100644
index 0000000..1f08ca2
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_5.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_6.png b/res/drawable-xhdpi/stat_notify_missed_call_6.png
new file mode 100644
index 0000000..f11f2de
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_6.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_7.png b/res/drawable-xhdpi/stat_notify_missed_call_7.png
new file mode 100644
index 0000000..317514c
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_7.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_8.png b/res/drawable-xhdpi/stat_notify_missed_call_8.png
new file mode 100644
index 0000000..f722711
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_8.png
Binary files differ
diff --git a/res/drawable-xhdpi/stat_notify_missed_call_9.png b/res/drawable-xhdpi/stat_notify_missed_call_9.png
new file mode 100644
index 0000000..969c1b0
--- /dev/null
+++ b/res/drawable-xhdpi/stat_notify_missed_call_9.png
Binary files differ
diff --git a/res/drawable/stat_notify_missed_call_breath.xml b/res/drawable/stat_notify_missed_call_breath.xml
new file mode 100644
index 0000000..7bed405
--- /dev/null
+++ b/res/drawable/stat_notify_missed_call_breath.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<animation-list android:oneshot="false"
+ xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_0" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_1" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_2" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_3" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_4" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_5" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_6" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_7" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_8" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_9" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_10" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_11" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_12" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_13" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_14" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_15" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_16" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_17" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_18" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_19" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_20" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_19" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_18" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_17" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_16" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_15" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_14" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_13" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_12" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_11" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_10" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_9" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_8" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_7" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_6" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_5" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_4" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_3" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_2" />
+ <item android:duration="80" android:drawable="@drawable/stat_notify_missed_call_1" />
+ <item android:duration="1000" android:drawable="@drawable/stat_notify_missed_call_0" />
+</animation-list>
diff --git a/src/com/android/dialer/calllog/MissedCallNotifier.java b/src/com/android/dialer/calllog/MissedCallNotifier.java
index f683016..6497667 100644
--- a/src/com/android/dialer/calllog/MissedCallNotifier.java
+++ b/src/com/android/dialer/calllog/MissedCallNotifier.java
@@ -24,9 +24,17 @@
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.provider.CallLog.Calls;
+import android.provider.Settings;
+import android.text.SpannableStringBuilder;
import android.text.TextUtils;
+import android.text.format.DateUtils;
+import android.text.style.RelativeSizeSpan;
import android.util.Log;
+import java.util.ArrayList;
+
+import java.util.Locale;
+
import com.android.contacts.common.ContactsUtils;
import com.android.contacts.common.util.PhoneNumberHelper;
import com.android.dialer.DialtactsActivity;
@@ -141,8 +149,9 @@
.setDeleteIntent(createClearMissedCallsPendingIntent());
// Create the notification suitable for display when sensitive information is showing.
- builder.setSmallIcon(android.R.drawable.stat_notify_missed_call)
- .setColor(mContext.getResources().getColor(R.color.dialer_theme_color))
+ if (Settings.System.getInt(mContext.getContentResolver(),
+ Settings.System.KEY_MISSED_CALL_BREATH, 0) == 1) {
+ builder.setSmallIcon(R.drawable.stat_notify_missed_call_breath)
.setContentTitle(mContext.getText(titleResId))
.setContentText(expandedText)
.setContentIntent(createCallLogPendingIntent())
@@ -153,6 +162,19 @@
// notification is shown on the user's lock screen and they have chosen to hide
// sensitive notification information.
.setPublicVersion(publicBuilder.build());
+ } else {
+ builder.setSmallIcon(android.R.drawable.stat_notify_missed_call)
+ .setContentTitle(mContext.getText(titleResId))
+ .setContentText(expandedText)
+ .setContentIntent(createCallLogPendingIntent())
+ .setAutoCancel(true)
+ .setWhen(timeMs)
+ .setDeleteIntent(createClearMissedCallsPendingIntent())
+ // Include a public version of the notification to be shown when the missed call
+ // notification is shown on the user's lock screen and they have chosen to hide
+ // sensitive notification information.
+ .setPublicVersion(publicBuilder.build());
+ }
// Add additional actions when there is only 1 missed call and the user isn't locked
if (UserManagerCompat.isUserUnlocked(mContext) && count == 1) {