summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2017-06-26 19:56:05 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-26 19:56:05 +0000
commitdc73c1d4fb02ab774d152f00ffd66cc435f6fd83 (patch)
tree08ee085439b851666b23bb24918a63630e5df5e9
parente4fcd715cd924af1fd01813e883de64aa053c7d7 (diff)
parent18819f5e11c03fa77bc9a62f2d605f0be7654995 (diff)
downloadpackages_apps_Contacts-dc73c1d4fb02ab774d152f00ffd66cc435f6fd83.tar.gz
packages_apps_Contacts-dc73c1d4fb02ab774d152f00ffd66cc435f6fd83.tar.bz2
packages_apps_Contacts-dc73c1d4fb02ab774d152f00ffd66cc435f6fd83.zip
Update a few more uses of deprecated methods am: e21edc1041
am: 18819f5e11 Change-Id: Ie414dbb2eb31b8eb25b337ac941e749184084191
-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))