commit
84ae9366a1
2 changed files with 7 additions and 1 deletions
|
@ -138,7 +138,7 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca
|
|||
@Override
|
||||
public void onScrollChanged() {
|
||||
int scrollY = mainScroll.getScrollY();
|
||||
if (previousScroll == scrollY){
|
||||
if (previousScroll == scrollY || mainScroll.getChildAt(0) == null){
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -84,6 +84,9 @@ public class DashDownloadMapsFragment extends DashBaseFragment {
|
|||
}
|
||||
|
||||
protected void updateCount(String s) {
|
||||
if (DashDownloadMapsFragment.this.isDetached()){
|
||||
return;
|
||||
}
|
||||
File ms = getMyApplication().getAppPath(s);
|
||||
if (ms.exists()) {
|
||||
File[] lf = ms.listFiles();
|
||||
|
@ -101,6 +104,9 @@ public class DashDownloadMapsFragment extends DashBaseFragment {
|
|||
@Override
|
||||
protected void onPostExecute(Void result) {
|
||||
super.onPostExecute(result);
|
||||
if (DashDownloadMapsFragment.this.isDetached()){
|
||||
return;
|
||||
}
|
||||
if(countMaps > 0) {
|
||||
long mb = 1 << 20;
|
||||
long gb = 1 << 30;
|
||||
|
|
Loading…
Reference in a new issue