18
18
import android .content .Intent ;
19
19
import android .os .Bundle ;
20
20
import android .support .annotation .DrawableRes ;
21
- import android .support .annotation .MainThread ;
22
21
import android .support .annotation .StringRes ;
23
22
import android .support .annotation .StyleRes ;
24
23
import android .support .design .widget .Snackbar ;
@@ -231,7 +230,6 @@ protected void onResume() {
231
230
}
232
231
}
233
232
234
- @ MainThread
235
233
private void handleSignInResponse (int resultCode , Intent data ) {
236
234
IdpResponse response = IdpResponse .fromResultIntent (data );
237
235
@@ -276,14 +274,12 @@ private void startSignedInActivity(IdpResponse response) {
276
274
mEnableHintSelector .isChecked ())));
277
275
}
278
276
279
- @ MainThread
280
277
private void setGoogleScopesEnabled (boolean enabled ) {
281
278
mGoogleScopesLabel .setEnabled (enabled );
282
279
mGoogleScopeDriveFile .setEnabled (enabled );
283
280
mGoogleScopeYoutubeData .setEnabled (enabled );
284
281
}
285
282
286
- @ MainThread
287
283
private void setFacebookScopesEnabled (boolean enabled ) {
288
284
mFacebookScopesLabel .setEnabled (enabled );
289
285
mFacebookScopeFriends .setEnabled (enabled );
@@ -298,7 +294,6 @@ public void toggleDarkTheme() {
298
294
getDelegate ().setLocalNightMode (mode );
299
295
}
300
296
301
- @ MainThread
302
297
@ StyleRes
303
298
private int getSelectedTheme () {
304
299
if (mUseGreenTheme .isChecked ()) {
@@ -312,7 +307,6 @@ private int getSelectedTheme() {
312
307
return AuthUI .getDefaultTheme ();
313
308
}
314
309
315
- @ MainThread
316
310
@ DrawableRes
317
311
private int getSelectedLogo () {
318
312
if (mFirebaseLogo .isChecked ()) {
@@ -323,7 +317,6 @@ private int getSelectedLogo() {
323
317
return AuthUI .NO_LOGO ;
324
318
}
325
319
326
- @ MainThread
327
320
private List <IdpConfig > getSelectedProviders () {
328
321
List <IdpConfig > selectedProviders = new ArrayList <>();
329
322
@@ -356,7 +349,6 @@ private List<IdpConfig> getSelectedProviders() {
356
349
return selectedProviders ;
357
350
}
358
351
359
- @ MainThread
360
352
private String getSelectedTosUrl () {
361
353
if (mUseGoogleTos .isChecked ()) {
362
354
return GOOGLE_TOS_URL ;
@@ -365,7 +357,6 @@ private String getSelectedTosUrl() {
365
357
return FIREBASE_TOS_URL ;
366
358
}
367
359
368
- @ MainThread
369
360
private String getSelectedPrivacyPolicyUrl () {
370
361
if (mUseGooglePrivacyPolicy .isChecked ()) {
371
362
return GOOGLE_PRIVACY_POLICY_URL ;
@@ -374,17 +365,14 @@ private String getSelectedPrivacyPolicyUrl() {
374
365
return FIREBASE_PRIVACY_POLICY_URL ;
375
366
}
376
367
377
- @ MainThread
378
368
private boolean isGoogleMisconfigured () {
379
369
return AuthUI .UNCONFIGURED_CONFIG_VALUE .equals (getString (R .string .default_web_client_id ));
380
370
}
381
371
382
- @ MainThread
383
372
private boolean isFacebookMisconfigured () {
384
373
return AuthUI .UNCONFIGURED_CONFIG_VALUE .equals (getString (R .string .facebook_application_id ));
385
374
}
386
375
387
- @ MainThread
388
376
private boolean isTwitterMisconfigured () {
389
377
List <String > twitterConfigs = Arrays .asList (
390
378
getString (R .string .twitter_consumer_key ),
@@ -394,12 +382,10 @@ private boolean isTwitterMisconfigured() {
394
382
return twitterConfigs .contains (AuthUI .UNCONFIGURED_CONFIG_VALUE );
395
383
}
396
384
397
- @ MainThread
398
385
private void showSnackbar (@ StringRes int errorMessageRes ) {
399
386
Snackbar .make (mRootView , errorMessageRes , Snackbar .LENGTH_LONG ).show ();
400
387
}
401
388
402
- @ MainThread
403
389
private List <String > getFacebookPermissions () {
404
390
List <String > result = new ArrayList <>();
405
391
if (mFacebookScopeFriends .isChecked ()) {
@@ -411,7 +397,6 @@ private List<String> getFacebookPermissions() {
411
397
return result ;
412
398
}
413
399
414
- @ MainThread
415
400
private List <String > getGoogleScopes () {
416
401
List <String > result = new ArrayList <>();
417
402
if (mGoogleScopeYoutubeData .isChecked ()) {
0 commit comments