10bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta/* 20bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * Copyright (C) 2014 The Android Open Source Project 30bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * 40bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * Licensed under the Apache License, Version 2.0 (the "License"); 50bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * you may not use this file except in compliance with the License. 60bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * You may obtain a copy of the License at 70bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * 80bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * http://www.apache.org/licenses/LICENSE-2.0 90bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * 100bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * Unless required by applicable law or agreed to in writing, software 110bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * distributed under the License is distributed on an "AS IS" BASIS, 120bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 130bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * See the License for the specific language governing permissions and 140bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * limitations under the License. 150bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta */ 160bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta 170bffc736e1f260724764d31f7499cbc09471a535Deepanshu Guptapackage android.widget; 180bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta 190bffc736e1f260724764d31f7499cbc09471a535Deepanshu Guptaimport android.content.Context; 200bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta 210bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta/** 220bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta * To access non public members of classes in {@link Toolbar} 230bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta */ 240bffc736e1f260724764d31f7499cbc09471a535Deepanshu Guptapublic class Toolbar_Accessor { 250bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta public static ActionMenuPresenter getActionMenuPresenter(Toolbar toolbar) { 260bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta return toolbar.getOuterActionMenuPresenter(); 270bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta } 280bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta 290bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta public static Context getPopupContext(Toolbar toolbar) { 300bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta return toolbar.getPopupContext(); 310bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta } 320bffc736e1f260724764d31f7499cbc09471a535Deepanshu Gupta} 33