25 lines
922 B
Java
25 lines
922 B
Java
package androidx.appcompat.app;
|
|
|
|
import android.view.View;
|
|
import android.widget.AdapterView;
|
|
import androidx.appcompat.app.ActionBar;
|
|
public class NavItemSelectedListener implements AdapterView.OnItemSelectedListener {
|
|
private final ActionBar.OnNavigationListener mListener;
|
|
|
|
public NavItemSelectedListener(ActionBar.OnNavigationListener onNavigationListener) {
|
|
this.mListener = onNavigationListener;
|
|
}
|
|
|
|
@Override // android.widget.AdapterView.OnItemSelectedListener
|
|
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long j) {
|
|
ActionBar.OnNavigationListener onNavigationListener = this.mListener;
|
|
if (onNavigationListener != null) {
|
|
onNavigationListener.onNavigationItemSelected(i, j);
|
|
}
|
|
}
|
|
|
|
@Override // android.widget.AdapterView.OnItemSelectedListener
|
|
public void onNothingSelected(AdapterView<?> adapterView) {
|
|
}
|
|
}
|