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'
|
applicationId 'com.kauron.dungeonmanager'
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 21
|
targetSdkVersion 21
|
||||||
versionCode 4
|
versionCode 5
|
||||||
versionName '0.2.2'
|
versionName '0.2.3'
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
|
|
@ -167,7 +167,7 @@ public class PlayerEditor extends ActionBarActivity {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
isNew = false;
|
isNew = false;
|
||||||
if (nameString != player.getName()) {
|
if (nameString.equals(player.getName())) {
|
||||||
getSharedPreferences(player.getName(), MODE_PRIVATE).edit().clear().apply();
|
getSharedPreferences(player.getName(), MODE_PRIVATE).edit().clear().apply();
|
||||||
p.edit().putString("player" + position, nameString).apply();
|
p.edit().putString("player" + position, nameString).apply();
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,7 +183,8 @@
|
||||||
android:layout_toRightOf="@+id/thirdLayout"
|
android:layout_toRightOf="@+id/thirdLayout"
|
||||||
android:layout_alignRight="@+id/defenseButton"
|
android:layout_alignRight="@+id/defenseButton"
|
||||||
android:layout_alignEnd="@+id/defenseButton"
|
android:layout_alignEnd="@+id/defenseButton"
|
||||||
android:onClick="onAbilityClick" />
|
android:onClick="onAbilityClick"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
Reference in a new issue