mirror of
https://github.com/jamessanford/kegs.git
synced 2024-09-27 08:54:33 +00:00
Bugfix: Avoid setProgressNumberFormat on Honeycomb.
This commit is contained in:
parent
3f654b411a
commit
04eecd3147
@ -323,8 +323,11 @@ public class KegsMain extends SherlockFragmentActivity implements KegsKeyboard.S
|
|||||||
// TODO: should probably use an XML layout for this.
|
// TODO: should probably use an XML layout for this.
|
||||||
dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
|
dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
|
||||||
dialog.setMessage(getResources().getText(R.string.rom_check));
|
dialog.setMessage(getResources().getText(R.string.rom_check));
|
||||||
dialog.setProgressNumberFormat(null);
|
if (android.os.Build.VERSION.SDK_INT <= 10 || android.os.Build.VERSION.SDK_INT >= 14) {
|
||||||
if (android.os.Build.VERSION.SDK_INT >= 11) {
|
// This seems to crash on some vendors Honeycomb.
|
||||||
|
dialog.setProgressNumberFormat(null);
|
||||||
|
}
|
||||||
|
if (android.os.Build.VERSION.SDK_INT >= 14) {
|
||||||
dialog.setProgressPercentFormat(null);
|
dialog.setProgressPercentFormat(null);
|
||||||
}
|
}
|
||||||
dialog.setIndeterminate(true);
|
dialog.setIndeterminate(true);
|
||||||
|
@ -24,8 +24,11 @@ public class SpecialProgressDialog extends SherlockDialogFragment {
|
|||||||
// TODO: should probably use an XML layout for this.
|
// TODO: should probably use an XML layout for this.
|
||||||
dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
|
dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
|
||||||
dialog.setMessage(getResources().getText(R.string.progress_message));
|
dialog.setMessage(getResources().getText(R.string.progress_message));
|
||||||
dialog.setProgressNumberFormat(null);
|
if (android.os.Build.VERSION.SDK_INT <= 10 || android.os.Build.VERSION.SDK_INT >= 14) {
|
||||||
if (android.os.Build.VERSION.SDK_INT >= 11) {
|
// This seems to crash on some vendors Honeycomb.
|
||||||
|
dialog.setProgressNumberFormat(null);
|
||||||
|
}
|
||||||
|
if (android.os.Build.VERSION.SDK_INT >= 14) {
|
||||||
dialog.setProgressPercentFormat(null);
|
dialog.setProgressPercentFormat(null);
|
||||||
}
|
}
|
||||||
dialog.setIndeterminate(true);
|
dialog.setIndeterminate(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user