From 6af9dff0043ace00853ca479f788eabb196ece5f Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Sun, 27 Dec 2015 20:48:00 -0500 Subject: [PATCH] Prevent screen rotation or resize from destroying activities If the screen is rotated by default Android destroys the activity and recreates it. This causes issues if a child and parent are already paired, as the connection is lost. To prevent Android from destroying the Activity, instead invoke a configuration change on an orientation or resize. --- AndroidManifest.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index a03df26..271c6b7 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -18,6 +18,7 @@ @@ -27,16 +28,19 @@