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

Commit 7e5bf58b authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Ensure Apps are not waiting for autocomplete list

parent 6533ccab
Loading
Loading
Loading
Loading
Compare 37e3b4dc to d3c11f1e
Original line number Diff line number Diff line
Subproject commit 37e3b4dc398cb349e9637471d6df09db9c8910c8
Subproject commit d3c11f1e82949e364c3c36cdb9e2e5071cf42ab4
+28 −0
Original line number Diff line number Diff line
/*
 * Copyright 2013-2015 µg Project Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.microg.gms.common;

import android.os.RemoteException;

import com.google.android.gms.common.internal.ICancelToken;

public class NonCancelToken extends ICancelToken.Stub {
    @Override
    public void cancel() throws RemoteException {

    }
}
+9 −0
Original line number Diff line number Diff line
@@ -32,6 +32,8 @@ import com.google.android.gms.common.internal.ICancelToken;
import com.google.android.gms.people.internal.IPeopleCallbacks;
import com.google.android.gms.people.internal.IPeopleService;

import org.microg.gms.common.NonCancelToken;

import java.io.File;

public class PeopleServiceImpl extends IPeopleService.Stub {
@@ -134,6 +136,13 @@ public class PeopleServiceImpl extends IPeopleService.Stub {
        };
    }

    @Override
    public ICancelToken loadAutocompleteList(IPeopleCallbacks callbacks, String account, String pageId, boolean directorySearch, String var5, String query, int autocompleteType, int var8, int numberOfResults, boolean var10) throws RemoteException {
        Log.d(TAG, "loadAutocompleteList: " + account + ", " + pageId + ", " + directorySearch + ", " + var5 + ", " + query + ", " + autocompleteType + ", " + var8 + ", " + numberOfResults + ", " + var10);
        callbacks.onDataHolder(0, new Bundle(), null);
        return new NonCancelToken();
    }

    @Override
    public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
        if (super.onTransact(code, data, reply, flags)) return true;