Hided additional vertical bottom menu on map touches; cleared selected points on PP close.

This commit is contained in:
Dmitry Yunitsky 2014-07-14 12:04:28 +02:00 committed by Alex Zolotarev
parent 5e82162ab8
commit 0286e0e712

View file

@ -16,6 +16,7 @@ import android.os.Environment;
import android.telephony.TelephonyManager;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
@ -1087,7 +1088,10 @@ public class MWMActivity extends NvEventQueueActivity
public void onBackPressed()
{
if (mInfoView.getState() != State.HIDDEN)
{
hideInfoView();
deactivatePopup();
}
else
super.onBackPressed();
}
@ -1287,6 +1291,14 @@ public class MWMActivity extends NvEventQueueActivity
}
}
@Override
public boolean onTouch(View view, MotionEvent event)
{
UiUtils.hide(mVerticalToolbar);
UiUtils.show(mToolbar);
return super.onTouch(view, event);
}
public interface MapTask extends Serializable
{
public boolean run(MWMActivity target);