Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
Fully fix

Fully fix

Fully fix

Fully fix
  • Loading branch information
millanp authored and aaronbrethorst committed Jan 9, 2024
1 parent cbba375 commit b1b30fa
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import android.util.Log;

import androidx.fragment.app.DialogFragment;
import androidx.loader.app.LoaderManager;

/**
* Asks the user if they was to save a route/headsign favorite for all stops, or just this stop
Expand Down Expand Up @@ -210,7 +211,8 @@ public void onClick(DialogInterface dialog, int id) {
// Saved the favorite for just this stop
QueryUtils.setFavoriteRouteAndHeadsign(getActivity(),
routeUri, headsign, stopId, values, favorite);
getLoaderManager().initLoader(ROUTE_INFO_LOADER, null,
LoaderManager.getInstance(getActivity()).restartLoader(
ROUTE_INFO_LOADER, null,
new QueryUtils.RouteLoaderCallback(getActivity(),
routeId));
mCallback.onSelectionComplete(true);
Expand All @@ -221,7 +223,8 @@ public void onClick(DialogInterface dialog, int id) {
routeUri, headsign, null, values, favorite);
// Request the full details of the starred route, so that
// the long name can be displayed later
getLoaderManager().initLoader(ROUTE_INFO_LOADER, null,
LoaderManager.getInstance(getActivity()).restartLoader(
ROUTE_INFO_LOADER, null,
new QueryUtils.RouteLoaderCallback(getActivity(),
routeId));
mCallback.onSelectionComplete(true);
Expand Down

0 comments on commit b1b30fa

Please sign in to comment.