aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/ui/CompassView.java
Commit message (Collapse)AuthorAgeFilesLines
* #3818: remove further GC blocking referencesBananeweizen2014-05-171-13/+32
|
* Upgrade to RxJava 0.18.3 and use the new Scheduler interfaceSamuel Tardieu2014-05-131-4/+3
|
* Use Math.floor/ceil instead of FloatMathSamuel Tardieu2014-04-011-6/+5
| | | | | On SDK >= 8, Math.floor and Math.ceil are faster than FloatMath equivalents.
* Do not try to compute the reverse canvas rotation by handSamuel Tardieu2014-03-221-2/+4
| | | | | save() and restore() are more adequate to restore the initial state and prevent rounding errors.
* No need to synchronize UI thread called methodsSamuel Tardieu2014-03-221-30/+25
|
* refactoring: do not call getResources() repeatidlySamuel Tardieu2014-03-221-8/+11
|
* refactoring: remove the need for PeriodicHandlerSamuel Tardieu2014-03-051-20/+24
|
* refactoring: findbugs issuesBananeweizen2013-12-081-2/+4
|
* lint: call super methods in onDetachedFromWindowBananeweizen2013-09-201-0/+1
|
* refactoring: code duplicationBananeweizen2013-06-211-23/+21
|
* refactoring: make periodic handler use weak referencesSamuel Tardieu2013-05-251-20/+13
| | | | | | | | | | | PeriodicHandler now uses weak references to keep a link to the looper that requested it. This way, it will not prevent the source from being garbage collected even though a delayed message may be queued in the handler. Also, at the next iteration, the periodic handler will notice that its starter looper has been garbage collected and will stop itself if it has not been already.
* Refactoring: narrow scope of variablesSamuel Tardieu2012-12-181-5/+2
|
* refactoring: minor lint cleanupsBananeweizen2012-06-291-2/+3
| | | * If you get compile errors, upgrade to ADT 20 and SDK 20
* Merge branch 'issue-1709' into masterrsudev2012-06-171-1/+1
|\ | | | | | | | | | | Conflicts: main/src/cgeo/geocaching/DirectionProvider.java main/src/cgeo/geocaching/ui/CacheListAdapter.java
| * Put angle-related utilities into their own packageSamuel Tardieu2012-06-171-20/+20
| | | | | | | | | | | | | | Also, use float instead of double for every angle computation. Conflicts: main/src/cgeo/geocaching/ui/CacheListAdapter.java
| * Ensure that we stay in the [0, 360[ rangeSamuel Tardieu2012-05-311-6/+6
| | | | | | | | | | | | | | We have to ensure that the direction stays within the right range when computing a smooth update. Related to issues #1680 and #1685.
| * Add a function to compute a normalized angle differenceSamuel Tardieu2012-05-311-1/+3
| |
| * Simplify previous fix due to root cause fixingSamuel Tardieu2012-05-311-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix for #1680 introduced in ad93745d42f9aaf5bc4925075987ef64c13b2f71 had to account for the possibility of angles being outside the [0, 360[ range. Commit 0034e358668d5911639628468be7409b2696d6c5 fixed #1685 and now ensures that the returned orientation is within the right domain range even after the phone rotation has been added to the sensor angle. It is now possible to simplify the computation because we now that the difference of two angle values will always be in the ]-360; 720[ range, and can this fixed by adding 360 and taking the module with 360 to enter back the [0, 360[ range.
| * fix #1680: compass gets stuck after some rotationsBananeweizen2012-05-311-8/+4
| |
| * new: make compass spin fast for large angles, slower for small anglesBananeweizen2012-05-311-4/+2
| |
* | refactoring: remove compiler warningsBananeweizen2012-06-021-4/+4
| |
* | Put angle-related utilities into their own packageSamuel Tardieu2012-06-011-20/+20
| | | | | | | | Also, use float instead of double for every angle computation.
* | Ensure that we stay in the [0, 360[ rangeSamuel Tardieu2012-05-311-6/+6
| | | | | | | | | | | | | | We have to ensure that the direction stays within the right range when computing a smooth update. Related to issues #1680 and #1685.
* | Add a function to compute a normalized angle differenceSamuel Tardieu2012-05-311-1/+3
| |
* | Simplify previous fix due to root cause fixingSamuel Tardieu2012-05-311-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix for #1680 introduced in ad93745d42f9aaf5bc4925075987ef64c13b2f71 had to account for the possibility of angles being outside the [0, 360[ range. Commit 0034e358668d5911639628468be7409b2696d6c5 fixed #1685 and now ensures that the returned orientation is within the right domain range even after the phone rotation has been added to the sensor angle. It is now possible to simplify the computation because we now that the difference of two angle values will always be in the ]-360; 720[ range, and can this fixed by adding 360 and taking the module with 360 to enter back the [0, 360[ range.
* | fix #1680: compass gets stuck after some rotationsBananeweizen2012-05-301-8/+4
| |
* | new: make compass spin fast for large angles, slower for small anglesBananeweizen2012-05-301-4/+2
|/
* Do not send direction updates more often than neededSamuel Tardieu2012-05-201-33/+18
| | | | This will help with issue #1604.
* Refactoring: remove redundant initializersSamuel Tardieu2012-04-281-4/+4
| | | | | The initial values were never used as the variables are set in any case before being used.
* Convert some fields to local variablesSamuel Tardieu2012-04-221-3/+1
|
* refactoring: remove the logging tag from settingsBananeweizen2012-04-121-2/+1
|
* Proxy all logs through cgeo.geocaching.utils.LogSamuel Tardieu2012-03-311-1/+1
| | | | | | | | The behaviour is unchanged, but altering Settings.isDebug() to return false will prevent verbose, debug and info levels messages from being logged. Part of work on #1301.
* performance refactoringsBananeweizen2012-03-041-1/+1
| | | | | | * avoid creating message objects, there is a pool * only get GCVotes for filtered caches, not for all * don't use GepointParser in LocParser, we know those are pure floats * String concatenation
* refactoring: move more widget related classes into own packageBananeweizen2012-01-141-0/+291