From c36d8768be4f0eb0ff089e3f9d1a7dcdf4d57cd2 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Wed, 22 Feb 2017 17:39:59 +0100 Subject: [PATCH] Cleanup launcher storage on first boot to sync back with the Android system --- src/anbox/bridge/platform_api_skeleton.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/anbox/bridge/platform_api_skeleton.cpp b/src/anbox/bridge/platform_api_skeleton.cpp index 1c19e3f..221577d 100644 --- a/src/anbox/bridge/platform_api_skeleton.cpp +++ b/src/anbox/bridge/platform_api_skeleton.cpp @@ -63,6 +63,9 @@ void PlatformApiSkeleton::get_clipboard_data(anbox::protobuf::rpc::Void const *r } void PlatformApiSkeleton::handle_boot_finished_event(const anbox::protobuf::bridge::BootFinishedEvent &event) { + if (event.first_boot_done()) + launcher_storage_->reset(); + if (boot_finished_handler_) boot_finished_handler_(); }