PlayerEditor: minor fixes
This commit is contained in:
parent
a71b7aa7dc
commit
a9402823bd
3 changed files with 5 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Reference in a new issue