summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2017-06-26 10:10:04 -0400
committerJulia Reynolds <juliacr@google.com>2017-06-26 16:06:11 +0000
commite21edc10413e5c16c1b21ad1a1f35807a7c2fb31 (patch)
treed69536c095fa4e2a04af788a75d486c3f484afd5
parent20ee0bad100bdc2c3c0f0a66c2431460e610eb2a (diff)
downloadpackages_apps_Contacts-e21edc10413e5c16c1b21ad1a1f35807a7c2fb31.tar.gz
packages_apps_Contacts-e21edc10413e5c16c1b21ad1a1f35807a7c2fb31.tar.bz2
packages_apps_Contacts-e21edc10413e5c16c1b21ad1a1f35807a7c2fb31.zip
Update a few more uses of deprecated methods
Test: make Bug: 37863673 Change-Id: I24a38bfaa11c6a9d75d264ab9861dc2e5ee57b2e (cherry picked from commit 580d1b50021e74f783adeaed660ad7b7d2e2a0ed)
-rw-r--r--src/com/android/contacts/SimImportService.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/contacts/SimImportService.java b/src/com/android/contacts/SimImportService.java
index 60de982b6..1e41af005 100644
--- a/src/com/android/contacts/SimImportService.java
+++ b/src/com/android/contacts/SimImportService.java
@@ -189,9 +189,9 @@ public class SimImportService extends Service {
private Notification getCompletedNotification() {
final Intent intent = new Intent(this, PeopleActivity.class);
- final NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
+ final NotificationCompat.Builder builder = new NotificationCompat.Builder(
+ this, ContactsNotificationChannelsUtil.DEFAULT_CHANNEL);
builder.setOngoing(false)
- .setChannel(ContactsNotificationChannelsUtil.DEFAULT_CHANNEL)
.setAutoCancel(true)
.setContentTitle(this.getString(R.string.importing_sim_finished_title))
.setColor(this.getResources().getColor(R.color.dialtacts_theme_color))
@@ -202,9 +202,9 @@ public class SimImportService extends Service {
private Notification getFailedNotification() {
final Intent intent = new Intent(this, PeopleActivity.class);
- final NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
+ final NotificationCompat.Builder builder = new NotificationCompat.Builder(
+ this, ContactsNotificationChannelsUtil.DEFAULT_CHANNEL);
builder.setOngoing(false)
- .setChannel(ContactsNotificationChannelsUtil.DEFAULT_CHANNEL)
.setAutoCancel(true)
.setContentTitle(this.getString(R.string.importing_sim_failed_title))
.setContentText(this.getString(R.string.importing_sim_failed_message))
@@ -215,10 +215,10 @@ public class SimImportService extends Service {
}
private Notification getImportingNotification() {
- final NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
+ final NotificationCompat.Builder builder = new NotificationCompat.Builder(
+ this, ContactsNotificationChannelsUtil.DEFAULT_CHANNEL);
final String description = getString(R.string.importing_sim_in_progress_title);
builder.setOngoing(true)
- .setChannel(ContactsNotificationChannelsUtil.DEFAULT_CHANNEL)
.setProgress(/* current */ 0, /* max */ 100, /* indeterminate */ true)
.setContentTitle(description)
.setColor(this.getResources().getColor(R.color.dialtacts_theme_color))