Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DreierF committed Mar 23, 2015
1 parent 34c1296 commit cdc1818
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 13 deletions.
Binary file modified app/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId 'de.dreier.mytargets'
minSdkVersion 11
targetSdkVersion 21
versionCode 26
versionName '2.0.6'
versionCode 28
versionName '2.0.8'
}

signingConfigs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import de.dreier.mytargets.managers.DatabaseManager;
import de.dreier.mytargets.models.Bow;
import de.dreier.mytargets.views.DialogSpinner;
import de.dreier.mytargets.views.DistanceDialogSpinner;

public class EditBowActivity extends EditWithImageActivity {

Expand Down Expand Up @@ -247,7 +248,7 @@ public void update() {
private void addSightSetting(final SightSetting setting, int i) {
LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
final View rel = inflater.inflate(R.layout.sight_settings_item, sight_settings, false);
setting.distance = (DialogSpinner) findViewById(R.id.distance_spinner);
setting.distance = (DistanceDialogSpinner) rel.findViewById(R.id.distance_spinner);
setting.setting = (EditText) rel.findViewById(R.id.sight_setting);
ImageButton remove = (ImageButton) rel.findViewById(R.id.remove_sight_setting);
remove.setOnClickListener(new View.OnClickListener() {
Expand Down
8 changes: 8 additions & 0 deletions app/src/main/java/de/dreier/mytargets/views/TargetView.java
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,14 @@ public void run() {
}
invalidate();
return true;
} else {
if (motionEvent.getAction() == MotionEvent.ACTION_UP) {
if (longPressTimer != null) {
longPressTimer.cancel();
longPressTimer = null;
}
}
mPasseDrawer.setPressed(-1);
}
return false;
}
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<string name="outdoor">На улице</string>
<string name="indoor">В помещении</string>
<string name="distance">Дистанция</string>
<string name="format">Format</string>
<string name="format">подход</string>

<!-- x passes with y arrows -->
<plurals name="passe">
Expand All @@ -113,7 +113,7 @@
<item quantity="few">%d серии</item>
<item quantity="many">%d серий</item>
</plurals>
<string name="with">with</string>
<string name="with">по</string>
<plurals name="arrow">
<item quantity="one">%d стрела</item>
<item quantity="other">%d стрелы</item>
Expand Down Expand Up @@ -146,8 +146,8 @@
<item quantity="few">%d серии отделкой</item>
<item quantity="many">%d серий отделкой</item>
</plurals>
<string name="passes_finished_now_what">You have finished your round. What would you like to do now?</string>
<string name="continue_with_next">Continue</string>
<string name="passes_finished_now_what">Вы закончили раунд. Что вы хотите делать дальше?</string>
<string name="continue_with_next">Продолжить</string>

<!-- Statistics -->
<string name="all_trainings">Все тренировки</string>
Expand Down
Binary file modified app/wearable-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions shared/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 11
targetSdkVersion 21
versionCode 25
versionName '2.0.5'
versionCode 28
versionName '2.0.8'
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,12 @@ public void draw(Canvas canvas) {

// Draw touch feedback if arrow is pressed
if (mPressed != NO_SELECTION) {
int radius = getRadius(mPressed);
Coordinate pos = getPosition(mPressed);
canvas.drawRect(pos.x - mRadius, pos.y - mRadius,
pos.x + mRadius, pos.y + mRadius, grayBackground);
if (radius > 0) {
canvas.drawRect(pos.x - radius, pos.y - radius,
pos.x + radius, pos.y + radius, grayBackground);
}
}

// Draw all points of this passe into the given rect
Expand Down
4 changes: 2 additions & 2 deletions wearable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "de.dreier.mytargets"
minSdkVersion 20
targetSdkVersion 21
versionCode 25
versionName '2.0.5'
versionCode 28
versionName '2.0.8'
}
buildTypes {
release {
Expand Down

0 comments on commit cdc1818

Please sign in to comment.