Use a BroadcastReceiver to get the battery info instead of polling
This commit is contained in:
@@ -40,10 +40,6 @@
|
||||
#include "render/scene_renderer.h"
|
||||
#include "utils/async.h"
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#include "android/battery.h"
|
||||
#endif
|
||||
|
||||
class wivrn_session;
|
||||
|
||||
namespace scenes
|
||||
@@ -117,10 +113,6 @@ class lobby : public scene_impl<lobby>
|
||||
void move_gui(glm::vec3 head_position, glm::vec3 new_gui_position);
|
||||
void tooltip(std::string_view text);
|
||||
|
||||
#ifdef __ANDROID__
|
||||
battery battery_tracker;
|
||||
#endif
|
||||
|
||||
enum class tab
|
||||
{
|
||||
server_list,
|
||||
|
||||
Reference in New Issue
Block a user