Skip to content

Commit

Permalink
Optimize volume button advice placement
Browse files Browse the repository at this point in the history
  • Loading branch information
andreynovikov committed Feb 2, 2024
1 parent c0ec9a8 commit 7b2ab0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/mobi/maptrek/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2195,7 +2195,7 @@ public void onMapEvent(Event e, MapPosition mapPosition) {
if (mFirstMove) {
mFirstMove = false;
mViews.popupAnchor.setX(mMap.getWidth() - 32 * MapTrek.density);
mViews.popupAnchor.setY(mStatusBarHeight + 8 * MapTrek.density);
mViews.popupAnchor.setY(mStatusBarHeight + 64 * MapTrek.density);
HelperUtils.showTargetedAdvice(MainActivity.this, Configuration.ADVICE_LOCK_MAP_POSITION, R.string.advice_lock_map_position, mViews.popupAnchor, R.drawable.ic_volume_down);
}
}
Expand Down Expand Up @@ -3836,7 +3836,7 @@ public void onGlobalLayout() {
HelperUtils.showTargetedAdvice(MainActivity.this, Configuration.ADVICE_ENABLE_LOCATIONS, R.string.advice_enable_locations, mViews.locationButton, false);
} else if (mTotalDataItems > 5 && mPanelState == PANEL_STATE.NONE) {
mViews.popupAnchor.setX(mMap.getWidth() - 32 * MapTrek.density);
mViews.popupAnchor.setY(mStatusBarHeight + 8 * MapTrek.density);
mViews.popupAnchor.setY(mStatusBarHeight + 64 * MapTrek.density);
HelperUtils.showTargetedAdvice(MainActivity.this, Configuration.ADVICE_HIDE_MAP_OBJECTS, R.string.advice_hide_map_objects, mViews.popupAnchor, R.drawable.ic_volume_up);
}
}
Expand Down

0 comments on commit 7b2ab0a

Please sign in to comment.