Revision ee4e7896
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/main/RubikActivity.java | ||
---|---|---|
339 | 339 |
|
340 | 340 |
RubikSurfaceView view = findViewById(R.id.rubikSurfaceView); |
341 | 341 |
view.getPreRender().restorePreferences(preferences); |
342 |
|
|
343 |
RubikScores scores = RubikScores.getInstance(); |
|
344 |
|
|
345 |
if( scores.isVerified() ) |
|
346 |
{ |
|
347 |
FirebaseAnalytics analytics = getAnalytics(); |
|
348 |
analytics.setUserId(scores.getName()); |
|
349 |
} |
|
342 | 350 |
} |
343 | 351 |
|
344 | 352 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
src/main/java/org/distorted/scores/RubikScores.java | ||
---|---|---|
119 | 119 |
return mDeviceID; |
120 | 120 |
} |
121 | 121 |
|
122 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
123 |
|
|
124 |
boolean isVerified() |
|
125 |
{ |
|
126 |
return mNameIsVerified; |
|
127 |
} |
|
128 |
|
|
129 | 122 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
130 | 123 |
|
131 | 124 |
synchronized boolean thereAreUnsubmittedRecords() |
... | ... | |
229 | 222 |
return false; |
230 | 223 |
} |
231 | 224 |
|
225 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
226 |
|
|
227 |
public boolean isVerified() |
|
228 |
{ |
|
229 |
return mNameIsVerified; |
|
230 |
} |
|
231 |
|
|
232 | 232 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
233 | 233 |
|
234 | 234 |
public int getNumPlays() |
Also available in: Unified diff
if a user has a verified name, set it as a GoogleAnalytics UserId