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

Commit 0bb7b9a9 authored by Justin Klaassen's avatar Justin Klaassen
Browse files

Fix crash from using Fragment#getContext()

Bug: 25920813
Change-Id: I23bb3152c4597e0a974d5deac057d439a977b3e0
parent c413a9fd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -54,11 +54,11 @@ public class CrescendoLengthDialogFragment extends PreferenceDialogFragment {
        final int crescendoSeconds = preference.getPersistedCrescendoLength();

        final TextView unitView = (TextView) view.findViewById(R.id.title);
        unitView.setText(getContext().getString(R.string.crescendo_picker_label));
        unitView.setText(R.string.crescendo_picker_label);
        updateUnits(unitView, crescendoSeconds);

        final String[] displayedValues = new String[13];
        displayedValues[0] = getContext().getString(R.string.no_crescendo_duration);
        displayedValues[0] = getString(R.string.no_crescendo_duration);
        for (int i = 1; i < displayedValues.length; i++) {
            displayedValues[i] = String.valueOf(i * CRESCENDO_TIME_STEP);
        }