mirror of https://github.com/tasks/tasks
Move location picker to main source set
parent
588688357e
commit
be0432c86c
@ -0,0 +1,28 @@
|
|||||||
|
package org.tasks.location;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import androidx.fragment.app.FragmentManager;
|
||||||
|
import java.util.List;
|
||||||
|
import org.tasks.data.Place;
|
||||||
|
|
||||||
|
public class GoogleMapFragment implements MapFragment {
|
||||||
|
|
||||||
|
public GoogleMapFragment(Context context) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(FragmentManager fragmentManager, MapFragmentCallback callback, boolean dark) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MapPosition getMapPosition() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void movePosition(MapPosition mapPosition, boolean animate) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setMarkers(List<Place> places) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void showMyLocation() {}
|
||||||
|
}
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
package org.tasks.location;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import java.util.List;
|
||||||
|
import org.tasks.Callback;
|
||||||
|
import org.tasks.data.Place;
|
||||||
|
|
||||||
|
public class GooglePlacesSearchProvider implements PlaceSearchProvider {
|
||||||
|
|
||||||
|
public GooglePlacesSearchProvider(Context context) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void restoreState(Bundle savedInstanceState) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void saveState(Bundle outState) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void search(
|
||||||
|
String query,
|
||||||
|
MapPosition bias,
|
||||||
|
Callback<List<PlaceSearchResult>> onSuccess,
|
||||||
|
Callback<String> onError) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void fetch(
|
||||||
|
PlaceSearchResult placeSearchResult, Callback<Place> onSuccess, Callback<String> onError) {}
|
||||||
|
}
|
||||||
@ -1,18 +0,0 @@
|
|||||||
package org.tasks.location;
|
|
||||||
|
|
||||||
import android.app.Activity;
|
|
||||||
import android.content.Context;
|
|
||||||
import android.content.Intent;
|
|
||||||
import org.tasks.data.Location;
|
|
||||||
import org.tasks.preferences.Preferences;
|
|
||||||
|
|
||||||
public class PlacePicker {
|
|
||||||
|
|
||||||
public static Intent getIntent(Activity activity) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Location getPlace(Context context, Intent data, Preferences preferences) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue