Bug 1050780 - Avoid disabled items in GeckoMenu's adapter (r=margaret)

This commit is contained in:
Lucas Rocha 2014-09-02 10:47:16 +01:00
Родитель 3b25cb1121
Коммит 101b0dbae8
2 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -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>