diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java b/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java index d7ce4df4d..2682c92f8 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java @@ -315,7 +315,7 @@ public class AccountSessionManager{ } - private void updateSessionLocalInfo(AccountSession session){ + public void updateSessionLocalInfo(AccountSession session){ new GetOwnAccount() .setCallback(new Callback<>(){ @Override diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/SearchFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/SearchFragment.java index 749f34fcb..f687ed7af 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/SearchFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/SearchFragment.java @@ -4,6 +4,7 @@ import android.app.Activity; import android.net.Uri; import android.os.Build; import android.os.Bundle; +import android.view.View; import android.view.inputmethod.InputMethodManager; import org.joinmastodon.android.GlobalUserPreferences; @@ -35,6 +36,7 @@ import java.util.stream.Collectors; import me.grishka.appkit.Nav; import me.grishka.appkit.api.Callback; import me.grishka.appkit.api.ErrorResponse; +import me.grishka.appkit.utils.V; public class SearchFragment extends BaseStatusListFragment{ private String currentQuery; diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java b/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java index ef8e30815..0cbf78317 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java @@ -1227,7 +1227,7 @@ public class UiUtils { return Optional.empty(); } - return Optional.of(new GetSearchResults(query.getQuery(), type, true).setCallback(new Callback<>() { + return Optional.of(new GetSearchResults(query.getQuery(), type, true, null, 0, 0).setCallback(new Callback<>() { @Override public void onSuccess(SearchResults results) { Optional result = extractResult.apply(results); @@ -1324,7 +1324,7 @@ public class UiUtils { } public static MastodonAPIRequest lookupAccountHandle(Context context, String accountID, Pair> queryHandle, BiConsumer, Bundle> go) { String fullHandle = ("@" + queryHandle.first) + (queryHandle.second.map(domain -> "@" + domain).orElse("")); - return new GetSearchResults(fullHandle, GetSearchResults.Type.ACCOUNTS, true) + return new GetSearchResults(fullHandle, GetSearchResults.Type.ACCOUNTS, true, null, 0, 0) .setCallback(new Callback<>() { @Override public void onSuccess(SearchResults results) { @@ -1387,7 +1387,7 @@ public class UiUtils { }) .execNoAuth(uri.getHost())); } else if (looksLikeMastodonUrl(url)) { - return Optional.of(new GetSearchResults(url, null, true) + return Optional.of(new GetSearchResults(url, null, true, null, 0, 0) .setCallback(new Callback<>() { @Override public void onSuccess(SearchResults results) {