本文整理汇总了Java中org.zirco.utils.ApplicationUtils.showYesNoDialog方法的典型用法代码示例。如果您正苦于以下问题:Java ApplicationUtils.showYesNoDialog方法的具体用法?Java ApplicationUtils.showYesNoDialog怎么用?Java ApplicationUtils.showYesNoDialog使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.zirco.utils.ApplicationUtils
的用法示例。
在下文中一共展示了ApplicationUtils.showYesNoDialog方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: clearWhiteList
import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
* Display a confirmation dialog and clear the white list.
*/
private void clearWhiteList() {
ApplicationUtils.showYesNoDialog(this,
android.R.drawable.ic_dialog_alert,
R.string.AdBlockerWhiteListActivity_ClearMessage,
R.string.Commons_NoUndoMessage,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
doClearWhiteList();
}
});
}
示例2: clearHistory
import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
* Display confirmation and clear history.
*/
private void clearHistory() {
ApplicationUtils.showYesNoDialog(this,
android.R.drawable.ic_dialog_alert,
R.string.Commons_ClearHistory,
R.string.Commons_NoUndoMessage,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
doClearHistory();
}
});
}
示例3: askForRestart
import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
* Ask user to restart the app. Do it if click on "Yes".
*/
private void askForRestart() {
ApplicationUtils.showYesNoDialog(this,
android.R.drawable.ic_dialog_alert,
R.string.PreferencesActivity_RestartDialogTitle,
R.string.PreferencesActivity_RestartDialogMessage,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
MainActivity.INSTANCE.restartApplication();
}
});
}
示例4: clearHistory
import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
* Display confirmation and clear the history.
*/
private void clearHistory() {
ApplicationUtils.showYesNoDialog(this,
android.R.drawable.ic_dialog_alert,
R.string.Commons_ClearHistory,
R.string.Commons_NoUndoMessage,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
doClearHistory();
}
});
}
示例5: clearFormData
import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
* Display confirmation and clear form data.
*/
private void clearFormData() {
ApplicationUtils.showYesNoDialog(this,
android.R.drawable.ic_dialog_alert,
R.string.Commons_ClearFormData,
R.string.Commons_NoUndoMessage,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
doClearFormData();
}
});
}
示例6: clearCache
import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
* Display confirmation and clear the cache.
*/
private void clearCache() {
ApplicationUtils.showYesNoDialog(this,
android.R.drawable.ic_dialog_alert,
R.string.Commons_ClearCache,
R.string.Commons_NoUndoMessage,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
doClearCache();
}
});
}
示例7: clearCookies
import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
* Display confirmation and clear cookies.
*/
private void clearCookies() {
ApplicationUtils.showYesNoDialog(this,
android.R.drawable.ic_dialog_alert,
R.string.Commons_ClearCookies,
R.string.Commons_NoUndoMessage,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
doClearCookies();
}
});
}
示例8: exportHistoryBookmarks
import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
* Ask the user to confirm the export. Launch it if confirmed.
*/
private void exportHistoryBookmarks() {
ApplicationUtils.showYesNoDialog(this,
android.R.drawable.ic_dialog_info,
R.string.Commons_HistoryBookmarksExportSDCardConfirmation,
R.string.Commons_OperationCanBeLongMessage,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
doExportHistoryBookmarks();
}
});
}
示例9: clearMobileViewList
import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
* Display a confirmation dialog and clear the white list.
*/
private void clearMobileViewList() {
ApplicationUtils.showYesNoDialog(this,
android.R.drawable.ic_dialog_alert,
R.string.MobileViewListActivity_ClearMessage,
R.string.Commons_NoUndoMessage,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
doClearMobileViewList();
}
});
}
示例10: clearMobileViewList
import org.zirco.utils.ApplicationUtils; //导入方法依赖的package包/类
/**
* Display a confirmation dialog and clear the white list.
*/
private void clearMobileViewList() {
ApplicationUtils.showYesNoDialog(this,
android.R.drawable.ic_dialog_alert,
R.string.MobileViewListActivity_ClearMessage,
R.string.Commons_NoUndoMessage,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
doClearMobileViewList();
}
});
}