aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-10-11 18:33:14 -0700
committerScott Jackson <daneren2005@gmail.com>2014-10-11 18:33:14 -0700
commitfbeff2c3a250960c53c6aff67a081feeb7b5368e (patch)
tree017341c866add8375698723e6d7cdaacac776170 /src/github/daneren2005
parent5e7d3b29f7be834ba903cdb20412fe07f6822897 (diff)
parent8aeb559d0e7ce9bdc9dcc1e222da7f9e0bf901dc (diff)
downloaddsub-fbeff2c3a250960c53c6aff67a081feeb7b5368e.tar.gz
dsub-fbeff2c3a250960c53c6aff67a081feeb7b5368e.tar.bz2
dsub-fbeff2c3a250960c53c6aff67a081feeb7b5368e.zip
Merge branch 'master' into ServerRemoved
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicActivity.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
index 6d1a9330..c3f8e4a7 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -584,6 +584,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
}
// Add fragment to the right container
+ trans.setCustomAnimations(R.anim.enter_from_right, R.anim.exit_to_left, R.anim.enter_from_left, R.anim.exit_to_right);
trans.add(R.id.fragment_second_container, fragment, tag + "");
// Commit it all
@@ -611,12 +612,12 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
FragmentTransaction trans = getSupportFragmentManager().beginTransaction();
// Remove old right fragment
- // trans.setCustomAnimations(R.anim.enter_from_left, R.anim.exit_to_right, R.anim.enter_from_right, R.anim.exit_to_left);
+ trans.setCustomAnimations(R.anim.enter_from_left, R.anim.exit_to_right, R.anim.enter_from_right, R.anim.exit_to_left);
trans.remove(oldFrag);
// Only switch places if there is a backstack, otherwise primary container is correct
if(backStack.size() > 0) {
- // trans.setCustomAnimations(0, 0, 0, 0);
+ trans.setCustomAnimations(0, 0, 0, 0);
// Add current left fragment to right side
trans.remove(currentFragment);
@@ -632,7 +633,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
newLeftFragment.setSecondaryFragment(true);
trans.show(newLeftFragment);
} else {
- // secondaryContainer.startAnimation(AnimationUtils.loadAnimation(this, R.anim.exit_to_right));
+ secondaryContainer.startAnimation(AnimationUtils.loadAnimation(this, R.anim.exit_to_right));
secondaryContainer.setVisibility(View.GONE);
}
@@ -655,7 +656,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
}
protected void recreateSpinner() {
- if(currentFragment.getTitle() == null) {
+ if(currentFragment == null || currentFragment.getTitle() == null) {
return;
}