use of android.content.DialogInterface.OnClickListener in project mobile-android by photo.
the class BordersPanel method showUpdateAlertMultipleItems.
/**
*
* @param set
*/
private void showUpdateAlertMultipleItems(final String pkgname, Set<PluginError> set) {
if (null != set) {
final String errorString = getContext().getBaseContext().getResources().getString(R.string.feather_effects_error_update_multiple);
OnClickListener yesListener = new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
searchOrDownloadPlugin(pkgname, true);
}
};
onGenericError(errorString, R.string.feather_update, yesListener, android.R.string.cancel, null);
}
}
use of android.content.DialogInterface.OnClickListener in project JamsMusicPlayer by psaravan.
the class AsyncPlayFolderRecursiveTask method onPreExecute.
protected void onPreExecute() {
pd = new ProgressDialog(mContext);
pd.setCancelable(false);
pd.setIndeterminate(false);
pd.setTitle(R.string.play_folder_recursive);
pd.setButton(DialogInterface.BUTTON_NEUTRAL, mContext.getResources().getString(R.string.cancel), new OnClickListener() {
@Override
public void onClick(DialogInterface arg0, int arg1) {
pd.dismiss();
}
});
pd.show();
}
use of android.content.DialogInterface.OnClickListener in project JamsMusicPlayer by psaravan.
the class AsyncDeleteTask method onPreExecute.
protected void onPreExecute() {
pd = new ProgressDialog(mContext);
pd.setCancelable(false);
pd.setIndeterminate(false);
pd.setTitle(R.string.delete);
pd.setMessage(mContext.getResources().getString(R.string.deleting_files));
pd.setButton(DialogInterface.BUTTON_NEUTRAL, mContext.getResources().getString(R.string.run_in_background), new OnClickListener() {
@Override
public void onClick(DialogInterface arg0, int arg1) {
pd.dismiss();
}
});
pd.show();
}
use of android.content.DialogInterface.OnClickListener in project JamsMusicPlayer by psaravan.
the class AsyncCopyMoveTask method onPreExecute.
protected void onPreExecute() {
pd = new ProgressDialog(mFragment.getActivity());
pd.setCancelable(false);
pd.setIndeterminate(false);
if (mShouldMove) {
pd.setTitle(R.string.move);
pd.setMessage(mContext.getResources().getString(R.string.moving_file));
} else {
pd.setTitle(R.string.copy);
pd.setMessage(mContext.getResources().getString(R.string.copying_file));
}
pd.setButton(DialogInterface.BUTTON_NEUTRAL, mContext.getResources().getString(R.string.run_in_background), new OnClickListener() {
@Override
public void onClick(DialogInterface arg0, int arg1) {
pd.dismiss();
}
});
pd.show();
}
use of android.content.DialogInterface.OnClickListener in project JamsMusicPlayer by psaravan.
the class AsyncAutoGetAlbumArtTask method onPreExecute.
public void onPreExecute() {
super.onPreExecute();
pd = new ProgressDialog(mActivity);
pd.setTitle(R.string.downloading_album_art);
pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
pd.setCancelable(false);
pd.setCanceledOnTouchOutside(false);
pd.setMessage(mContext.getResources().getString(R.string.scanning_for_missing_art));
pd.setButton(DialogInterface.BUTTON_NEGATIVE, mContext.getResources().getString(R.string.cancel), new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
task.cancel(true);
}
});
pd.show();
}
Aggregations