summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2017-06-26 19:56:06 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-26 19:56:06 +0000
commita6bd30d752f5da27c4faa2f781068d258933c043 (patch)
tree08ee085439b851666b23bb24918a63630e5df5e9
parente4fcd715cd924af1fd01813e883de64aa053c7d7 (diff)
parent3ef7eb7c1790edce3bd8a065c8de964dc25b8d9a (diff)
downloadContacts-a6bd30d752f5da27c4faa2f781068d258933c043.tar.gz
Update a few more uses of deprecated methods am: e21edc1041
am: 3ef7eb7c17 Change-Id: Ibab80adc5ada3c8dfb449b32262f34f7e9f8c68e
-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))