Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

outline.
  • Loading branch information...
commit 901c616e2cafcaf4f10c94b55a72ece6753bc2fa 1 parent e3629fa
Daniel Kullmann authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/com/matburt/mobileorg/MobileOrgActivity.java
View
8 src/com/matburt/mobileorg/MobileOrgActivity.java
@@ -222,8 +222,6 @@ public void run() {
}
};
- protected ArrayList<Integer> mNodePath;
-
@Override
public void onCreate(Bundle savedInstanceState)
{
@@ -298,7 +296,8 @@ public void runParser() {
public void onResume() {
super.onResume();
Intent nodeIntent = getIntent();
- mNodePath = nodeIntent.getIntegerArrayListExtra("nodePath");
+ MobileOrgApplication appInst = (MobileOrgApplication) this.getApplication();
+ appInst.nodeSelection = nodeIntent.getIntegerArrayListExtra("nodePath");
populateDisplay();
}
@@ -517,6 +516,9 @@ public boolean onOptionsItemSelected(MenuItem item) {
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();
Please sign in to comment.
Something went wrong with that request. Please try again.