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

Commit 293c46db authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update string for 3.5mm and usb audio device" into rvc-dev am:...

Merge "Update string for 3.5mm and usb audio device" into rvc-dev am: 29ab886b am: 674bf26e am: 25fb6437 am: 3d01932a

Change-Id: I2fd513dada70567ae7d885a5e173b61af5e8a9c3
parents 47d90c81 3d01932a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1376,4 +1376,7 @@

    <!-- A content description for work profile app [CHAR LIMIT=35] -->
    <string name="accessibility_work_profile_app_description">Work <xliff:g id="app_name" example="Camera">%s</xliff:g></string>

    <!-- Name of the 3.5mm and usb audio device. [CHAR LIMIT=40] -->
    <string name="media_transfer_wired_usb_device_name">Wired headphone</string>
</resources>
+2 −2
Original line number Diff line number Diff line
@@ -61,11 +61,11 @@ public class PhoneMediaDevice extends MediaDevice {
        switch (mRouteInfo.getType()) {
            case TYPE_WIRED_HEADSET:
            case TYPE_WIRED_HEADPHONES:
                name = mContext.getString(R.string.media_transfer_wired_device_name);
                break;
            case TYPE_USB_DEVICE:
            case TYPE_USB_HEADSET:
            case TYPE_USB_ACCESSORY:
                name = mContext.getString(R.string.media_transfer_wired_usb_device_name);
                break;
            case TYPE_DOCK:
            case TYPE_HDMI:
                name = mRouteInfo.getName();
+2 −2
Original line number Diff line number Diff line
@@ -100,12 +100,12 @@ public class PhoneMediaDeviceTest {
        when(mInfo.getName()).thenReturn(deviceName);

        assertThat(mPhoneMediaDevice.getName())
                .isEqualTo(mContext.getString(R.string.media_transfer_wired_device_name));
                .isEqualTo(mContext.getString(R.string.media_transfer_wired_usb_device_name));

        when(mInfo.getType()).thenReturn(TYPE_USB_DEVICE);

        assertThat(mPhoneMediaDevice.getName())
                .isEqualTo(deviceName);
                .isEqualTo(mContext.getString(R.string.media_transfer_wired_usb_device_name));

        when(mInfo.getType()).thenReturn(TYPE_BUILTIN_SPEAKER);