Skip to content

Commit

Permalink
renaming & added missing string
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobi Kowalski authored and Tobi Kowalski committed Mar 5, 2017
1 parent dde2a8b commit fda5632
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import android.view.View;

import org.secuso.privacyfriendlywerwolf.R;
import org.secuso.privacyfriendlywerwolf.dialog.PlayerNameInputDialog;
import org.secuso.privacyfriendlywerwolf.dialog.PlayerInputDialog;

/**
* Base activity is the template for all other activities to inherite
Expand Down Expand Up @@ -148,9 +148,9 @@ private void callDrawerItem(final int itemId) {
startActivity(intent);
break;
case R.id.nav_new_game:
PlayerNameInputDialog playerNameInputDialog = new PlayerNameInputDialog();
playerNameInputDialog.setCancelable(false);
playerNameInputDialog.show(getFragmentManager(), "dialog_from_drawer");
PlayerInputDialog playerInputDialog = new PlayerInputDialog();
playerInputDialog.setCancelable(false);
playerInputDialog.show(getFragmentManager(), "dialog_from_drawer");
break;
case R.id.nav_join_game:
intent = new Intent(this, StartClientActivity.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import android.widget.Button;

import org.secuso.privacyfriendlywerwolf.R;
import org.secuso.privacyfriendlywerwolf.dialog.PlayerNameInputDialog;
import org.secuso.privacyfriendlywerwolf.dialog.PlayerInputDialog;

/**
* Starting activiy when the game is fully loaded and tutorial is passed
Expand Down Expand Up @@ -54,9 +54,9 @@ public void onClick(View view) {
* @param view
*/
public void startNewGame(View view) {
PlayerNameInputDialog playerNameInputDialog = new PlayerNameInputDialog();
playerNameInputDialog.setCancelable(false);
playerNameInputDialog.show(getFragmentManager(), "playerNameInputDialog");
PlayerInputDialog playerInputDialog = new PlayerInputDialog();
playerInputDialog.setCancelable(false);
playerInputDialog.show(getFragmentManager(), "playerInputDialog");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @author Tobias Kowalski <[email protected]>
*/
public class PlayerNameInputDialog extends DialogFragment {
public class PlayerInputDialog extends DialogFragment {

private EditText userInput;
private SharedPreferences sharedPref;
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,5 @@
<string name="credit_artist">Interpret: Kevin MacLeod</string>
<string name="license_cc_url">Lizenz: <a href="http://creativecommons.org/licenses/by/3.0/">CC-BY-3.0</a></string>
<string name="credit_url">Quelle: <a href="http://incompetech.com/music/royalty-free/?keywords=comfortable+mystery+2">Incompetech</a></string>
<string name="pref_cat_title_timer">Timer</string>
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ After these phases the process starts again.</string>
<string name="credit_artist">Artist: Kevin MacLeod</string>
<string name="license_cc_url">License: <a href="http://creativecommons.org/licenses/by/3.0/">CC-BY-3.0</a></string>
<string name="credit_url">Source: <a href="http://incompetech.com/music/royalty-free/?keywords=comfortable+mystery+2">Incompetech</a></string>
<string name="pref_cat_title_timer">Timer</string>
<string name="pref_cat_title">Timer</string>
</resources>


0 comments on commit fda5632

Please sign in to comment.