Skip to content

Commit

Permalink
CB-12623: (android) use the new context getter to access Context
Browse files Browse the repository at this point in the history
  • Loading branch information
dreifachstein committed Jul 22, 2017
1 parent 736c7b9 commit 5916398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/Device.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public String getPlatform() {
* @return
*/
public String getUuid() {
String uuid = Settings.Secure.getString(this.cordova.getActivity().getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
String uuid = Settings.Secure.getString(this.cordova.getContext().getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
return uuid;
}

Expand Down

0 comments on commit 5916398

Please sign in to comment.