Commits

Daniel Kullmann  committed 2121723

Menu item "Outline" now does something: it shows the top-level
outline.

  • Participants
  • Parent commits 237289b

Comments (0)

Files changed (1)

File src/com/matburt/mobileorg/MobileOrgActivity.java

         }
     };
     
-    protected ArrayList<Integer> mNodePath;
-
     @Override
     public void onCreate(Bundle savedInstanceState)
     {
     public void onResume() {
         super.onResume();
         Intent nodeIntent = getIntent();
-        mNodePath = nodeIntent.getIntegerArrayListExtra("nodePath");
+    	MobileOrgApplication appInst = (MobileOrgApplication) this.getApplication();
+        appInst.nodeSelection = nodeIntent.getIntegerArrayListExtra("nodePath");
         populateDisplay();
     }
 
         case MobileOrgActivity.OP_MENU_SETTINGS:
             return this.onShowSettings();
         case MobileOrgActivity.OP_MENU_OUTLINE:
+            Intent dispIntent = new Intent(this, MobileOrgActivity.class);
+            dispIntent.putIntegerArrayListExtra( "nodePath", new ArrayList<Integer>() );
+            startActivity(dispIntent);
             return true;
         case MobileOrgActivity.OP_MENU_CAPTURE:
             return this.runCapture();