Permalink
Browse files

little improvements

  • Loading branch information...
mariotaku committed Nov 23, 2012
1 parent 6f3568e commit 8b231bfb5cf19583cdfb22b7c1a331c4f2960c2c
View
@@ -11,9 +11,9 @@
<!-- The width of the big icons in notifications. -->
<dimen name="notification_large_icon_height">64dp</dimen>
<dimen name="pane_left_width">300dp</dimen>
- <dimen name="pane_right_width">120dp</dimen>
+ <dimen name="pane_right_width">240dp</dimen>
<dimen name="default_slidepane_spacing_left">@dimen/pane_right_width</dimen>
<dimen name="default_slidepane_spacing_right">@dimen/pane_right_width</dimen>
<dimen name="default_slidingpane_shadow_width">56dp</dimen>
-</resources>
+</resources>
@@ -459,7 +459,10 @@ public void displayStatus(final ParcelableStatus status) {
}
clearPreviewImages();
if (status == null || getActivity() == null) return;
-
+ final Bundle args = getArguments();
+ args.putLong(INTENT_KEY_ACCOUNT_ID, mAccountId);
+ args.putLong(INTENT_KEY_STATUS_ID, mStatusId);
+ args.putParcelable(INTENT_KEY_STATUS, status);
mMenuBar.inflate(R.menu.menu_status);
setMenuForStatus(getActivity(), mMenuBar.getMenu(), status);
mMenuBar.show();
@@ -568,7 +571,6 @@ public void onActivityCreated(final Bundle savedInstanceState) {
if (bundle != null) {
mAccountId = bundle.getLong(INTENT_KEY_ACCOUNT_ID);
mStatusId = bundle.getLong(INTENT_KEY_STATUS_ID);
- // mStatus = bundle.getParcelable(INTENT_KEY_STATUS);
}
mImagePreviewAdapter = new ImagesAdapter(getActivity());
mLoadImagesIndicator.setOnClickListener(this);
@@ -782,8 +782,8 @@ public boolean onInterceptTouchEvent(final ViewGroup view, final MotionEvent eve
mTempDeltaX = event.getX() - event.getHistoricalX(0);
mTotalMoveX += mTempDeltaX;
mTotalMoveY += event.getY() - event.getHistoricalY(0);
- if (!mIsVerticalScrolling && Math.abs(mTotalMoveX) >= mScaledTouchSlop / 2) return true;
- if (Math.abs(mTotalMoveY) >= mScaledTouchSlop / 2) {
+ if (!mIsVerticalScrolling && Math.abs(mTotalMoveX) >= mScaledTouchSlop) return true;
+ if (Math.abs(mTotalMoveY) >= mScaledTouchSlop) {
mIsVerticalScrolling = true;
return false;
}

0 comments on commit 8b231bf

Please sign in to comment.