[android] fix: Zoom did not work after first start screen.

This commit is contained in:
Alexander Marchuk 2016-05-26 17:36:20 +03:00
parent 43cd9b6b56
commit e3461eecf5
2 changed files with 1 additions and 8 deletions

View file

@ -158,8 +158,6 @@ abstract class BaseNewsFragment extends BaseMwmDialogFragment
void onSwitchChanged(int index, boolean isChecked) {}
void onClosed() {}
private void update()
{
int cur = mPager.getCurrentItem();
@ -279,7 +277,6 @@ abstract class BaseNewsFragment extends BaseMwmDialogFragment
@Override
public void onClick(View v)
{
onClosed();
dismissAllowingStateLoss();
}
});

View file

@ -94,12 +94,7 @@ public class FirstStartFragment extends BaseNewsFragment
public void onDismiss(DialogInterface dialog)
{
super.onDismiss(dialog);
LocationHelper.INSTANCE.removeLocationListener(mLocationListener);
}
@Override
void onClosed()
{
if (sLocation == null)
{
String reason;
@ -125,6 +120,7 @@ public class FirstStartFragment extends BaseNewsFragment
Framework.nativeZoomToPoint(sLocation.getLatitude(), sLocation.getLongitude(), 14, true);
sLocation = null;
LocationHelper.INSTANCE.removeLocationListener(mLocationListener);
}
public static boolean showOn(FragmentActivity activity)