Merge "Remove "don't disconnect the device" description." into nyc-dev

This commit is contained in:
Daichi Hirono
2016-05-03 01:08:04 +00:00
committed by Android (Google) Code Review
2 changed files with 0 additions and 5 deletions

View File

@@ -25,8 +25,6 @@
<string name="root_name"><xliff:g id="device_model" example="Nexus 9">%1$s</xliff:g> <xliff:g id="storage_name" example="Internal Storage">%2$s</xliff:g></string>
<!-- Title of notification showing Files app is accessing files in a MTP device. [CHAR LIMIT=60]-->
<string name="accessing_notification_title">Accessing files from <xliff:g id="device_model" example="Nexus 9">%1$s</xliff:g></string>
<!-- Description of notification showing Files app is accessing files in a MTP device. [CHAR LIMIT=60]-->
<string name="accessing_notification_description">Don\'t disconnect the device</string>
<!-- Error message shown in Files app when the connected MTP device is busy. [CHAR LIMIT=150]-->
<string name="error_busy_device">The other device is busy. You can\'t transfer files until it\'s available.</string>
<!-- Error message shown in Files app when the connected MTP device may be locked. [CHAR LIMIT=150]-->

View File

@@ -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)