diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 176c01a11..5e3bfb6e9 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -34,9 +34,18 @@
-
-
-
+
+
+
+
-
\ No newline at end of file
+
diff --git a/app/src/main/java/de/dreier/mytargets/features/training/input/InputActivity.java b/app/src/main/java/de/dreier/mytargets/features/training/input/InputActivity.java
index ed1248992..91d853c93 100644
--- a/app/src/main/java/de/dreier/mytargets/features/training/input/InputActivity.java
+++ b/app/src/main/java/de/dreier/mytargets/features/training/input/InputActivity.java
@@ -398,32 +398,36 @@ private void updateEnd() {
R.string.round) + " " + (data.getCurrentRound().index + 1) + "/" + data.training
.getRounds().size());
updateNavigationButtons();
-
- // Send message to wearable app, that we are starting an end
- new Thread(InputActivity.this::startWearNotification).start();
+ updateWearNotification();
}
private void startWearNotification() {
NotificationInfo info = buildInfo();
- manager = new WearMessageManager(this, info);
+ if (manager == null) {
+ manager = new WearMessageManager(this, info);
+ } else {
+ manager.sendMessageUpdate(info);
+ }
}
private NotificationInfo buildInfo() {
- String title = getString(R.string.passe) + " " + (data.getEnds().size());
+ String title = getString(R.string.my_targets);
String text = "";
// Initialize message text
if (data.getEnds().size() > 0) {
End lastEnd = lastItem(data.getEnds());
- if(lastEnd != null) {
+ if (lastEnd != null && lastEnd.getId() == null && data.getEnds().size() > 1) {
+ lastEnd = data.getEnds().get(data.getEnds().size() - 2);
+ }
+ if (lastEnd != null && lastEnd.getId() != null) { //TODO change when merging with #4
+ title = getString(R.string.passe) + " " + (lastEnd.index + 1);
for (Shot shot : lastEnd.getShots()) {
text += data.getCurrentRound().getTarget()
.zoneToString(shot.scoringRing, shot.index) + " ";
}
text += "\n";
}
- } else {
- title = getString(R.string.my_targets);
}
// Load bow settings
@@ -438,6 +442,11 @@ private void updateNavigationButtons() {
updateNextButton();
}
+ private void updateWearNotification() {
+ // Send message to wearable app, that we are starting an end
+ new Thread(InputActivity.this::startWearNotification).start();
+ }
+
private void updatePreviousButton() {
final boolean isFirstEnd = data.endIndex == 0;
final boolean isFirstRound = data.roundIndex == 0;
@@ -532,8 +541,11 @@ public void onEndUpdated(List changedEnd) {
@Override
public void onEndFinished(List shots, boolean remote) {
- if(remote && data.getCurrentRound().getEnds().size() > data.endIndex) {
- data.endIndex = data.getCurrentRound().getEnds().size();
+ if (remote) {
+ data.endIndex = data.getCurrentRound().getEnds().size() - 1;
+ if (data.getCurrentEnd().getId() != null) {
+ data.endIndex = data.getCurrentRound().getEnds().size();
+ }
}
data.getCurrentEnd().setShots(shots);
data.getCurrentEnd().exact = targetView.getInputMode() == EInputMethod.PLOTTING && !remote;
@@ -543,11 +555,10 @@ public void onEndFinished(List shots, boolean remote) {
data.getCurrentEnd().save();
- if (manager != null) {
- manager.sendMessageUpdate(buildInfo());
- }
if (remote) {
- showEnd(data.getEnds().size());
+ showEnd(data.getEnds().size() - 1);
+ } else {
+ updateWearNotification();
}
updateNavigationButtons();
supportInvalidateOptionsMenu();
diff --git a/app/src/main/java/de/dreier/mytargets/features/training/input/TargetView.java b/app/src/main/java/de/dreier/mytargets/features/training/input/TargetView.java
index f2754d294..630d7375d 100644
--- a/app/src/main/java/de/dreier/mytargets/features/training/input/TargetView.java
+++ b/app/src/main/java/de/dreier/mytargets/features/training/input/TargetView.java
@@ -33,7 +33,6 @@
import android.text.InputType;
import android.text.TextPaint;
import android.util.AttributeSet;
-import android.util.Log;
import android.util.Property;
import android.view.MotionEvent;
import android.view.View;
@@ -112,7 +111,6 @@ public Matrix get(TargetView targetView) {
private static final int POINTER_OFFSET_Y_DP = -60;
private static final int MIN_END_RECT_HEIGHT_DP = 80;
private static final int KEYBOARD_INNER_PADDING_DP = 40;
- private static final String TAG = "TargetView";
private Matrix[] spotMatrices;
private boolean arrowNumbering;
private Dimension arrowDiameter;
@@ -198,11 +196,6 @@ private void init() {
@Override
public void setEnd(End end) {
- Log.d(TAG, "setEnd: " + end.getShots());
- shots = end.getShots();
- setCurrentShotIndex(getNextShotIndex(-1));
- endRenderer.setShots(shots);
- endRenderer.setSelection(getCurrentShotIndex(), null, EndRenderer.MAX_CIRCLE_SIZE);
EInputMethod inputMethod;
if (end.getId() != null) {
inputMethod = end.exact ? PLOTTING : KEYBOARD;
@@ -210,8 +203,7 @@ public void setEnd(End end) {
inputMethod = SettingsManager.getInputMethod();
}
setInputMethod(inputMethod, false);
- animateToNewState();
- notifyTargetShotsChanged();
+ super.setEnd(end);
}
public void setArrow(Dimension diameter, boolean numbers) {
@@ -577,6 +569,7 @@ private void onLongPressArrow() {
.inputType(InputType.TYPE_CLASS_TEXT)
.input("", shots.get(pressed).comment, (dialog, input) -> {
shots.get(pressed).comment = input.toString();
+ notifyEndFinished();
notifyTargetShotsChanged();
})
.negativeText(android.R.string.cancel)
diff --git a/app/src/main/res/values-af/strings.xml b/app/src/main/res/values-af/strings.xml
index ffe76e1c7..777990caa 100644
--- a/app/src/main/res/values-af/strings.xml
+++ b/app/src/main/res/values-af/strings.xml
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml
index ac832ebd5..37be1c680 100644
--- a/app/src/main/res/values-ar/strings.xml
+++ b/app/src/main/res/values-ar/strings.xml
@@ -380,5 +380,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-ca/strings.xml b/app/src/main/res/values-ca/strings.xml
index 02182b7f9..fba39fe52 100644
--- a/app/src/main/res/values-ca/strings.xml
+++ b/app/src/main/res/values-ca/strings.xml
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml
index 179ad378f..e0bb82160 100644
--- a/app/src/main/res/values-cs/strings.xml
+++ b/app/src/main/res/values-cs/strings.xml
@@ -338,5 +338,4 @@
Zobrazit celkové skóre
Zobrazit procenta
Zobrazit průměr na šíp
- Složka
diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml
index 0dee40007..c753faaa8 100644
--- a/app/src/main/res/values-da/strings.xml
+++ b/app/src/main/res/values-da/strings.xml
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index 9cf4732ce..383c94fd4 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -297,7 +297,7 @@
Nockpunkt
Sehne
Scope Vergrößerung
- Stiffness
+ Steifigkeit
Button
Weitere Felder
Zuletzt verwendet
@@ -324,5 +324,4 @@
Maximal erreichbare Ringzahl anzeigen
Prozent anzeigen
Pfeildurchschnitt anzeigen
- Folder
diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml
index 8a77d1d9e..777990caa 100644
--- a/app/src/main/res/values-el/strings.xml
+++ b/app/src/main/res/values-el/strings.xml
@@ -16,9 +16,9 @@
-->
- Recurve
- Bow
- Yumi
+ Options
+ Previous
+ Next
Save
Custom
Training
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 6742017c6..2736154a3 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -324,5 +324,4 @@
Mostrar puntuación total
Mostrar porcentajes
Mostrar media de flechas
- Folder
diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml
index ffe76e1c7..777990caa 100644
--- a/app/src/main/res/values-fi/strings.xml
+++ b/app/src/main/res/values-fi/strings.xml
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index 76afb1501..7268e8a0f 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -136,7 +136,7 @@
Sauvegarde
Importer
- Exports as csv
+ Exporter en CSV
Licences - Open Source
Notes légales sur les licences
Version %s
@@ -256,10 +256,10 @@
Échelle de diamètre de flèche
Date et heure
Changer de blason
- Your first training
+ Votre première entrainement
Groupement
Groupe
- Tap the plus to start a new training.
+ Appuyez sur le plus pour commencer un nouveau entrainement.
Moyenne
Vide
Gaucher
@@ -289,40 +289,39 @@
Mensuel
Echec de la connexion !
Tir en salle
- Vertical position
- Rest
- Horizontal position
+ Position verticale
+ Repose flèche
+ Position horizontale
Cam settings
Letoff weight
- Nocking point
- String
- Scope magnification
- Stiffness
- Button
- More fields
- Recently used
- Forget paper scoresheets!
+ Nockset
+ Corde
+ Zoom du scope
+ Rigidité
+ Berger button
+ Autres champs
+ Utilisé récemment
+ Oublier la feuille de scores !
With exact arrow plotting,\nyou can get more useful insights\nout of your training data.
- Everything you need\nin one place
+ Tout ce qu\'il vous faut\nen un endroit
Including bow-, arrow-\nand sightmark-management,\narchery timer, statistics \nand much more…
Average arrow score per end
- Show end
- Show round
- Show training
- Summary
+ Affichage sur la volée
+ Affichage sur la serie
+ Affichage sur l\'entraînement
+ Résumé
End
- Average of
- Displayed shots
- Invalid decimal number
- Not within the expected range of 1 to 20 mm
- Not within the expected range of 0 to 1 inch
- Next round
- Previous round
- Overview
+ La moyenne de
+ Tirs affichés
+ Nombre décimal non valide
+ Pas dans l\'intervalle prévu de 1 à 20mm
+ Pas dans l\'intervalle attendu de 0 à 1 pouce
+ Série suivante
+ Série précédente
+ Résumé
Score
- Show reached score
- Show total score
- Show percentage
- Show arrow average
- Folder
+ Afficher le score
+ Voir le score total
+ Voir le pourcentage
+ Afficher la moyenne par flèche
diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml
index bcd5c7663..2c4a41ea3 100644
--- a/app/src/main/res/values-hu/strings.xml
+++ b/app/src/main/res/values-hu/strings.xml
@@ -324,5 +324,4 @@
A teljes pontszám
Százalékos megjelenítés
Mutasd a vesszők pontátlagát
- Folder
diff --git a/app/src/main/res/values-in/strings.xml b/app/src/main/res/values-in/strings.xml
index 875d75423..14ff33c00 100644
--- a/app/src/main/res/values-in/strings.xml
+++ b/app/src/main/res/values-in/strings.xml
@@ -310,5 +310,4 @@
Tunjukkan nilai keseluruhan
Tunjukkan persentase
Show arrow average
- Folder
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
index 54f67982d..b525b7136 100644
--- a/app/src/main/res/values-it/strings.xml
+++ b/app/src/main/res/values-it/strings.xml
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-iw/strings.xml b/app/src/main/res/values-iw/strings.xml
index e1fa2500f..df6f51f48 100644
--- a/app/src/main/res/values-iw/strings.xml
+++ b/app/src/main/res/values-iw/strings.xml
@@ -352,5 +352,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index c217b7d62..c0468970f 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -310,5 +310,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml
index 282452658..7852f99a4 100644
--- a/app/src/main/res/values-ko/strings.xml
+++ b/app/src/main/res/values-ko/strings.xml
@@ -310,5 +310,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-nb/strings.xml b/app/src/main/res/values-nb/strings.xml
index 22a95de1d..051557b46 100644
--- a/app/src/main/res/values-nb/strings.xml
+++ b/app/src/main/res/values-nb/strings.xml
@@ -324,5 +324,4 @@
Vis total poengsum
Vis prosent
Vis pil gjennomsnitt
- Folder
diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml
index c0476932b..56b54db0b 100644
--- a/app/src/main/res/values-nl/strings.xml
+++ b/app/src/main/res/values-nl/strings.xml
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-no/strings.xml b/app/src/main/res/values-no/strings.xml
index 22a95de1d..051557b46 100644
--- a/app/src/main/res/values-no/strings.xml
+++ b/app/src/main/res/values-no/strings.xml
@@ -324,5 +324,4 @@
Vis total poengsum
Vis prosent
Vis pil gjennomsnitt
- Folder
diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml
index 832f2ecde..3700436bb 100644
--- a/app/src/main/res/values-pl/strings.xml
+++ b/app/src/main/res/values-pl/strings.xml
@@ -338,5 +338,4 @@
Pokaż całkowity wynik
Pokaż procenty
Pokaż średnią strzały
- Folder
diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml
index a68e3589c..e492333e9 100644
--- a/app/src/main/res/values-pt-rBR/strings.xml
+++ b/app/src/main/res/values-pt-rBR/strings.xml
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml
index e69b2e2e6..c06f40bb2 100644
--- a/app/src/main/res/values-pt-rPT/strings.xml
+++ b/app/src/main/res/values-pt-rPT/strings.xml
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml
index f3cc42842..572822790 100644
--- a/app/src/main/res/values-ro/strings.xml
+++ b/app/src/main/res/values-ro/strings.xml
@@ -338,5 +338,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index 805c881fb..98a1004fd 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -338,5 +338,4 @@
Показать общий результат
Показать в процентах
Показать среднее значение за выстрел
- Folder
diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml
index 99a032c2f..21ef0f87d 100644
--- a/app/src/main/res/values-sk/strings.xml
+++ b/app/src/main/res/values-sk/strings.xml
@@ -338,5 +338,4 @@
Zobraziť celkové skóre
Zobraziť percento
Zobraziť priemer na šíp
- Folder
diff --git a/app/src/main/res/values-sl/strings.xml b/app/src/main/res/values-sl/strings.xml
index a177a2638..420422a0a 100644
--- a/app/src/main/res/values-sl/strings.xml
+++ b/app/src/main/res/values-sl/strings.xml
@@ -352,5 +352,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-sr/strings.xml b/app/src/main/res/values-sr/strings.xml
index f3cc42842..572822790 100644
--- a/app/src/main/res/values-sr/strings.xml
+++ b/app/src/main/res/values-sr/strings.xml
@@ -338,5 +338,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml
index b608c770e..69c3ba5a6 100644
--- a/app/src/main/res/values-sv/strings.xml
+++ b/app/src/main/res/values-sv/strings.xml
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml
index c7b3b5a16..5e89c8903 100644
--- a/app/src/main/res/values-tr/strings.xml
+++ b/app/src/main/res/values-tr/strings.xml
@@ -324,5 +324,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml
index cdddea2c2..f29d29904 100644
--- a/app/src/main/res/values-uk/strings.xml
+++ b/app/src/main/res/values-uk/strings.xml
@@ -338,5 +338,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-vi/strings.xml b/app/src/main/res/values-vi/strings.xml
index 282452658..7852f99a4 100644
--- a/app/src/main/res/values-vi/strings.xml
+++ b/app/src/main/res/values-vi/strings.xml
@@ -310,5 +310,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 3b22f7bc4..e4356fcfa 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -310,5 +310,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index 6c81cb33a..6828f8fc7 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -310,5 +310,4 @@
Show total score
Show percentage
Show arrow average
- Folder
diff --git a/build.gradle b/build.gradle
index f5d9bdb12..79ad4d6d6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -81,7 +81,7 @@ ext {
screengrab : '1.0.2',
retrofit : '2.2.0',
roundedImageView : '2.2.1',
- support : '25.3.0',
+ support : '25.3.1',
supportWearable : '2.0.0',
testSupport : '0.5',
truth : '0.32',
@@ -110,4 +110,4 @@ dependencyUpdates.resolutionStrategy = {
}
}
}
-}
\ No newline at end of file
+}
diff --git a/shared/src/main/java/de/dreier/mytargets/shared/analysis/aggregation/cluster/AggregationStrategyBase.java b/shared/src/main/java/de/dreier/mytargets/shared/analysis/aggregation/cluster/AggregationStrategyBase.java
index 121098a32..78e236eeb 100644
--- a/shared/src/main/java/de/dreier/mytargets/shared/analysis/aggregation/cluster/AggregationStrategyBase.java
+++ b/shared/src/main/java/de/dreier/mytargets/shared/analysis/aggregation/cluster/AggregationStrategyBase.java
@@ -87,7 +87,7 @@ public void setColor(int color) {
}
protected boolean isCancelled() {
- return computeTask.isCancelled();
+ return computeTask == null || computeTask.isCancelled();
}
private class ComputeTask extends AsyncTask, Integer, IAggregationResultRenderer> {
diff --git a/shared/src/main/java/de/dreier/mytargets/shared/targets/drawable/TargetImpactDrawable.java b/shared/src/main/java/de/dreier/mytargets/shared/targets/drawable/TargetImpactDrawable.java
index d77989132..6c9136c68 100644
--- a/shared/src/main/java/de/dreier/mytargets/shared/targets/drawable/TargetImpactDrawable.java
+++ b/shared/src/main/java/de/dreier/mytargets/shared/targets/drawable/TargetImpactDrawable.java
@@ -85,8 +85,8 @@ protected void onPostDraw(CanvasWrapper canvas, int faceIndex) {
drawArrow(canvas, s, false);
}
}
- if(focusedArrow != null) {
- drawFocusedArrow(canvas, focusedArrow);
+ if (focusedArrow != null) {
+ drawFocusedArrow(canvas, focusedArrow, faceIndex);
}
}
@@ -112,9 +112,10 @@ public void setFocusedArrow(Shot shot) {
}
}
- private void drawFocusedArrow(CanvasWrapper canvas, Shot shot) {
- final int faceIndex = shot.index % model.getFaceCount();
- setMatrixForTargetFace(canvas, faceIndex);
+ private void drawFocusedArrow(CanvasWrapper canvas, Shot shot, int drawFaceIndex) {
+ if (shot.index % model.getFaceCount() != drawFaceIndex) {
+ return;
+ }
paintFill.setColor(0xFF009900);
canvas.drawCircle(shot.x, shot.y, arrowRadius, paintFill);
diff --git a/shared/src/main/java/de/dreier/mytargets/shared/views/TargetViewBase.java b/shared/src/main/java/de/dreier/mytargets/shared/views/TargetViewBase.java
index 950c8f73e..1608bfe2f 100644
--- a/shared/src/main/java/de/dreier/mytargets/shared/views/TargetViewBase.java
+++ b/shared/src/main/java/de/dreier/mytargets/shared/views/TargetViewBase.java
@@ -29,7 +29,6 @@
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat;
import android.support.v4.widget.ExploreByTouchHelper;
import android.util.AttributeSet;
-import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.accessibility.AccessibilityEvent;
@@ -48,7 +47,6 @@
import de.dreier.mytargets.shared.utils.EndRenderer;
public abstract class TargetViewBase extends View implements View.OnTouchListener {
- private static final String TAG = "TargetViewBase";
private final TargetAccessibilityTouchHelper touchHelper = new TargetAccessibilityTouchHelper(
this);
private final List virtualViews = new ArrayList<>();
@@ -147,7 +145,6 @@ public boolean dispatchHoverEvent(MotionEvent event) {
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
- Log.d(TAG, "onLayout: ");
updateLayout();
animateToNewState();
updateVirtualViews();
@@ -224,6 +221,7 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
// If finger is released go to next shoot
if (motionEvent.getAction() == MotionEvent.ACTION_UP && isCurrentlySelecting()) {
onArrowChanged();
+ notifyEndFinished();
return true;
}
return true;
@@ -260,10 +258,13 @@ protected int getNextShotIndex(int currentShotIndex) {
}
protected void notifyTargetShotsChanged() {
+ invalidate();
+ }
+
+ protected void notifyEndFinished() {
if (currentShotIndex == EndRenderer.NO_SELECTION && setListener != null) {
setListener.onEndFinished(shots, false);
}
- invalidate();
}
protected Animator getCircleAnimation() {
diff --git a/shared/src/main/res/values-de/target_faces.xml b/shared/src/main/res/values-de/target_faces.xml
index d9f478e66..5f73c4dc0 100644
--- a/shared/src/main/res/values-de/target_faces.xml
+++ b/shared/src/main/res/values-de/target_faces.xml
@@ -51,13 +51,13 @@
DBSC Blasrohr
FCFS Farbe (10-1 umgekehrt)
- Recurve style (X–1)
- Recurve style (10–1)
- Recurve style (X–5)
- Recurve style (10–5)
- Recurve style (X–6)
- Recurve style (10–6)
- Recurve style (X–8)
- Recurve style (10–8)
+ Recurve-Stil (X-1)
+ Recurve-Stil (10-1)
+ Recurve-Stil (X-5)
+ Recurve-Stil (10-5)
+ Recurve-Stil (X-6)
+ Recurve-Stil (10-6)
+ Recurve-Stil (X-8)
+ Recurve-Stil (10-8)
Compound-Stil
diff --git a/shared/src/main/res/values-fr/target_faces.xml b/shared/src/main/res/values-fr/target_faces.xml
index bb3f29051..7dd205386 100644
--- a/shared/src/main/res/values-fr/target_faces.xml
+++ b/shared/src/main/res/values-fr/target_faces.xml
@@ -51,13 +51,13 @@
DBSC sarbacane
FCFS Color (Reversed 10–1)
- Recurve style (X–1)
- Recurve style (10–1)
- Recurve style (X–5)
- Recurve style (10–5)
- Recurve style (X–6)
- Recurve style (10–6)
- Recurve style (X–8)
- Recurve style (10–8)
+ Style classique (X-1)
+ Style classique (10-1)
+ Style classique (X-5)
+ Style classique (10-5)
+ Style classique (X-6)
+ Style classique (10-6)
+ Style classique (X-8)
+ Style classique (10-8)
Compound style