We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ea6ac commit 7c69f90Copy full SHA for 7c69f90
WordPressAnalytics/src/main/java/org/wordpress/android/analytics/Tracker.java
@@ -55,13 +55,7 @@ String getAnonID() {
55
}
56
57
String generateNewAnonID() {
58
- String uuid = UUID.randomUUID().toString();
59
- String[] uuidSplitted = uuid.split("-");
60
- StringBuilder builder = new StringBuilder();
61
- for (String currentPart : uuidSplitted) {
62
- builder.append(currentPart);
63
- }
64
- uuid = builder.toString();
+ String uuid = UUID.randomUUID().toString().replace("-", "");
65
AppLog.d(AppLog.T.STATS, "New anonID generated in " + this.getClass().getSimpleName() + ": " + uuid);
66
67
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext);
0 commit comments