Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Added toast when clicking cancel in prepare timer
Browse files Browse the repository at this point in the history
Signed-off-by: micrusa <micrusa@hotmail.es>
  • Loading branch information
micrusa committed Apr 29, 2020
1 parent 7876aa8 commit 476f8c1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/me/micrusa/amaztimer/AmazTimer.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ public boolean onLongClick(View view) {
public boolean onLongClick(View view) {
//Return if no timer has started
if(!timersStarted()){
Toast.makeText(view.getContext(), view.getResources().getString(R.string.waitforstart), Toast.LENGTH_SHORT).show();
return true;
}
//Display start layout
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/me/micrusa/amaztimer/widget.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public boolean onLongClick(View view) {
public boolean onLongClick(View view) {
//Return if no timer has started
if(!timersStarted()){
Toast.makeText(view.getContext(), view.getResources().getString(R.string.waitforstart), Toast.LENGTH_SHORT).show();
return true;
}
//Display start layout
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
<string name="latesttrain">Último entrenamiento</string>
<string name="morepreparetime">Más tiempo para prepararse</string>
<string name="morepreparetimesum">Al activar esto la cuenta atrás de preparación durará más, 60s, de forma que tendrás tiempo para comenzar una actividad</string>
<string name="waitforstart">¡El contador no ha empezado!</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-hr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
<string name="latesttrain">Latest train</string>
<string name="morepreparetime">More time to prepare</string>
<string name="morepreparetimesum">If you enable this, prepare timer will last 60 seconds instead of 5, so you\'ll have enough time to start an activity</string>
<string name="waitforstart">Timer haven\'t started!</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
<string name="latesttrain">Ultimo allenamento</string>
<string name="morepreparetime">More time to prepare</string>
<string name="morepreparetimesum">If you enable this, prepare timer will last 60 seconds instead of 5, so you\'ll have enough time to start an activity</string>
<string name="waitforstart">Timer haven\'t started!</string>
</resources>

0 comments on commit 476f8c1

Please sign in to comment.