/* * private class TipRunner extends Thread { TipRunner() { * setPriority(MIN_PRIORITY); } * * public void run() { final TipsManager manager = TipsManager.Instance(); * switch (manager.requiredAction()) { case Initialize: startActivity(new * Intent(TipsActivity.INITIALIZE_ACTION, null, FBReader.this, * TipsActivity.class)); break; case Show: startActivity(new * Intent(TipsActivity.SHOW_TIP_ACTION, null, FBReader.this, * TipsActivity.class)); break; case Download: manager.startDownloading(); * break; case None: break; } } } */ @Override public void onResume() { super.onResume(); try { sendBroadcast(new Intent(getApplicationContext(), KillerCallback.class)); } catch (Throwable t) { } PopupPanel.restoreVisibilities(FBReaderApp.Instance()); ApiServerImplementation.sendEvent(this, ApiListener.EVENT_READ_MODE_OPENED); anim = 2; cb = new CheckBookmark(); cb.execute(); }
@Override public void onStop() { ApiServerImplementation.sendEvent(this, ApiListener.EVENT_READ_MODE_CLOSED); PopupPanel.removeAllWindows(FBReaderApp.Instance(), this); super.onStop(); }