From 1f0bcf673012804940c27bfcceaf3edeb70e6f1e Mon Sep 17 00:00:00 2001 From: Kevin Ruland Date: Wed, 13 Jun 2012 16:37:18 +0000 Subject: [PATCH] Change the initial screen handling and add file load to OpenRocketViewer activity. The OpenRocketLoaderActivity is now used as a base class for the OpenRocketViewer and Main activities. These activities now share the code used for loading ork files. The OpenRocketLoaderActivity no longer is registered in the manifest because it is not a real activity any more. The OpenRocketViewer activity now has a menu item for "load" to load a new model. The Main activity uses finish() when it transfers control to the OpenRocketViewer thus removing it from the back stack. Further, if the Main activity detects that the Application contains a rocket, it will automatically forward to the OpenRocketViewer. --- android/AndroidManifest.xml | 5 -- .../res/menu/rocket_viewer_option_menu.xml | 3 + android/res/values/strings.xml | 3 +- android/res/xml/preferences.xml | 2 +- .../src/net/sf/openrocket/android/Main.java | 68 ++----------------- .../rocket/OpenRocketLoaderActivity.java | 67 ++++++++++++++++-- .../android/rocket/OpenRocketViewer.java | 7 +- 7 files changed, 78 insertions(+), 77 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 1c9c3a119..eaab1308b 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -25,11 +25,6 @@ - - -