Switching around attributes so they are similar

This commit is contained in:
Joe Bowser 2010-06-04 13:32:00 -07:00
parent e55cef9c14
commit 653190c6a1
5 changed files with 9 additions and 9 deletions

View File

@ -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;

View File

@ -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()
{

View File

@ -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

View File

@ -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;

View File

@ -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);