private void setAllowedDate ( final long date ) { mAllowedDate = date ; if ( mSharedPreferences == null ) { mSharedPreferences = mContext . getSharedPreferences ( PREFERENCES_GEOCODER , Context . MODE_PRIVATE ) ; } final Editor e = mSharedPreferences . edit ( ) ; e . putLong ( KEY_ALLOW , date ) ; e . apply ( ) ; }
Sets date after which next geocoding query is allowed