Merge "Update string to enable transcode via MTP" into sc-dev am: 17608ff21a
am: 0eebaf719e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15095781 Change-Id: I24f18d35110a9ec0748addc5fde327f7aaf2fc2e
This commit is contained in:
@@ -10590,7 +10590,11 @@
|
|||||||
<!-- Title of one of the choices in a dialog (with title defined in usb_use) that lets the user
|
<!-- Title of one of the choices in a dialog (with title defined in usb_use) that lets the user
|
||||||
select what the USB connection for this device should be used for. This choice
|
select what the USB connection for this device should be used for. This choice
|
||||||
is for transcoding the files that are transferred via MTP. -->
|
is for transcoding the files that are transferred via MTP. -->
|
||||||
<string name="usb_transcode_files">Transcode exported media</string>
|
<string name="usb_transcode_files">Convert videos to AVC</string>
|
||||||
|
<!-- The summary text that appears when the user enables the 'Convert videos to AVC' option for
|
||||||
|
transcoding files to compatible formats before transferring them from the device to PC.
|
||||||
|
[CHAR LIMIT=NONE] -->
|
||||||
|
<string name="usb_transcode_files_summary">Videos will play on more media players, but quality may be reduced</string>
|
||||||
<!-- Description of one of the choices in a dialog (with title defined in usb_use) that lets the user
|
<!-- Description of one of the choices in a dialog (with title defined in usb_use) that lets the user
|
||||||
select what the USB connection for this device should be used for. This choice
|
select what the USB connection for this device should be used for. This choice
|
||||||
is for transferring photos via PTP. -->
|
is for transferring photos via PTP. -->
|
||||||
|
@@ -55,6 +55,7 @@ public class UsbDetailsTranscodeMtpController extends UsbDetailsController
|
|||||||
mSwitchPreference = new SwitchPreference(mPreferenceCategory.getContext());
|
mSwitchPreference = new SwitchPreference(mPreferenceCategory.getContext());
|
||||||
mSwitchPreference.setTitle(R.string.usb_transcode_files);
|
mSwitchPreference.setTitle(R.string.usb_transcode_files);
|
||||||
mSwitchPreference.setOnPreferenceClickListener(this);
|
mSwitchPreference.setOnPreferenceClickListener(this);
|
||||||
|
mSwitchPreference.setSummaryOn(R.string.usb_transcode_files_summary);
|
||||||
mPreferenceCategory.addPreference(mSwitchPreference);
|
mPreferenceCategory.addPreference(mSwitchPreference);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user