Commits

Anonymous committed 61a7406 Draft

AlertDialog.Builder(context, int) is api11 +. Switch to old builder

  • Participants
  • Parent commits 7828353

Comments (0)

Files changed (3)

File src/com/jrummy/busybox/installer/AdvancedInstaller.java

 	protected Dialog onCreateDialog(final int id) {
 		if (id == DIALOG_INSTALL_SUCCESS
 				|| id == DIALOG_INSTALL_FAILED) {
-			return new AlertDialog.Builder(AdvancedInstaller.this, AlertDialog.THEME_HOLO_DARK)
+			return new AlertDialog.Builder(AdvancedInstaller.this)
 			.setIconAttribute(android.R.attr.alertDialogIcon)
 			.setTitle(mBusyboxName)
 			.setCancelable(false)

File src/com/jrummy/busybox/installer/BusyboxActivity.java

 	@Override
 	protected Dialog onCreateDialog(final int id) {
 		if (id == DIALOG_WELCOME) {
-			return new AlertDialog.Builder(BusyboxActivity.this, AlertDialog.THEME_HOLO_DARK)
+			return new AlertDialog.Builder(BusyboxActivity.this)
 			.setIconAttribute(R.drawable.titlebar_icon)
 			.setTitle(getString(R.string.dt_welcome))
 			.setCancelable(false)
 			});
 			return dialog;
 		} else if (id == DIALOG_ROOT_ACCESS_FAILED) {
-			return new AlertDialog.Builder(BusyboxActivity.this, AlertDialog.THEME_HOLO_DARK)
+			return new AlertDialog.Builder(BusyboxActivity.this)
 			.setIconAttribute(android.R.attr.alertDialogIcon)
 			.setTitle(getString(R.string.dt_root_access_failed))
 			.setCancelable(false)
 		} else if (id == DIALOG_DOWNLOAD_FAILED) {
 			BusyboxInstaller installer = (BusyboxInstaller) BusyboxFragment
 					.getData(INSTALLER_TAB_POS);
-			return new AlertDialog.Builder(BusyboxActivity.this, AlertDialog.THEME_HOLO_DARK)
+			return new AlertDialog.Builder(BusyboxActivity.this)
 			.setIconAttribute(android.R.attr.alertDialogIcon)
 			.setTitle(getString(R.string.dt_download_failed))
 			.setCancelable(false)

File src/com/jrummy/busybox/installer/BusyboxPreferences.java

 
 			return dialog;
 		} else if (id == DIALOG_CONFIRM_DELETE) {
-			return new AlertDialog.Builder(BusyboxPreferences.this, AlertDialog.THEME_HOLO_DARK)
+			return new AlertDialog.Builder(BusyboxPreferences.this)
 			.setIconAttribute(android.R.attr.alertDialogIcon)
 			.setTitle(getString(R.string.dt_confirm_delete))
 			.setCancelable(false)