diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-04 20:23:49 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-05 21:04:27 +0300 |
commit | 13cd75f099c92b6f0862db00eee8ff4a78a73316 (patch) | |
tree | aa506edf786cfbca677c4760fa2da2a5698bc831 /platform/android/src/run_loop_impl.hpp | |
parent | b3b86f9be4187fc82f34188c627c1466c79ad041 (diff) | |
download | qtlocation-mapboxgl-13cd75f099c92b6f0862db00eee8ff4a78a73316.tar.gz |
[android] Do not create Timers on Default main loops
Not supported, because we don't have control over the Looper
timeout like we do for Loopers we create. On the main thread,
Android takes care of making the application sleep and sets
an arbitrary timeout. This could be properly fixed by implementing
timers in Java, but we don't really have the use case of timers
in the main thread.
Diffstat (limited to 'platform/android/src/run_loop_impl.hpp')
-rw-r--r-- | platform/android/src/run_loop_impl.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/src/run_loop_impl.hpp b/platform/android/src/run_loop_impl.hpp index cb553d1f8a..9622efb368 100644 --- a/platform/android/src/run_loop_impl.hpp +++ b/platform/android/src/run_loop_impl.hpp @@ -41,6 +41,7 @@ public: ALooper* loop = nullptr; RunLoop* runLoop = nullptr; util::Atomic<bool> running; + bool isDefaultLoop = false; private: friend RunLoop; |