After saving, invalidate the menu so the save icon disappears.
This commit is contained in:
parent
294aa177c4
commit
45838387bc
@ -25,7 +25,7 @@ import com.actionbarsherlock.view.MenuInflater;
|
|||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
|
||||||
public class OpenRocketViewer extends OpenRocketLoaderActivity
|
public class OpenRocketViewer extends OpenRocketLoaderActivity
|
||||||
implements Simulations.OnSimulationSelectedListener
|
implements Simulations.OnSimulationSelectedListener, OpenRocketSaverFragment.OnOpenRocketFileSaved
|
||||||
{
|
{
|
||||||
|
|
||||||
private final static int OVERVIEW_POS = 0;
|
private final static int OVERVIEW_POS = 0;
|
||||||
@ -152,6 +152,11 @@ implements Simulations.OnSimulationSelectedListener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onOpenRocketFileSaved(Boolean result) {
|
||||||
|
invalidateOptionsMenu();
|
||||||
|
}
|
||||||
|
|
||||||
private class RocketChangedEventHandler extends net.sf.openrocket.android.RocketChangedEventHandler {
|
private class RocketChangedEventHandler extends net.sf.openrocket.android.RocketChangedEventHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user