Skip to content

Commit

Permalink
Reduced toast length and timeout between pothole sensor scans.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoc committed Jun 2, 2014
1 parent 7258d61 commit 20f12ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected void onCreate(Bundle savedInstanceState) {
final Context c = getBaseContext();
PotholeDetectionService service = new PotholeDetectionService(c, new PotholeDetectionService.OnPotholeDetectedListener() {
public void onPotholeDetected() {
Toast.makeText(getApplicationContext(), "Pothole detected.", Toast.LENGTH_LONG).show();
Toast.makeText(getApplicationContext(), "Pothole detected.", Toast.LENGTH_SHORT).show();
Log.d("civic-pothole-detection", "Pothole detected");

NotificationCompat.Builder mBuilder =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,8 @@ public void run() {
}
});
fullPurge();
try {Thread.sleep(10000); } catch (InterruptedException e) {}
try {Thread.sleep(1000); } catch (InterruptedException e) {}
Log.d("civic-pothole-detection", "Continuing pothole detection");
}





}

0 comments on commit 20f12ef

Please sign in to comment.