From 59688a58834fc55a39b09605f3d68234b8c28ae9 Mon Sep 17 00:00:00 2001 From: Daichi Hirono Date: Wed, 27 Apr 2016 14:49:06 +0900 Subject: [PATCH] Remove "don't disconnect the device" description. Previously MTP notification shows a message "don't disconnect the device". But there is no unmount button for MTP. Because it's safe to disconnect MTP device after completing file operations, we remove the message from MTP notification. Change-Id: I78b7649e3a9982c02b0312d221d395e9ac799318 Fixes: 28194216 --- packages/MtpDocumentsProvider/res/values/strings.xml | 2 -- .../MtpDocumentsProvider/src/com/android/mtp/MtpDocumentsService.java | 3 --- 2 files changed, 5 deletions(-) diff --git a/packages/MtpDocumentsProvider/res/values/strings.xml b/packages/MtpDocumentsProvider/res/values/strings.xml index 0c1ec509688f..b94aba0e19d7 100644 --- a/packages/MtpDocumentsProvider/res/values/strings.xml +++ b/packages/MtpDocumentsProvider/res/values/strings.xml @@ -25,8 +25,6 @@ %1$s %2$s Accessing files from %1$s - - Don\'t disconnect the device The other device is busy. You can\'t transfer files until it\'s available. diff --git a/packages/MtpDocumentsProvider/src/com/android/mtp/MtpDocumentsService.java b/packages/MtpDocumentsProvider/src/com/android/mtp/MtpDocumentsService.java index 9b42b7828893..c8846ce3fc1e 100644 --- a/packages/MtpDocumentsProvider/src/com/android/mtp/MtpDocumentsService.java +++ b/packages/MtpDocumentsProvider/src/com/android/mtp/MtpDocumentsService.java @@ -74,13 +74,10 @@ public class MtpDocumentsService extends Service { final String title = getResources().getString( R.string.accessing_notification_title, record.name); - final String description = getResources().getString( - R.string.accessing_notification_description); notificationId = record.deviceId; notification = new Notification.Builder(this) .setLocalOnly(true) .setContentTitle(title) - .setContentText(description) .setSmallIcon(com.android.internal.R.drawable.stat_sys_data_usb) .setCategory(Notification.CATEGORY_SYSTEM) .setPriority(Notification.PRIORITY_LOW) -- 2.11.0