Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59688a58 authored by Daichi Hirono's avatar Daichi Hirono
Browse files

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
parent e2be9f4a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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]-->
+0 −3
Original line number Diff line number Diff line
@@ -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)