Code example for WeakReference

Methods: get

0
        return mContextView.getSubtitle();
    } 
 
    @Override 
    public View getCustomView() {
        return mCustomView != null ? mCustomView.get() : null;
    } 
 
    @Override 
    public MenuInflater getMenuInflater() {
        return new MenuInflater(mContext);
    } 
 
    public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {
        return mCallback.onActionItemClicked(this, item);
    } 
 
    public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
    } 
 
    public boolean onSubMenuSelected(SubMenuBuilder subMenu) {