зеркало из https://github.com/mozilla/gecko-dev.git
Bug 921112 - Prohibit proguad from erasing JNI MCC methods. r=bnicholson
This commit is contained in:
Родитель
ae0b5f67c1
Коммит
ef36a8a16c
|
@ -5,6 +5,8 @@
|
|||
|
||||
package org.mozilla.gecko;
|
||||
|
||||
import org.mozilla.gecko.mozglue.JNITarget;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
@ -352,10 +354,13 @@ public class GeckoNetworkManager extends BroadcastReceiver {
|
|||
return -1;
|
||||
}
|
||||
|
||||
/* These are called from javascript c-types. Avoid letting pro-guard delete them */
|
||||
@JNITarget
|
||||
public static int getMCC() {
|
||||
return getNetworkOperator(InfoType.MCC);
|
||||
}
|
||||
|
||||
@JNITarget
|
||||
public static int getMNC() {
|
||||
return getNetworkOperator(InfoType.MNC);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче