forked from organicmaps/organicmaps
Hided additional vertical bottom menu on map touches; cleared selected points on PP close.
This commit is contained in:
parent
5e82162ab8
commit
0286e0e712
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue