/** * Shows <tt>AuthorizationRequestedDialog</tt> for the request with given <tt>id</tt>. * * @param id request identifier for which new dialog will be displayed. */ public static void showDialog(Long id) { Context ctx = JitsiApplication.getGlobalContext(); Intent showIntent = new Intent(ctx, AuthorizationRequestedDialog.class); showIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); showIntent.putExtra(EXTRA_REQUEST_ID, id); ctx.startActivity(showIntent); }
/** * Returns TRUE if the application is visible and FALSE otherwise. This method is meant to be used * by the systray service in order to detect the visibility of the application. * * @return <code>true</code> if the application is visible and <code>false</code> otherwise. * @see #setVisible(boolean) */ public boolean isVisible() { return JitsiApplication.getCurrentActivity() != null; }