Suppress RestrictedApi in CustomPopupMenu

There is no substitute in SDK for MenuBuilder
This commit is contained in:
serso 2017-07-11 12:33:00 +02:00
parent fcbb675af0
commit 8ce905bf64

View File

@ -39,7 +39,7 @@ import android.view.View;
* to switch to the framework's implementation. See the framework SDK * to switch to the framework's implementation. See the framework SDK
* documentation for a class overview. * documentation for a class overview.
*/ */
@SuppressWarnings("unused") @SuppressWarnings({"unused", "RestrictedApi"})
public class CustomPopupMenu implements MenuBuilder.Callback, MenuPresenter.Callback { public class CustomPopupMenu implements MenuBuilder.Callback, MenuPresenter.Callback {
private Context mContext; private Context mContext;
private MenuBuilder mMenu; private MenuBuilder mMenu;