Skip to content

Commit

Permalink
fix(android)!: access Context through webView.getContext() (#201)
Browse files Browse the repository at this point in the history
Co-authored-by: Xiaolei Yu <dreifachstein@gmail.com>
  • Loading branch information
jcesarmobile and dreifachstein authored May 15, 2024
1 parent d9fd05e commit 8124857
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 @@ -98,7 +98,7 @@ public String getPlatform() {
* @return android.provider.Settings.Secure.ANDROID_ID
*/
public String getUuid() {
return Settings.Secure.getString(this.cordova.getActivity().getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
return Settings.Secure.getString(this.cordova.getContext().getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
}

public String getModel() {
Expand Down

0 comments on commit 8124857

Please sign in to comment.