Skip to content

Commit

Permalink
fix: make app compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Sep 28, 2023
1 parent d2de62e commit 7fdea97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ private void maybeUpdateCustomEmojis(Set<String> domains, String activeDomain){
}


private void updateSessionLocalInfo(AccountSession session){
public void updateSessionLocalInfo(AccountSession session){
new GetOwnAccount()
.setCallback(new Callback<>(){
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
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;
Expand Down Expand Up @@ -35,6 +36,7 @@
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<SearchResult>{
private String currentQuery;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ public static <T extends Searchable> Optional<MastodonAPIRequest<SearchResults>>
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<T> result = extractResult.apply(results);
Expand Down Expand Up @@ -1324,7 +1324,7 @@ public static Optional<MastodonAPIRequest<SearchResults>> lookupAccountHandle(Co
}
public static MastodonAPIRequest<SearchResults> lookupAccountHandle(Context context, String accountID, Pair<String, Optional<String>> queryHandle, BiConsumer<Class<? extends Fragment>, 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) {
Expand Down Expand Up @@ -1387,7 +1387,7 @@ public void onError(ErrorResponse error){
})
.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) {
Expand Down

0 comments on commit 7fdea97

Please sign in to comment.