Slight change to the layout, fixed NPE in task Edit page.

pull/14/head
Tim Su 16 years ago
parent 065fc1a9d4
commit 4f287f28e1

@ -29,7 +29,7 @@
android:singleLine="true"/> android:singleLine="true"/>
<TextView android:id="@+id/text2" <TextView android:id="@+id/text2"
android:layout_height="fill_parent" android:layout_height="?android:attr/listPreferredItemHeight"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:textAppearance="?android:attr/textAppearanceSmall" android:textAppearance="?android:attr/textAppearanceSmall"
android:gravity="center_vertical" android:gravity="center_vertical"

@ -151,7 +151,7 @@ public class TaskEdit extends TaskModificationActivity<TaskModelForEdit> {
if(!tagsMap.containsKey(id)) if(!tagsMap.containsKey(id))
continue; continue;
TagModelForView tag = tagsMap.get(id.getId()); TagModelForView tag = tagsMap.get(id);
addTag(tag.getName()); addTag(tag.getName());
} }
} }

Loading…
Cancel
Save