summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/view/TimePicker.java
blob: 191f72d2e727cfa7e99e110d89876e3e2dfd851d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package de.danoeh.antennapod.view;

import android.content.Context;
import android.util.AttributeSet;

/**
 * Samsung's Android 6.0.1 has a bug that crashes the app when inflating a time picker.
 * This class serves as a workaround for affected devices.
 */
public class TimePicker extends android.widget.TimePicker {
    public TimePicker(Context context) {
        super(context);
    }

    public TimePicker(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public TimePicker(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void onRtlPropertiesChanged(int layoutDirection) {
        try {
            super.onRtlPropertiesChanged(layoutDirection);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}