Commits

dgomes committed 2b3a4a9

Case we click somewhere else, also get feedback!

  • Participants
  • Parent commits fb80aa9

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()) {