mirror of
https://github.com/jamessanford/kegs.git
synced 2025-01-20 03:29:57 +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.
|
||||
dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
|
||||
dialog.setMessage(getResources().getText(R.string.rom_check));
|
||||
dialog.setProgressNumberFormat(null);
|
||||
if (android.os.Build.VERSION.SDK_INT >= 11) {
|
||||
if (android.os.Build.VERSION.SDK_INT <= 10 || android.os.Build.VERSION.SDK_INT >= 14) {
|
||||
// This seems to crash on some vendors Honeycomb.
|
||||
dialog.setProgressNumberFormat(null);
|
||||
}
|
||||
if (android.os.Build.VERSION.SDK_INT >= 14) {
|
||||
dialog.setProgressPercentFormat(null);
|
||||
}
|
||||
dialog.setIndeterminate(true);
|
||||
|
@ -24,8 +24,11 @@ public class SpecialProgressDialog extends SherlockDialogFragment {
|
||||
// TODO: should probably use an XML layout for this.
|
||||
dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
|
||||
dialog.setMessage(getResources().getText(R.string.progress_message));
|
||||
dialog.setProgressNumberFormat(null);
|
||||
if (android.os.Build.VERSION.SDK_INT >= 11) {
|
||||
if (android.os.Build.VERSION.SDK_INT <= 10 || android.os.Build.VERSION.SDK_INT >= 14) {
|
||||
// This seems to crash on some vendors Honeycomb.
|
||||
dialog.setProgressNumberFormat(null);
|
||||
}
|
||||
if (android.os.Build.VERSION.SDK_INT >= 14) {
|
||||
dialog.setProgressPercentFormat(null);
|
||||
}
|
||||
dialog.setIndeterminate(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user