File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -983,7 +983,10 @@ private void showKeepAndroidDialog() {
983983 final var prefs = PreferenceManager .getDefaultSharedPreferences (this );
984984
985985 final var now = Instant .now ();
986- final var kaoLastCheck = Instant .ofEpochMilli (prefs .getLong ("kao_last_checked" , 0 ));
986+ final var kaoLastCheck = Instant .ofEpochMilli (prefs .getLong (
987+ getString (R .string .kao_last_checked_key ),
988+ 0
989+ ));
987990
988991 final var kaoURI = Uri .parse ("https://keepandroidopen.org" );
989992 final var solutionURI = Uri .parse (
@@ -992,11 +995,14 @@ private void showKeepAndroidDialog() {
992995 if (kaoLastCheck .plus (30 , ChronoUnit .DAYS ).isBefore (now )) {
993996
994997 new AlertDialog .Builder (this )
995- .setTitle ("KeepAndroidOpen " )
998+ .setTitle ("Keep Android Open " )
996999 .setMessage (this .getString (R .string .kao_dialog_warning ))
9971000 .setPositiveButton (this .getString (android .R .string .ok ), (d , w ) -> {
9981001 prefs .edit ()
999- .putLong ("kao_last_checked" , now .toEpochMilli ())
1002+ .putLong (
1003+ getString (R .string .kao_last_checked_key ),
1004+ now .toEpochMilli ()
1005+ )
10001006 .apply ();
10011007 })
10021008 .setNeutralButton (
Original file line number Diff line number Diff line change 1010 <string name =" saved_tabs_key" >saved_tabs_key</string >
1111
1212 <!-- Key values -->
13+ <string name =" kao_last_checked_key" >kao_last_checked</string >
14+
1315 <string name =" download_path_video_key" >download_path</string >
1416 <string name =" download_path_audio_key" >download_path_audio</string >
1517
You can’t perform that action at this time.
0 commit comments