mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Switching around attributes so they are similar
This commit is contained in:
parent
e55cef9c14
commit
653190c6a1
@ -16,7 +16,7 @@ public class CompassListener implements SensorEventListener{
|
|||||||
|
|
||||||
private SensorManager sensorManager;
|
private SensorManager sensorManager;
|
||||||
|
|
||||||
CompassListener(Context ctx, WebView appView)
|
CompassListener(WebView appView, Context ctx)
|
||||||
{
|
{
|
||||||
mCtx = ctx;
|
mCtx = ctx;
|
||||||
mAppView = appView;
|
mAppView = appView;
|
||||||
|
@ -27,12 +27,12 @@ public class ContactManager {
|
|||||||
Uri mPhone = android.provider.Contacts.Phones.CONTENT_URI;
|
Uri mPhone = android.provider.Contacts.Phones.CONTENT_URI;
|
||||||
Uri mEmail = android.provider.Contacts.ContactMethods.CONTENT_URI;
|
Uri mEmail = android.provider.Contacts.ContactMethods.CONTENT_URI;
|
||||||
|
|
||||||
ContactManager(Activity app, WebView view)
|
ContactManager(WebView view, Activity app)
|
||||||
{
|
{
|
||||||
mApp = app;
|
mApp = app;
|
||||||
mView = view;
|
mView = view;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is to add backwards compatibility to the OLD Contacts API\
|
// This is to add backwards compatibility to the OLD Contacts API\
|
||||||
public void getContactsAndSendBack()
|
public void getContactsAndSendBack()
|
||||||
{
|
{
|
||||||
|
@ -133,14 +133,14 @@ public class DroidGap extends Activity {
|
|||||||
|
|
||||||
private void bindBrowser(WebView appView)
|
private void bindBrowser(WebView appView)
|
||||||
{
|
{
|
||||||
gap = new PhoneGap(this, appView);
|
gap = new PhoneGap(appView, this);
|
||||||
geo = new GeoBroker(appView, this);
|
geo = new GeoBroker(appView, this);
|
||||||
accel = new AccelBroker(appView, this);
|
accel = new AccelBroker(appView, this);
|
||||||
launcher = new CameraLauncher(appView, this);
|
launcher = new CameraLauncher(appView, this);
|
||||||
mContacts = new ContactManager(this, appView);
|
mContacts = new ContactManager(appView, this);
|
||||||
fs = new FileUtils(appView);
|
fs = new FileUtils(appView);
|
||||||
netMan = new NetworkManager(this, appView);
|
netMan = new NetworkManager(appView, this);
|
||||||
mCompass = new CompassListener(this, appView);
|
mCompass = new CompassListener(appView, this);
|
||||||
crypto = new CryptoHandler(appView);
|
crypto = new CryptoHandler(appView);
|
||||||
|
|
||||||
// This creates the new javascript interfaces for PhoneGap
|
// This creates the new javascript interfaces for PhoneGap
|
||||||
|
@ -13,7 +13,7 @@ public class NetworkManager {
|
|||||||
WebView mView;
|
WebView mView;
|
||||||
ConnectivityManager sockMan;
|
ConnectivityManager sockMan;
|
||||||
|
|
||||||
NetworkManager(Context ctx, WebView view)
|
NetworkManager(WebView view, Context ctx)
|
||||||
{
|
{
|
||||||
mCtx = ctx;
|
mCtx = ctx;
|
||||||
mView = view;
|
mView = view;
|
||||||
|
@ -49,7 +49,7 @@ public class PhoneGap{
|
|||||||
private WebView mAppView;
|
private WebView mAppView;
|
||||||
AudioHandler audio;
|
AudioHandler audio;
|
||||||
|
|
||||||
public PhoneGap(Context ctx, WebView appView) {
|
public PhoneGap(WebView appView, Context ctx) {
|
||||||
this.mCtx = ctx;
|
this.mCtx = ctx;
|
||||||
this.mAppView = appView;
|
this.mAppView = appView;
|
||||||
audio = new AudioHandler("/sdcard/tmprecording.mp3", ctx);
|
audio = new AudioHandler("/sdcard/tmprecording.mp3", ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user