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

Commit e0c5569d authored by Justin Koh's avatar Justin Koh Committed by Android Git Automerger
Browse files

am 76f065d2: Merge "Add policy check to always show overflow menu button on TV...

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

* commit '76f065d2':
  Add policy check to always show overflow menu button on TV devices.
parents 7ca095f0 76f065d2
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() {