This repository has been archived by the owner on Feb 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/v1.1: (33 commits) Added updated APK Don't error for lint Automate the menu for version number Bumped version Added style for lightbox activity Added image taken date into image lightbox Updated readmes Added new actions Fixed issue with last water not being found correctly Fixed issue with models not comparing correctly Fixed issue with date not being set when editing a feeding Remove background from nutrient view Replaced date with new date dialog and tided up UI Changed date from edit text to normal text Set checked when saving Fixed issue with focus not toggling Added date dialog fragment and added into plant details Added clone fields and UI Added date editing for water Updated add button text ...
- Loading branch information
Showing
35 changed files
with
1,010 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package me.anon.grow; | ||
|
||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
|
||
import lombok.experimental.Accessors; | ||
import me.anon.grow.fragment.FeedingFragment; | ||
import me.anon.lib.Views; | ||
|
||
/** | ||
* // TODO: Add class description | ||
* | ||
* @author 7LPdWcaW | ||
* @documentation // TODO Reference flow doc | ||
* @project GrowTracker | ||
*/ | ||
@Views.Injectable | ||
@Accessors(prefix = {"m", ""}, chain = true) | ||
public class EditFeedingActivity extends AppCompatActivity | ||
{ | ||
private static final String TAG_FRAGMENT = "current_fragment"; | ||
|
||
@Override protected void onCreate(Bundle savedInstanceState) | ||
{ | ||
super.onCreate(savedInstanceState); | ||
|
||
setTitle("Edit feeding"); | ||
|
||
setContentView(R.layout.fragment_holder); | ||
Views.inject(this); | ||
|
||
int plantIndex = -1; | ||
int feedingIndex = -1; | ||
|
||
if (getIntent().getExtras() != null) | ||
{ | ||
plantIndex = getIntent().getExtras().getInt("plant_index", -1); | ||
feedingIndex = getIntent().getExtras().getInt("action_index", -1); | ||
} | ||
|
||
if (plantIndex < 0) | ||
{ | ||
finish(); | ||
return; | ||
} | ||
|
||
if (getFragmentManager().findFragmentByTag(TAG_FRAGMENT) == null) | ||
{ | ||
getFragmentManager().beginTransaction().replace(R.id.fragment_holder, FeedingFragment.newInstance(plantIndex, feedingIndex), TAG_FRAGMENT).commit(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.