Added default values to History, fixed a bug

pull/14/head
Sam Bosley 12 years ago
parent ac6a3d2328
commit 93fba4a652

@ -74,6 +74,10 @@ public class History extends AbstractModel {
static {
defaultValues.put(UUID.name, 0L);
defaultValues.put(CREATED_AT.name, 0L);
defaultValues.put(USER_UUID.name, "0");
defaultValues.put(OLD_VALUE.name, "");
defaultValues.put(NEW_VALUE.name, "");
defaultValues.put(TASK.name, "");
}
@Override

@ -85,7 +85,7 @@ public class UpdateAdapter extends CursorAdapter {
private static final StringProperty USER_NAME = User.NAME.cloneAs(USER_TABLE_ALIAS, "userName"); //$NON-NLS-1$
public static final StringProperty ACTIVITY_TYPE_PROPERTY = new StringProperty(null, "'" + NameMaps.TABLE_ID_USER_ACTIVITY + "' as type"); //$NON-NLS-1$//$NON-NLS-2$
public static final StringProperty HISTORY_TYPE_PROPERTY = new StringProperty(null, "'" + NameMaps.TABLE_ID_HISTORY + "'"); //$NON-NLS-1$
public static final StringProperty HISTORY_TYPE_PROPERTY = new StringProperty(null, "'" + NameMaps.TABLE_ID_HISTORY + "'"); //$NON-NLS-1$ //$NON-NLS-2$
public static final StringProperty PADDING_PROPERTY = new StringProperty(null, "'0'"); //$NON-NLS-1$
public static final Property<?>[] USER_PROPERTIES = {
@ -453,7 +453,7 @@ public class UpdateAdapter extends CursorAdapter {
} else {
item = context.getString(R.string.history_this_list);
}
itemPosessive = "";
itemPosessive = item + "'s";
}
String oldValue = history.getValue(History.OLD_VALUE);

Loading…
Cancel
Save