From b266cfedd108d18c54ffe35a0d977cba79ab1ab8 Mon Sep 17 00:00:00 2001 From: Jacques Foucry Date: Tue, 8 Nov 2016 12:24:02 +0100 Subject: [PATCH] Remove DummyContent class which came with template --- .../foucry/pilldroid/dummy/DummyContent.java | 72 ------------------- 1 file changed, 72 deletions(-) delete mode 100644 app/src/main/java/net/foucry/pilldroid/dummy/DummyContent.java diff --git a/app/src/main/java/net/foucry/pilldroid/dummy/DummyContent.java b/app/src/main/java/net/foucry/pilldroid/dummy/DummyContent.java deleted file mode 100644 index 8a110fc..0000000 --- a/app/src/main/java/net/foucry/pilldroid/dummy/DummyContent.java +++ /dev/null @@ -1,72 +0,0 @@ -package net.foucry.pilldroid.dummy; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * Helper class for providing sample content for user interfaces created by - * Android template wizards. - *

- * TODO: Replace all uses of this class before publishing your app. - */ -public class DummyContent { - - /** - * An array of sample (dummy) items. - */ - public static final List ITEMS = new ArrayList(); - - /** - * A map of sample (dummy) items, by ID. - */ - public static final Map ITEM_MAP = new HashMap(); - - private static final int COUNT = 25; - - static { - // Add some sample items. - for (int i = 1; i <= COUNT; i++) { - addItem(createDummyItem(i)); - } - } - - private static void addItem(DummyItem item) { - ITEMS.add(item); - ITEM_MAP.put(item.id, item); - } - - private static DummyItem createDummyItem(int position) { - return new DummyItem(String.valueOf(position), "Item " + position, makeDetails(position)); - } - - private static String makeDetails(int position) { - StringBuilder builder = new StringBuilder(); - builder.append("Details about Item: ").append(position); - for (int i = 0; i < position; i++) { - builder.append("\nMore details information here."); - } - return builder.toString(); - } - - /** - * A dummy item representing a piece of content. - */ - public static class DummyItem { - public final String id; - public final String content; - public final String details; - - public DummyItem(String id, String content, String details) { - this.id = id; - this.content = content; - this.details = details; - } - - @Override - public String toString() { - return content; - } - } -}