fix potential crash

This commit is contained in:
Phillip Thelen 2017-02-27 09:39:21 +01:00
parent d0a0b845e4
commit 8e5343f63f
3 changed files with 9 additions and 12 deletions

View file

@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.habitrpg.android.habitica"
android:versionCode="158"
android:versionCode="159"
android:versionName="0.0.37.2"
android:screenOrientation="portrait"
android:installLocation="auto" >

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="profile_pets_and_mounts">Mascotes & Montarias</string>
<string name="profile_pets_and_mounts">Mascotes &amp; Montarias</string>
<string name="profile_pets_found">Mascotes Encontrados</string>
<string name="profile_mounts_tamed">Montarias Domesticadas</string>
<string name="profile_loading_data">Carregando dados de membro</string>

View file

@ -421,16 +421,6 @@ public class TaskFormActivity extends BaseActivity implements AdapterView.OnItem
throwable -> {
}
);
if (task.isGroupTask()) {
new AlertDialog.Builder(this)
.setTitle(R.string.group_tasks_edit_title)
.setMessage(R.string.group_tasks_edit_description)
.setPositiveButton(android.R.string.ok, (dialog, which) -> {
finish();
})
.show();
}
}
@ -729,6 +719,13 @@ public class TaskFormActivity extends BaseActivity implements AdapterView.OnItem
}
}
if (task.isGroupTask()) {
new AlertDialog.Builder(this)
.setTitle(R.string.group_tasks_edit_title)
.setMessage(R.string.group_tasks_edit_description)
.setPositiveButton(android.R.string.ok, (dialog, which) -> finish())
.show();
}
}
private void fillTagCheckboxes() {