public void onMenuPressed() { if (!isVisible()) { setDashboardVisibility(true, DashboardType.DASHBOARD); } else { hideDashboard(); } }
private void backPressed() { if (previousVisibleType != visibleType && previousVisibleType != null) { visibleType = null; setDashboardVisibility(true, previousVisibleType); } else { hideDashboard(); } }
public void setDashboardVisibility(boolean visible, DashboardType type, boolean animation) { setDashboardVisibility(visible, type, this.visible ? visibleType : null, animation); }
public void setDashboardVisibility(boolean visible, DashboardType type) { setDashboardVisibility(visible, type, this.visible ? visibleType : null, true); }
public void hideDashboard(boolean animation) { setDashboardVisibility(false, visibleType, animation); }
public void hideDashboard() { setDashboardVisibility(false, visibleType); }