altosdroid: Class of offline map view widget changed
[fw/altos] / altosdroid / src / org / altusmetrum / AltosDroid / AltosViewPager.java
index e8299b09aeda4f2de7f6f0d334b7cbda14c545b4..f22298d73d0a49a82c0c8a66c474cd82180a9041 100644 (file)
@@ -34,17 +34,19 @@ public class AltosViewPager extends ViewPager {
 
     @Override
     protected boolean canScroll(View v, boolean checkV, int dx, int x, int y) {
-       if (v.getClass().getName().endsWith("MapView"))
-           return true;
-
-       if(v.getClass() != null &&
-          v.getClass().getPackage() != null &&
-          v.getClass().getPackage().getName() != null &&
-          v.getClass().getPackage().getName().startsWith("maps."))
-       {
-            return true;
-        }
-        return super.canScroll(v, checkV, dx, x, y);
+
+           if (v.getClass() != null &&
+               v.getClass().getName() != null &&
+               v.getClass().getName().endsWith("MapOffline"))
+                   return true;
+
+           if(v.getClass() != null &&
+              v.getClass().getPackage() != null &&
+              v.getClass().getPackage().getName() != null &&
+              v.getClass().getPackage().getName().startsWith("maps."))
+                   return true;
+
+           return super.canScroll(v, checkV, dx, x, y);
     }
 
 }