зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1050780 - Avoid disabled items in GeckoMenu's adapter (r=margaret)
This commit is contained in:
Родитель
3b25cb1121
Коммит
101b0dbae8
|
@ -786,7 +786,9 @@ public class GeckoMenu extends ListView
|
|||
|
||||
@Override
|
||||
public boolean isEnabled(int position) {
|
||||
return getItem(position).isEnabled();
|
||||
// Setting this to true is a workaround to fix disappearing
|
||||
// dividers in the menu in L (bug 1050780).
|
||||
return true;
|
||||
}
|
||||
|
||||
public void addMenuItem(GeckoMenuItem menuItem) {
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_pressed="true">
|
||||
<item android:state_pressed="true"
|
||||
android:state_enabled="true">
|
||||
<shape>
|
||||
<solid android:color="@color/highlight" />
|
||||
</shape>
|
||||
|
|
Загрузка…
Ссылка в новой задаче