aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/com/camilstaps/rushhour/FinishedActivity.java
diff options
context:
space:
mode:
authorCamil Staps2015-04-29 12:56:33 +0200
committerCamil Staps2015-04-29 12:56:33 +0200
commit28eb6a408045971d79b379ac5ef408cf6b84ecbd (patch)
tree366de8d3fa2bff7ecdd0d947aba3178750854523 /app/src/main/java/com/camilstaps/rushhour/FinishedActivity.java
parentcode license (diff)
Cleanup; victory sound
Diffstat (limited to 'app/src/main/java/com/camilstaps/rushhour/FinishedActivity.java')
-rw-r--r--app/src/main/java/com/camilstaps/rushhour/FinishedActivity.java19
1 files changed, 1 insertions, 18 deletions
diff --git a/app/src/main/java/com/camilstaps/rushhour/FinishedActivity.java b/app/src/main/java/com/camilstaps/rushhour/FinishedActivity.java
index 053006d..e0f3c37 100644
--- a/app/src/main/java/com/camilstaps/rushhour/FinishedActivity.java
+++ b/app/src/main/java/com/camilstaps/rushhour/FinishedActivity.java
@@ -1,21 +1,3 @@
-/*
- * Rush Hour Android app
- * Copyright (C) 2015 Randy Wanga, Jos Craaijo, Camil Staps
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
package com.camilstaps.rushhour;
import android.app.Activity;
@@ -56,6 +38,7 @@ public class FinishedActivity extends ActionBarActivity {
final int score = getIntent().getIntExtra("score", -1);
if (score != -1) {
+ TheSoundPool.getSoundPool(getBaseContext()).play(TheSoundPool.soundVictoryId, 1, 1, 1, 0, 1);
final EditText input = new EditText(this);
new AlertDialog.Builder(this)
.setTitle("Congratulations!")