Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e2c6b8c authored by zachh's avatar zachh Committed by Copybara-Service
Browse files

Don't use LoaderManager.getInstance() in dialer.

It was added in support library 28 which isn't available in AOSP.

TEST=none
Test: none
PiperOrigin-RevId: 196692493
Change-Id: Id53c298af61c4635f1874131a8ae84620669a16d
parent 7e7fb6f4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ public final class NewCallLogFragment extends Fragment implements LoaderCallback
   * will be called but it is not visible.
   */
  private void onFragmentShown() {
    LoaderManager loaderManager = LoaderManager.getInstance(this);
    LoaderManager loaderManager = getLoaderManager();
    if (!PermissionsUtil.hasCallLogReadPermissions(getContext())) {
      recyclerView.setVisibility(View.GONE);
      emptyContentView.setVisibility(View.VISIBLE);
@@ -228,7 +228,7 @@ public final class NewCallLogFragment extends Fragment implements LoaderCallback
                /* taskId = */ "NewCallLogFragment.coalescingAnnotatedCallLog");

    if (PermissionsUtil.hasCallLogReadPermissions(getContext())) {
      LoaderManager.getInstance(this).restartLoader(LOADER_ID, null, this);
      getLoaderManager().restartLoader(LOADER_ID, null, this);
    }

    return view;