Rabbit-R1/android (non root)/java/sources/com/google/android/material/datepicker/PickerFragment.java
2024-05-21 17:08:36 -04:00

26 lines
1.1 KiB
Java

package com.google.android.material.datepicker;
import androidx.fragment.app.Fragment;
import java.util.LinkedHashSet;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public abstract class PickerFragment<S> extends Fragment {
protected final LinkedHashSet<OnSelectionChangedListener<S>> onSelectionChangedListeners = new LinkedHashSet<>();
abstract DateSelector<S> getDateSelector();
/* JADX INFO: Access modifiers changed from: package-private */
public boolean addOnSelectionChangedListener(OnSelectionChangedListener<S> onSelectionChangedListener) {
return this.onSelectionChangedListeners.add(onSelectionChangedListener);
}
boolean removeOnSelectionChangedListener(OnSelectionChangedListener<S> onSelectionChangedListener) {
return this.onSelectionChangedListeners.remove(onSelectionChangedListener);
}
/* JADX INFO: Access modifiers changed from: package-private */
public void clearOnSelectionChangedListeners() {
this.onSelectionChangedListeners.clear();
}
}