Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

set UserIndexActivity to standar launch mode

  • Loading branch information...
commit b0628b4d724aa144b79c3dae90adeaea17411ed9 1 parent 81558f9
@longerian longerian authored
View
1  AndroidManifest.xml
@@ -66,7 +66,6 @@ limitations under the License.
<activity
android:name=".activity.UserIndexActivity"
android:screenOrientation="portrait"
- android:launchMode="singleTask"
/>
<service
android:name=".RCService"
View
BIN  res/drawable-mdpi/ic_action_bar_info.png
Deleted file not rendered
View
BIN  res/drawable-mdpi/ic_action_send.png
Deleted file not rendered
View
BIN  res/drawable-mdpi/social_forward.png
Deleted file not rendered
View
BIN  res/drawable/ic_action_send.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_social_forward.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2  res/layout/reply_item.xml
@@ -48,7 +48,7 @@ limitations under the License.
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
- android:src="@drawable/social_forward"
+ android:src="@drawable/ic_social_forward"
android:contentDescription="@string/alt_forward"
android:visibility="invisible"
/>
View
2  res/layout/site_child_item.xml
@@ -53,7 +53,7 @@ limitations under the License.
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
- android:src="@drawable/social_forward"
+ android:src="@drawable/ic_social_forward"
android:contentDescription="@string/alt_forward"
/>
</RelativeLayout>
View
22 src/org/rubychina/android/activity/UserIndexActivity.java
@@ -85,11 +85,13 @@ protected void onCreate(Bundle savedInstanceState) {
bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
}
- @Override
- protected void onNewIntent(Intent intent) {
- super.onNewIntent(intent);
- Log.d(TAG, "on new intent");
- }
+// @Override
+// protected void onNewIntent(Intent intent) {
+// super.onNewIntent(intent);
+// user = intent.getExtras().getParcelable(VIEW_PROFILE);
+// setTitle(user.getLogin());
+// updatePager();
+// }
private ServiceConnection mConnection = new ServiceConnection() {
@@ -129,6 +131,16 @@ private void initialize() {
getSupportActionBar().addTab(getFavoriteTopicTab());
getSupportActionBar().setSelectedNavigationItem(TAB_PROFILE);
}
+
+// private void updatePager() {
+// mPages.clear();
+// mAdapter.notifyDataSetChanged();
+// mAdapter = new ProfilePagerAdapter(getSupportFragmentManager());
+// mViewPager.setAdapter(mAdapter);
+// mViewPager.setCurrentItem(TAB_PROFILE);
+// mViewPager.setOnPageChangeListener(this);
+// getSupportActionBar().setSelectedNavigationItem(TAB_PROFILE);
+// }
private ActionBar.Tab getProfileTab() {
ActionBar.Tab tab = getSupportActionBar().newTab();
Please sign in to comment.
Something went wrong with that request. Please try again.