fixed a typo go me!

This commit is contained in:
2011-02-12 19:00:40 +00:00
parent 894efa804b
commit 50f2ffd7a5
2 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ public class LocationReceiver extends BroadcastReceiver{
*/
private void onLocationUpdate(Location location) {
/*
* the following is used to load widget prefs from shared_prefs
* the following is used to load prefs from shared_prefs
*/
SharedPreferences settings = mContext.getSharedPreferences(TravelPost.SETTINGS, 0);
@@ -89,7 +89,7 @@ public class LocationReceiver extends BroadcastReceiver{
}
//if there is a facebook authization, then post!
if (mContext.getSharedPreferences("facebook-session.xml", 0).getString("access_token", null) != null) {
if (mContext.getSharedPreferences("facebook-session", 0).getString("access_token", null) != null) {
//post to facebook
FacebookAuth fbAuth = new FacebookAuth(mContext, new Activity());
fbAuth.authorize();

View File

@@ -106,6 +106,7 @@ public class TravelPost extends PreferenceActivity implements OnPreferenceClickL
@Override
public boolean onPreferenceClick(Preference preference) {
if (preference.getKey().equals("twitter_sign_in")) {
mTwitterServices = new TwitterServices(this);
try {
@@ -121,7 +122,6 @@ public class TravelPost extends PreferenceActivity implements OnPreferenceClickL
// } catch (SessionNotValidException e) {
// e.printStackTrace();
// }
Log.i(TAG, "onPreferenceClick.posted to wall");
}
return false;