summaryrefslogtreecommitdiff
path: root/emulator/screen-sharing-agent/app/src/main/cpp/controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'emulator/screen-sharing-agent/app/src/main/cpp/controller.cc')
-rw-r--r--emulator/screen-sharing-agent/app/src/main/cpp/controller.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/emulator/screen-sharing-agent/app/src/main/cpp/controller.cc b/emulator/screen-sharing-agent/app/src/main/cpp/controller.cc
index 0f06f6bb77c..61e9768087f 100644
--- a/emulator/screen-sharing-agent/app/src/main/cpp/controller.cc
+++ b/emulator/screen-sharing-agent/app/src/main/cpp/controller.cc
@@ -56,7 +56,8 @@ Controller::Controller(int socket_fd)
pointer_helper_(),
motion_event_start_time_(0),
key_character_map_(),
- stay_on_(Settings::Table::GLOBAL, "stay_on_while_plugged_in") {
+ stay_on_(Settings::Table::GLOBAL, "stay_on_while_plugged_in"),
+ accelerometer_rotation_(Settings::Table::SYSTEM, "accelerometer_rotation") {
assert(socket_fd > 0);
}
@@ -105,6 +106,8 @@ void Controller::Initialize() {
// Keep the screen on as long as the device has power.
stay_on_.Set(StringPrintf("%d", BATTERY_PLUGGED_AC | BATTERY_PLUGGED_USB | BATTERY_PLUGGED_WIRELESS).c_str());
+ // Turn off "Auto-rotate screen".
+ accelerometer_rotation_.Set("0");
}
void Controller::Run() {