Skip to content

Commit

Permalink
always show unglue hint for now. Too many people are confused
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Oct 18, 2017
1 parent 982c1a2 commit c69046a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,16 +254,16 @@ private void setTrackingButtonActivated(boolean activated)

private void showUnglueHint()
{
int timesShown = prefs.getInt(Prefs.UNGLUE_HINT_TIMES_SHOWN, 0);
if(timesShown < 3 && trackingButton.isActivated() && LocationUtil.isLocationOn(getActivity()))
//int timesShown = prefs.getInt(Prefs.UNGLUE_HINT_TIMES_SHOWN, 0);
if(trackingButton.isActivated() && LocationUtil.isLocationOn(getActivity()))
{
ViewTooltip.on(trackingButton)
.position(ViewTooltip.Position.LEFT)
.text(getResources().getString(R.string.unglue_hint))
.color(getResources().getColor(R.color.colorTooltip))
.duration(3000)
.show();
prefs.edit().putInt(Prefs.UNGLUE_HINT_TIMES_SHOWN, timesShown + 1).apply();
//prefs.edit().putInt(Prefs.UNGLUE_HINT_TIMES_SHOWN, timesShown + 1).apply();
}
}

Expand Down

0 comments on commit c69046a

Please sign in to comment.