Skip to content

Commit

Permalink
Issue #SB-17879 added: to normalise sharedPreferences with localStora…
Browse files Browse the repository at this point in the history
…ge values
  • Loading branch information
arafath committed Feb 24, 2020
1 parent 37c9bb6 commit 2052cf3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export class SharedPreferencesAndroid implements SharedPreferences {
}

return new Observable((observer) => {
this.sharedPreferences.getString(key, '', (value) => {
observer.next(value);
this.sharedPreferences.getString(key, '', (v) => {
observer.next(v);
observer.complete();
}, (e) => {
observer.error(e);
Expand Down Expand Up @@ -65,8 +65,8 @@ export class SharedPreferencesAndroid implements SharedPreferences {
}

return new Observable((observer) => {
this.sharedPreferences.getBoolean(key, false, (value) => {
observer.next(value);
this.sharedPreferences.getBoolean(key, false, (v) => {
observer.next(v);
observer.complete();
}, (e) => {
observer.error(e);
Expand Down

0 comments on commit 2052cf3

Please sign in to comment.