mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +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;
|
||||
|
||||
CompassListener(Context ctx, WebView appView)
|
||||
CompassListener(WebView appView, Context ctx)
|
||||
{
|
||||
mCtx = ctx;
|
||||
mAppView = appView;
|
||||
|
@ -27,12 +27,12 @@ public class ContactManager {
|
||||
Uri mPhone = android.provider.Contacts.Phones.CONTENT_URI;
|
||||
Uri mEmail = android.provider.Contacts.ContactMethods.CONTENT_URI;
|
||||
|
||||
ContactManager(Activity app, WebView view)
|
||||
ContactManager(WebView view, Activity app)
|
||||
{
|
||||
mApp = app;
|
||||
mView = view;
|
||||
}
|
||||
|
||||
|
||||
// This is to add backwards compatibility to the OLD Contacts API\
|
||||
public void getContactsAndSendBack()
|
||||
{
|
||||
|
@ -133,14 +133,14 @@ public class DroidGap extends Activity {
|
||||
|
||||
private void bindBrowser(WebView appView)
|
||||
{
|
||||
gap = new PhoneGap(this, appView);
|
||||
gap = new PhoneGap(appView, this);
|
||||
geo = new GeoBroker(appView, this);
|
||||
accel = new AccelBroker(appView, this);
|
||||
launcher = new CameraLauncher(appView, this);
|
||||
mContacts = new ContactManager(this, appView);
|
||||
mContacts = new ContactManager(appView, this);
|
||||
fs = new FileUtils(appView);
|
||||
netMan = new NetworkManager(this, appView);
|
||||
mCompass = new CompassListener(this, appView);
|
||||
netMan = new NetworkManager(appView, this);
|
||||
mCompass = new CompassListener(appView, this);
|
||||
crypto = new CryptoHandler(appView);
|
||||
|
||||
// This creates the new javascript interfaces for PhoneGap
|
||||
|
@ -13,7 +13,7 @@ public class NetworkManager {
|
||||
WebView mView;
|
||||
ConnectivityManager sockMan;
|
||||
|
||||
NetworkManager(Context ctx, WebView view)
|
||||
NetworkManager(WebView view, Context ctx)
|
||||
{
|
||||
mCtx = ctx;
|
||||
mView = view;
|
||||
|
@ -49,7 +49,7 @@ public class PhoneGap{
|
||||
private WebView mAppView;
|
||||
AudioHandler audio;
|
||||
|
||||
public PhoneGap(Context ctx, WebView appView) {
|
||||
public PhoneGap(WebView appView, Context ctx) {
|
||||
this.mCtx = ctx;
|
||||
this.mAppView = appView;
|
||||
audio = new AudioHandler("/sdcard/tmprecording.mp3", ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user