After saving, invalidate the menu so the save icon disappears.

This commit is contained in:
Kevin Ruland 2012-06-26 18:11:43 +00:00
parent 294aa177c4
commit 45838387bc

View File

@ -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