Archived
Style chages to category dialog. Added 'Alle' to the list of categgories.
This commit is contained in:
1 parent
911c2edd10
commit
9f1b800ced
6 files changed
+17
-5
No files matched your search
@@ -42,6 +42,14 @@ public class DataHandler {
|
||||
}
|
||||
|
||||
public String[] getCategories() {
|
||||
return categories.toArray(new String[categories.size()]);
|
||||
String[] result = new String[categories.size() + 1];
|
||||
result[0] = Event.ALL;
|
||||
|
||||
int counter = 1;
|
||||
for (String c : categories) {
|
||||
result[counter++] = c;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import java.io.Serializable;
|
||||
|
||||
public class Event implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
public static final String ALL = "all";
|
||||
public static final String ALL = "Alle";
|
||||
|
||||
public int id;
|
||||
public String title;
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ChooseCategoryDialog extends Dialog {
|
||||
this.callback = callback;
|
||||
|
||||
setContentView(R.layout.choose_category_dialog);
|
||||
setTitle("Choose category");
|
||||
setTitle(R.string.choose_category);
|
||||
setOnDismissListener(new OnDismiss());
|
||||
populateList(context, categories);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user