Fix weird issue with progress
This commit is contained in:
parent
8e2df14739
commit
cba58b7a51
2 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue