Generalize the icon popup menu types.
Generalized popup menu types and logic to allow wider uses outside of launcher. Bug: 198438631 Test: long pressed launcher icons and pressed menu options Change-Id: Iadcbb1796496c0061dcee362784e426ff55dc94a
This commit is contained in:
@@ -19,6 +19,7 @@ import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.graphics.Rect;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.View.AccessibilityDelegate;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -159,4 +160,10 @@ public interface ActivityContext {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
default View.OnClickListener getItemOnClickListener() {
|
||||
return v -> {
|
||||
// No op.
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user