refactor
This commit is contained in:
parent
8e3b9f7e1d
commit
6db7ffff3d
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ import net.osmand.plus.base.BottomSheetDialogFragment;
|
|||
|
||||
|
||||
public class RateUsBottomSheetDialog extends BottomSheetDialogFragment {
|
||||
private static long sixtyDays = 60 * 24 * 60 * 60 * 1000L;
|
||||
private RateUsBottomSheetDialog.FragmentState state = RateUsBottomSheetDialog.FragmentState.INITIAL_STATE;
|
||||
@Nullable
|
||||
@Override
|
||||
|
@ -58,7 +59,7 @@ public class RateUsBottomSheetDialog extends BottomSheetDialogFragment {
|
|||
int startsOnDislikeMoment = settings.NUMBER_OF_APP_STARTS_ON_DISLIKE_MOMENT.get();
|
||||
long lastDisplayTimeInMillis = settings.LAST_DISPLAY_TIME.get();
|
||||
long currentTime = System.currentTimeMillis();
|
||||
return currentTime - lastDisplayTimeInMillis > 5_184_000_000L
|
||||
return currentTime - lastDisplayTimeInMillis > sixtyDays
|
||||
&& numberOfStarts - startsOnDislikeMoment > 50;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue