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;
|
||||
|
||||
public class OpenRocketViewer extends OpenRocketLoaderActivity
|
||||
implements Simulations.OnSimulationSelectedListener
|
||||
implements Simulations.OnSimulationSelectedListener, OpenRocketSaverFragment.OnOpenRocketFileSaved
|
||||
{
|
||||
|
||||
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 {
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user