Skip to content

Commit be8020d

Browse files
committed
Merge branch 'release/3.2' into develop
2 parents e82bb1d + 63e1577 commit be8020d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

WordPress/src/main/java/org/wordpress/android/ui/WPActionBarActivity.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
import org.wordpress.android.util.BlogUtils;
6161
import org.wordpress.android.util.DeviceUtils;
6262
import org.wordpress.android.util.DisplayUtils;
63+
import org.wordpress.android.util.StringUtils;
6364
import org.wordpress.android.util.ToastUtils;
6465
import org.wordpress.android.util.ToastUtils.Duration;
6566
import org.wordpress.android.util.ptr.PullToRefreshHelper;
@@ -263,6 +264,9 @@ private void initMenuDrawer() {
263264
* Create menu drawer ListView and listeners
264265
*/
265266
private void initMenuDrawer(int blogSelection) {
267+
if (mMenuDrawer == null) {
268+
return;
269+
}
266270
mListView = new ListView(this);
267271
mListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
268272
mListView.setDivider(null);
@@ -576,8 +580,10 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
576580
// new blog has been added, so rebuild cache of blogs and setup current blog
577581
getBlogNames();
578582
setupCurrentBlog();
579-
initMenuDrawer();
580-
mMenuDrawer.openMenu(false);
583+
if (mMenuDrawer != null) {
584+
initMenuDrawer();
585+
mMenuDrawer.openMenu(false);
586+
}
581587
WordPress.registerForCloudMessaging(this);
582588
// If logged in without blog, redirect to the Reader view
583589
showReaderIfNoBlog();

WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderAnim.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ private static void animateButton(final View target, ReaderButton button) {
211211
// rotate like button +/- 72 degrees (72 = 360/5, 5 is the number of points in the star)
212212
float endRotate = (button == ReaderButton.LIKE_ON ? 72f : -72f);
213213
ObjectAnimator animRotate = ObjectAnimator.ofFloat(target, View.ROTATION, 0f, endRotate);
214+
animRotate.setRepeatMode(ValueAnimator.REVERSE);
215+
animRotate.setRepeatCount(1);
214216
set.play(animX).with(animY).with(animRotate);
215217
// on Android 4.4.3 the rotation animation may cause the drawable to fade out unless
216218
// we set the layer type - https://code.google.com/p/android/issues/detail?id=70914

0 commit comments

Comments
 (0)