1
1
package com .kunzisoft .switchdatetime ;
2
2
3
3
import android .app .Dialog ;
4
- import android .content .Context ;
5
4
import android .content .DialogInterface ;
6
5
import android .content .res .Configuration ;
7
6
import android .graphics .Color ;
8
7
import android .os .Bundle ;
9
-
10
- import androidx .annotation .NonNull ;
11
- import androidx .annotation .StyleRes ;
12
- import androidx .fragment .app .DialogFragment ;
13
- import androidx .appcompat .app .AlertDialog ;
14
-
15
8
import android .view .LayoutInflater ;
16
9
import android .view .View ;
17
10
import android .view .ViewGroup ;
20
13
import android .widget .TextView ;
21
14
import android .widget .ViewAnimator ;
22
15
16
+ import androidx .annotation .NonNull ;
17
+ import androidx .annotation .StyleRes ;
18
+ import androidx .appcompat .app .AlertDialog ;
19
+ import androidx .fragment .app .DialogFragment ;
20
+
23
21
import com .kunzisoft .switchdatetime .date .OnYearSelectedListener ;
24
22
import com .kunzisoft .switchdatetime .date .widget .ListPickerYearView ;
25
23
import com .kunzisoft .switchdatetime .time .SwitchTimePicker ;
@@ -616,7 +614,7 @@ public void setAlertStyle(@StyleRes int styleId) {
616
614
/**
617
615
* Class exception if SimpleDateFormat contains something else that "d" or/and "M"
618
616
*/
619
- public class SimpleDateMonthAndDayFormatException extends Exception {
617
+ public static class SimpleDateMonthAndDayFormatException extends Exception {
620
618
SimpleDateMonthAndDayFormatException (String message ) {
621
619
super (message );
622
620
}
@@ -644,7 +642,7 @@ public interface OnButtonWithNeutralClickListener extends OnButtonClickListener
644
642
public enum HeaderViewsPosition {
645
643
VIEW_HOURS_AND_MINUTES (0 ), VIEW_MONTH_AND_DAY (1 ), VIEW_YEAR (2 );
646
644
647
- private int positionSwitch ;
645
+ private final int positionSwitch ;
648
646
649
647
HeaderViewsPosition (int position ) {
650
648
this .positionSwitch = position ;
@@ -659,7 +657,7 @@ public int getPosition() {
659
657
* Listener for click on Header element
660
658
*/
661
659
public class OnClickHeaderElementListener implements View .OnClickListener {
662
- private int positionView ;
660
+ private final int positionView ;
663
661
664
662
OnClickHeaderElementListener (int positionView ) {
665
663
this .positionView = positionView ;
0 commit comments