mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Fix getting hours label in HoursMinutesPickerFragment
Signed-off-by: lluka <luka.lednicki@mailbox.org>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user