[markww-foursquared] 2 new revisions pushed by markww on 2010-09-29 02:29 GMT

0 views
Skip to first unread message

markww-fo...@googlecode.com

unread,
Sep 28, 2010, 10:29:33 PM9/28/10
to foursqu...@googlegroups.com
2 new revisions:

Revision: bdb085c5ad
Author: mar...@gmail.com
Date: Tue Sep 28 18:18:51 2010
Log: Added check to see if user credentials are set before running
checkins...
http://code.google.com/r/markww-foursquared/source/detail?r=bdb085c5ad

Revision: 577c32db45
Author: markww
Date: Tue Sep 28 19:28:32 2010
Log: Replaced sad marsbot image with simple text when no tips/todos could
b...
http://code.google.com/r/markww-foursquared/source/detail?r=577c32db45

==============================================================================
Revision: bdb085c5ad
Author: mar...@gmail.com
Date: Tue Sep 28 18:18:51 2010
Log: Added check to see if user credentials are set before running checkins
task in friends activity. The architecture for the login screen flow will
be revisited in next versions to handle this.
http://code.google.com/r/markww-foursquared/source/detail?r=bdb085c5ad

Modified:
/main/src/com/joelapenna/foursquared/FriendsActivity.java

=======================================
--- /main/src/com/joelapenna/foursquared/FriendsActivity.java Mon Sep 27
13:48:40 2010
+++ /main/src/com/joelapenna/foursquared/FriendsActivity.java Tue Sep 28
18:18:51 2010
@@ -107,8 +107,11 @@

ensureUi();

- if (!mStateHolder.getRanOnce()) {
- mStateHolder.startTask(this);
+ Foursquared foursquared = (Foursquared)getApplication();
+ if (foursquared.isReady()) {
+ if (!mStateHolder.getRanOnce()) {
+ mStateHolder.startTask(this);
+ }
}
}


==============================================================================
Revision: 577c32db45
Author: markww
Date: Tue Sep 28 19:28:32 2010
Log: Replaced sad marsbot image with simple text when no tips/todos could
be found.
http://code.google.com/r/markww-foursquared/source/detail?r=577c32db45

Modified:
/main/res/layout/tips_activity_empty.xml
/main/res/layout/todos_activity_empty.xml

/main/src/com/joelapenna/foursquared/UserDetailsFriendsFollowersActivity.java
/main/src/com/joelapenna/foursquared/widget/SegmentedButton.java

=======================================
--- /main/res/layout/tips_activity_empty.xml Mon Sep 27 08:50:45 2010
+++ /main/res/layout/tips_activity_empty.xml Tue Sep 28 19:28:32 2010
@@ -11,11 +11,11 @@
android:gravity="center"
android:background="@drawable/listview_item_manual" >

- <ImageView
- android:id="@+id/todosActivityEmptyImageView"
- android:layout_width="170dip"
- android:layout_height="155dip"
- android:src="@drawable/sadface"
- android:scaleType="fitXY" />
-
+ <TextView
+ android:id="@+id/todosActivityEmptyTextView"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="No tips available"
+ />
+
</LinearLayout>
=======================================
--- /main/res/layout/todos_activity_empty.xml Mon Sep 27 08:50:45 2010
+++ /main/res/layout/todos_activity_empty.xml Tue Sep 28 19:28:32 2010
@@ -11,11 +11,11 @@
android:gravity="center"
android:background="@drawable/listview_item_manual" >

- <ImageView
- android:id="@+id/todosActivityEmptyImageView"
- android:layout_width="170dip"
- android:layout_height="155dip"
- android:src="@drawable/sadface"
- android:scaleType="fitXY" />
+ <TextView
+ android:id="@+id/todosActivityEmptyTextView"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="No to-do's available"
+ />

</LinearLayout>
=======================================
---
/main/src/com/joelapenna/foursquared/UserDetailsFriendsFollowersActivity.java
Sat Sep 25 22:10:34 2010
+++
/main/src/com/joelapenna/foursquared/UserDetailsFriendsFollowersActivity.java
Tue Sep 28 19:28:32 2010
@@ -49,7 +49,7 @@

public static final String INTENT_EXTRA_USER_ID =
Foursquared.PACKAGE_NAME
+ ".UserDetailsFriendsFollowersActivity.INTENT_EXTRA_USER_ID";
-
+
private StateHolder mStateHolder;
private FriendActionableListAdapter mListAdapter;
private ScrollView mLayoutEmpty;
@@ -243,6 +243,23 @@

return super.onOptionsItemSelected(item);
}
+
+ /*
+ * Leaving this out for now as it may be very costly for users with
very large
+ * friend networks.
+ private void prepareResultIntent() {
+ Group<User> followers = mStateHolder.getFollowers();
+ Group<User> friends = mStateHolder.getFollowers();
+
+ User[] followersArr = (User[])followers.toArray(new
User[followers.size()]);
+ User[] friendsArr = (User[])friends.toArray(new
User[friends.size()]);
+
+ Intent intent = new Intent();
+ intent.putExtra(EXTRA_FOLLOWERS_RETURNED, followersArr);
+ intent.putExtra(EXTRA_FRIENDS_RETURNED, friendsArr);
+ setResult(CODE, intent);
+ }
+ */

private void updateFollowerStatus(User user, boolean approve) {
mStateHolder.startTaskUpdateFollower(this, user, approve);
@@ -634,9 +651,7 @@
}

public void removeTaskUpdateFollower(TaskUpdateFollower task) {
- Log.i(TAG, "Cleaning up followers tasks... " +
mTasksUpdateFollowers.size());
mTasksUpdateFollowers.remove(task);
- Log.i(TAG, " Cleanup s1 complete... " +
mTasksUpdateFollowers.size());

// Try to cleanup anyone we missed, this could happen for a
brief period
// during rotation.
@@ -645,7 +660,6 @@
mTasksUpdateFollowers.remove(i);
}
}
- Log.i(TAG, " Cleanup s2 complete... " +
mTasksUpdateFollowers.size());
}
}
}
=======================================
--- /main/src/com/joelapenna/foursquared/widget/SegmentedButton.java Fri
Sep 24 09:17:20 2010
+++ /main/src/com/joelapenna/foursquared/widget/SegmentedButton.java Tue
Sep 28 19:28:32 2010
@@ -19,6 +19,13 @@
import java.util.List;

/**
+ * A multi-button control which can only have one pressed button at
+ * any given time. Its functionality is quite similar to a tab control.
+ * Tabs can't be skinned in android 1.5, and our main frame is a tab
+ * host - which causes some different android problems, thus this control
+ * was created.
+ *
+ * @date September 15, 2010
* @author Mark Wyszomierski (mar...@gmail.com)
*/
public class SegmentedButton extends LinearLayout {

Reply all
Reply to author
Forward
0 new messages