Ejemplo n.º 1
0
 /** @param params */
 public void initParams(GpsParams params, StorageService service) {
   /*
    * Comes from storage service. This will do nothing for fresh start,
    * but it will load previous combo on re-activation
    */
   mService = service;
   mMovement = mService.getMovement();
   mImageDataSource = mService.getDBResource();
   if (null == mMovement) {
     mMovement = new Movement();
   }
   mPan = mService.getPan();
   if (null == mPan) {
     mPan = new Pan();
   }
   if (null != params) {
     mGpsParams = params;
   } else if (null != mDestination) {
     mGpsParams = new GpsParams(mDestination.getLocation());
   } else {
     mGpsParams = new GpsParams(null);
   }
   mScale.setScaleAt(mGpsParams.getLatitude());
   dbquery(true);
   postInvalidate();
 }