Exemple #1
0
 public void onMenuPressed() {
   if (!isVisible()) {
     setDashboardVisibility(true, DashboardType.DASHBOARD);
   } else {
     hideDashboard();
   }
 }
Exemple #2
0
 private void backPressed() {
   if (previousVisibleType != visibleType && previousVisibleType != null) {
     visibleType = null;
     setDashboardVisibility(true, previousVisibleType);
   } else {
     hideDashboard();
   }
 }
Exemple #3
0
 public void setDashboardVisibility(boolean visible, DashboardType type, boolean animation) {
   setDashboardVisibility(visible, type, this.visible ? visibleType : null, animation);
 }
Exemple #4
0
 public void setDashboardVisibility(boolean visible, DashboardType type) {
   setDashboardVisibility(visible, type, this.visible ? visibleType : null, true);
 }
Exemple #5
0
 public void hideDashboard(boolean animation) {
   setDashboardVisibility(false, visibleType, animation);
 }
Exemple #6
0
 public void hideDashboard() {
   setDashboardVisibility(false, visibleType);
 }