Skip to content

Commit

Permalink
Fixes #84
Browse files Browse the repository at this point in the history
Merge branch 'feature/seedling-stage' into develop

* feature/seedling-stage:
  Adds seedling stage
  • Loading branch information
7LPdWcaW authored and 7LPdWcaW committed Jun 15, 2019
2 parents ae07a1f + e6f18e1 commit 2eaf556
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ else if (item.getItemId() == R.id.delete_garden)
saveCurrentState();
}

int[] ids = {R.id.filter_planted, R.id.filter_germination, R.id.filter_cutting, R.id.filter_vegetation, R.id.filter_flowering, R.id.filter_drying, R.id.filter_curing, R.id.filter_harvested};
int[] ids = {R.id.filter_planted, R.id.filter_germination, R.id.filter_seedling, R.id.filter_cutting, R.id.filter_vegetation, R.id.filter_flowering, R.id.filter_drying, R.id.filter_curing, R.id.filter_harvested};
PlantStage[] stages = PlantStage.values();

for (int index = 0; index < ids.length; index++)
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/me/anon/model/PlantStage.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public enum PlantStage
{
PLANTED("Planted"),
GERMINATION("Germination"),
SEEDLING("Seedling"),
CUTTING("Cutting"),
VEGETATION("Vegetation"),
FLOWER("Flower"),
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/menu/plant_list_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
android:checked="true"
/>

<item
android:id="@+id/filter_seedling"
android:title="Seedling"
android:checked="true"
/>

<item
android:id="@+id/filter_cutting"
android:title="Cutting"
Expand Down

0 comments on commit 2eaf556

Please sign in to comment.