Fix of large tablet mode.
parent
ebaa0b4f47
commit
c9847b6aee
|
@ -17,6 +17,7 @@ import org.greenrobot.eventbus.Subscribe;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import pl.tpolgrabia.panoramiobindings.dto.PanoramioImageInfo;
|
import pl.tpolgrabia.panoramiobindings.dto.PanoramioImageInfo;
|
||||||
|
import pl.tpolgrabia.panoramiobindings.utils.PanoramioUtils;
|
||||||
import pl.tpolgrabia.urbanexplorer.activities.SettingsActivity;
|
import pl.tpolgrabia.urbanexplorer.activities.SettingsActivity;
|
||||||
import pl.tpolgrabia.urbanexplorer.callbacks.StandardLocationListener;
|
import pl.tpolgrabia.urbanexplorer.callbacks.StandardLocationListener;
|
||||||
import pl.tpolgrabia.urbanexplorer.dto.MainActivityState;
|
import pl.tpolgrabia.urbanexplorer.dto.MainActivityState;
|
||||||
|
@ -203,12 +204,13 @@ public class MainActivity extends ActionBarActivity {
|
||||||
R.anim.slide_in_up,
|
R.anim.slide_in_up,
|
||||||
R.anim.slide_out_up);
|
R.anim.slide_out_up);
|
||||||
Fragment frag = fragmentManager.findFragmentByTag(PanoramioShowerFragment.TAG);
|
Fragment frag = fragmentManager.findFragmentByTag(PanoramioShowerFragment.TAG);
|
||||||
|
|
||||||
|
if (frag != null) {
|
||||||
ctx.replace(R.id.fragments, frag);
|
ctx.replace(R.id.fragments, frag);
|
||||||
// if (frag != null) {
|
} else {
|
||||||
// ctx.replace(R.id.fragments, frag);
|
Fragment panoramioShower = createShowerFragment(photoInfo);
|
||||||
// } else {
|
ctx.replace(R.id.fragments, panoramioShower, PanoramioShowerFragment.TAG);
|
||||||
// ctx.replace(R.id.fragments, panoramioShower, PanoramioShowerFragment.TAG);
|
}
|
||||||
// }
|
|
||||||
if (!savedConfiguration) {
|
if (!savedConfiguration) {
|
||||||
ctx.addToBackStack(AppConstants.PHOTO_BACKSTACK);
|
ctx.addToBackStack(AppConstants.PHOTO_BACKSTACK);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue