-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust Maps to latest API and fix display issue, add empty Wallet API…
- Loading branch information
Showing
11 changed files
with
175 additions
and
26 deletions.
There are no files selected for viewing
Submodule GmsApi
updated
7 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
play-services-core/src/main/java/org/microg/gms/maps/ContainerLayout.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (C) 2013-2016 microG 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.maps; | ||
|
||
import android.content.Context; | ||
import android.widget.FrameLayout; | ||
|
||
import org.oscim.utils.ThreadUtils; | ||
|
||
public class ContainerLayout extends FrameLayout { | ||
public ContainerLayout(Context context) { | ||
super(context); | ||
} | ||
|
||
@Override | ||
protected void onLayout(boolean changed, int left, int top, int right, int bottom) { | ||
ThreadUtils.init(); | ||
super.onLayout(changed, left, top, right, bottom); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
play-services-core/src/main/java/org/microg/gms/wallet/OwServiceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (C) 2013-2016 microG 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.wallet; | ||
|
||
import android.content.Context; | ||
import android.os.Parcel; | ||
import android.os.RemoteException; | ||
import android.util.Log; | ||
|
||
import com.google.android.gms.wallet.internal.IOwService; | ||
|
||
public class OwServiceImpl extends IOwService.Stub { | ||
private static final String TAG = "GmsWalletOwSvc"; | ||
|
||
public OwServiceImpl(Context context) { | ||
} | ||
|
||
@Override | ||
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { | ||
if (super.onTransact(code, data, reply, flags)) return true; | ||
Log.d(TAG, "onTransact [unknown]: " + code + ", " + data + ", " + flags); | ||
return false; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
play-services-core/src/main/java/org/microg/gms/wallet/PaymentService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright (C) 2013-2016 microG 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.wallet; | ||
|
||
import android.os.RemoteException; | ||
import android.util.Log; | ||
|
||
import com.google.android.gms.common.internal.GetServiceRequest; | ||
import com.google.android.gms.common.internal.IGmsCallbacks; | ||
|
||
import org.microg.gms.BaseService; | ||
import org.microg.gms.common.GmsService; | ||
|
||
public class PaymentService extends BaseService { | ||
public PaymentService() { | ||
super("GmsWalletPaySvc", GmsService.WALLET); | ||
} | ||
|
||
@Override | ||
public void handleServiceRequest(IGmsCallbacks callback, GetServiceRequest request, GmsService service) throws RemoteException { | ||
callback.onPostInitComplete(0, new OwServiceImpl(this), null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters