Fix getting hours label in HoursMinutesPickerFragment

Signed-off-by: lluka <luka.lednicki@mailbox.org>
This commit is contained in:
lluka
2025-09-24 10:32:07 +02:00
parent 7e86a6f609
commit 8de440729e

View File

@@ -9,6 +9,7 @@ import android.text.format.DateFormat;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.widget.Button; import android.widget.Button;
import android.widget.TextView;
import android.widget.TimePicker; import android.widget.TimePicker;
import androidx.annotation.IntRange; import androidx.annotation.IntRange;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
@@ -133,7 +134,7 @@ public class HoursMinutesPickerFragment extends BaseMwmDialogFragment
if (id != 0) if (id != 0)
{ {
mPickerHoursLabel = mPicker.findViewById(id); mPickerHoursLabel = mPicker.findViewById(id);
if (!(mPickerHoursLabel instanceof MaterialTextView)) if (!(mPickerHoursLabel instanceof TextView))
mPickerHoursLabel = null; mPickerHoursLabel = null;
} }