1
0
Fork 0

PlayerEditor: minor fixes

This commit is contained in:
Carlos Galindo 2015-07-21 17:40:47 +02:00
parent a71b7aa7dc
commit a9402823bd
3 changed files with 5 additions and 4 deletions

View file

@ -7,8 +7,8 @@ android {
applicationId 'com.kauron.dungeonmanager'
minSdkVersion 16
targetSdkVersion 21
versionCode 4
versionName '0.2.2'
versionCode 5
versionName '0.2.3'
}
buildTypes {
release {

View file

@ -167,7 +167,7 @@ public class PlayerEditor extends ActionBarActivity {
}
} else {
isNew = false;
if (nameString != player.getName()) {
if (nameString.equals(player.getName())) {
getSharedPreferences(player.getName(), MODE_PRIVATE).edit().clear().apply();
p.edit().putString("player" + position, nameString).apply();
}

View file

@ -183,7 +183,8 @@
android:layout_toRightOf="@+id/thirdLayout"
android:layout_alignRight="@+id/defenseButton"
android:layout_alignEnd="@+id/defenseButton"
android:onClick="onAbilityClick" />
android:onClick="onAbilityClick"
android:visibility="gone" />
</RelativeLayout>