Commits

Francesco Donadon  committed 26f943e

Changed name of GestureTestResultListener interface methods to
follow coding standard.

  • Participants
  • Parent commits 42cc7e3

Comments (0)

Files changed (2)

File src/com/hammer_inc/nonninz/android/ngestures/core/GestureTestResultListener.java

 package com.hammer_inc.nonninz.android.ngestures.core;
 
 public interface GestureTestResultListener {
-	public void gestureRecognized(String gesture, double accuracy);
+	public void onGestureRecognized(String gesture, double accuracy);
 	
-	public void gestureUnknown();
+	public void onGestureUnknown();
 	
-	public void testError(Throwable error);
+	public void onTestError(Throwable error);
 }

File src/com/hammer_inc/nonninz/android/ngestures/core/GestureTester.java

 			performTests();
 		} catch (StorageErrorException e) {
 			e.printStackTrace();
-			mTestResultListener.testError(e);
+			mTestResultListener.onTestError(e);
 			return;
 		} finally {
 			mTestingThread = null;			
 				startRecording();
 			}
 			catch (Exception e) {
-				mTestResultListener.testError(e);
+				mTestResultListener.onTestError(e);
 			}	
 		}
 	}
 		
 		// If results > threshold, give results to listener.
 		if (bestGestureScore <= ACCEPTANCE_THRESHOLD) {
-			mTestResultListener.gestureRecognized(bestGesture, bestGestureScore);
+			mTestResultListener.onGestureRecognized(bestGesture, bestGestureScore);
 		}
 		else {
-			mTestResultListener.gestureUnknown();
+			mTestResultListener.onGestureUnknown();
 		}
 	}