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

Commit dc76ad07 authored by Benson Huang's avatar Benson Huang Committed by Leo Wang
Browse files

[FM] FM default name of recording file is not correct

    Launch FM, play a channel without a name or PS info ->
    Select "Start Recording" in options menu -> Tap "STOP
    RECORDINGS" and check the default name, It is
    "FM__MMddyyyy_hhmmss".

    The fix is to change recordingName according to different
    condition.

    Bug 18780825

    Review: https://partner-android-review.git.corp.google.com/#/c/189540



    Signed-off-by: default avatarBenson Huang <benson.huang@mediatek.com>

Change-Id: I75a3565f689f552e4965ede900f07f68749ed736
parent d1e9a152
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -454,8 +454,12 @@ public class FmRecordActivity extends Activity implements
        }
        String sdcard = FmService.getRecordingSdcard();
        String recordingName = mService.getRecordingName();
        if (TextUtils.isEmpty(mStationName.getText())) {
            recordingName = FmRecorder.RECORDING_FILE_PREFIX +  "_" + recordingName;
        } else {
            recordingName = FmRecorder.RECORDING_FILE_PREFIX + "_" + mStationName.getText() + "_"
                    + recordingName;
        }
        FmSaveDialog newFragment = new FmSaveDialog(sdcard, recordingName, recordingName);
        newFragment.show(mFragmentManager, TAG_SAVE_RECORDINGD);
        mFragmentManager.executePendingTransactions();