Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Jamet committed Sep 7, 2021
1 parent 5599d7f commit cfcb0ec
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
package com.kunzisoft.switchdatetime;

import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Configuration;
import android.graphics.Color;
import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.StyleRes;
import androidx.fragment.app.DialogFragment;
import androidx.appcompat.app.AlertDialog;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand All @@ -20,6 +13,11 @@
import android.widget.TextView;
import android.widget.ViewAnimator;

import androidx.annotation.NonNull;
import androidx.annotation.StyleRes;
import androidx.appcompat.app.AlertDialog;
import androidx.fragment.app.DialogFragment;

import com.kunzisoft.switchdatetime.date.OnYearSelectedListener;
import com.kunzisoft.switchdatetime.date.widget.ListPickerYearView;
import com.kunzisoft.switchdatetime.time.SwitchTimePicker;
Expand Down Expand Up @@ -616,7 +614,7 @@ public void setAlertStyle(@StyleRes int styleId) {
/**
* Class exception if SimpleDateFormat contains something else that "d" or/and "M"
*/
public class SimpleDateMonthAndDayFormatException extends Exception {
public static class SimpleDateMonthAndDayFormatException extends Exception {
SimpleDateMonthAndDayFormatException(String message) {
super(message);
}
Expand Down Expand Up @@ -644,7 +642,7 @@ public interface OnButtonWithNeutralClickListener extends OnButtonClickListener
public enum HeaderViewsPosition {
VIEW_HOURS_AND_MINUTES(0), VIEW_MONTH_AND_DAY(1), VIEW_YEAR(2);

private int positionSwitch;
private final int positionSwitch;

HeaderViewsPosition(int position) {
this.positionSwitch = position;
Expand All @@ -659,7 +657,7 @@ public int getPosition() {
* Listener for click on Header element
*/
public class OnClickHeaderElementListener implements View.OnClickListener {
private int positionView;
private final int positionView;

OnClickHeaderElementListener(int positionView) {
this.positionView = positionView;
Expand Down

0 comments on commit cfcb0ec

Please sign in to comment.