Skip to content

Commit

Permalink
fixed plate tagging
Browse files Browse the repository at this point in the history
removed coarse location
10.2.7
  • Loading branch information
apps4av committed Feb 3, 2023
1 parent 7a5415c commit cb8f7ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 2 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Redistribution and use in source and binary forms, with or without modification,
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ds.avare"
android:versionCode="376"
android:versionName="10.2.6"
android:versionCode="377"
android:versionName="10.2.7"
android:installLocation="auto">

<!-- Network State Permissions to detect Internet status -->
Expand All @@ -22,7 +22,6 @@ Redistribution and use in source and binary forms, with or without modification,
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET" />

<!-- Request legacy Bluetooth permissions on older devices. -->
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/assets/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ <h3 class="western" align="center">Notice</h3>
<p><B>CAUTION</b> - Before flight the user <B>must always ensure</b> that Avare is updated to and thoroughly tested on the latest version, and <b>ensure that all Avare databases and charts are kept current</b>. If Avare and its databases and charts are not of the exact same version, the <B><U>GPS position displayed may be inaccurate</u></b>, because <b>the FAA sometimes changes the format</b> of their materials. <u>Avare does not automatically fetch</u> any databases and charts when they are expired, so it is the user's sole responsibility to update any expired charts and databases. To do so, ensure that your device has an internet connection and then just press the <B>Map, Menu, Preferences, Download,</b> and <b>Update</b> buttons in Avare.</p>

<h3 class="western">Avare Releases</h3>
<p><b>10.2.7</b></p>
<ul>
<li>Fix plate tagging</li>
</p>
</ul>
<p><b>10.2.6</b></p>
<ul>
<li>Improved help file</li>
Expand Down
7 changes: 2 additions & 5 deletions app/src/main/java/com/ds/avare/views/PlatesTagView.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ public class PlatesTagView extends PanZoomView {

private Paint mPaint;
private BitmapHolder mBitmap;
private int mX;
private int mY;
private float mAirportX;
private float mAirportY;
private String mAirportName;
Expand All @@ -49,7 +47,6 @@ private void setup(Context context) {
mPaint.setTypeface(Helper.getTypeFace(context));
mPaint.setAntiAlias(true);
setBackgroundColor(Color.BLACK);
mX = mY = 0;
mAirportName = "";
mAirportX = mAirportY = -1;
}
Expand Down Expand Up @@ -212,14 +209,14 @@ public void onSizeChanged(int w, int h, int oldw, int oldh) {
* Current X with scale adjusted
*/
public int getx() {
return mX;
return Math.round((-mPan.getMoveX() + mBitmap.getWidth() / 2));
}

/**
* Current Y with scale adjusted
*/
public int gety() {
return mY;
return Math.round((-mPan.getMoveY() + mBitmap.getHeight() / 2));
}

/**
Expand Down

0 comments on commit cb8f7ec

Please sign in to comment.