From f844d4a1ea0b48efc942ea08f5847ab1ef52fd8b Mon Sep 17 00:00:00 2001 From: kruland2607 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. git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@775 180e2498-e6e9-4542-8430-84ac67f01cd8 --- 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 1c9c3a11..eaab1308 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -25,11 +25,6 @@ - - -