Commits

dgomes  committed aa8c331 Merge

Merge branch 'click' into rewind

  • Participants
  • Parent commits 0c4b17e, ba14f1f

Comments (0)

Files changed (1)

File HoloGraphLibrary/src/com/echo/holographlibrary/PieGraph.java

                 count++;
             }
         }
+        // Case we click somewhere else, also get feedback!
+        if(MotionEvent.ACTION_UP == event.getAction()
+                && mSelectedIndex == -1
+                && mListener != null) {
+            mListener.onClick(mSelectedIndex);
+        }
         // Reset selection
         if (MotionEvent.ACTION_UP == event.getAction()
                 || MotionEvent.ACTION_CANCEL == event.getAction()) {