Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76f065d2 authored by Justin Koh's avatar Justin Koh Committed by Android (Google) Code Review
Browse files

Merge "Add policy check to always show overflow menu button on TV devices." into jb-mr2-dev

parents 32440aa2 4207fda5
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.internal.view;
import com.android.internal.R;

import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.os.Build;
@@ -44,7 +45,10 @@ public class ActionBarPolicy {
    }

    public boolean showsOverflowMenuButton() {
        return !ViewConfiguration.get(mContext).hasPermanentMenuKey();
        return !ViewConfiguration.get(mContext).hasPermanentMenuKey() ||
                ((mContext.getResources().getConfiguration().uiMode &
                        Configuration.UI_MODE_TYPE_TELEVISION) ==
                        Configuration.UI_MODE_TYPE_TELEVISION);
    }

    public int getEmbeddedMenuWidthLimit() {