Fix weird issue with progress

This commit is contained in:
Victor Shcherb 2012-09-09 23:50:24 +02:00
parent 8e2df14739
commit cba58b7a51
2 changed files with 7 additions and 2 deletions

View file

@ -192,7 +192,7 @@ public class DownloadFileHelper {
while ((read = zipIn.read(buffer)) != -1) {
out.write(buffer, 0, read);
remaining -= fin.lastReadCount();
progress.progress(remaining / 1024);
progress.remaining(remaining / 1024);
}
out.close();

View file

@ -449,7 +449,12 @@ public class MapActivityLayers {
});
AlertDialog dlg = builder.show();
dlg.getListView().setFastScrollEnabled(true);
try {
dlg.getListView().setFastScrollEnabled(true);
} catch(Exception e) {
// java.lang.ClassCastException: com.android.internal.widget.RoundCornerListAdapter
// Unknown reason but on some devices fail
}
}
}