|
|
@ -540,23 +540,24 @@ public class FragmentOAuth extends FragmentBase {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (jpayload.has("verified_primary_email")) {
|
|
|
|
if (jpayload.has("verified_primary_email")) {
|
|
|
|
String u = jpayload.getString("verified_primary_email");
|
|
|
|
JSONArray jsecondary =
|
|
|
|
if (!TextUtils.isEmpty(u) && !usernames.contains(u))
|
|
|
|
jpayload.getJSONArray("verified_primary_email");
|
|
|
|
usernames.add(u);
|
|
|
|
for (int i = 0; i < jsecondary.length(); i++) {
|
|
|
|
|
|
|
|
String u = jsecondary.getString(i);
|
|
|
|
|
|
|
|
if (!TextUtils.isEmpty(u) && !usernames.contains(u))
|
|
|
|
|
|
|
|
usernames.add(u);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (jpayload.has("verified_secondary_email"))
|
|
|
|
if (jpayload.has("verified_secondary_email")) {
|
|
|
|
try {
|
|
|
|
JSONArray jsecondary =
|
|
|
|
JSONArray jsecondary =
|
|
|
|
jpayload.getJSONArray("verified_secondary_email");
|
|
|
|
jpayload.getJSONArray("verified_secondary_email");
|
|
|
|
for (int i = 0; i < jsecondary.length(); i++) {
|
|
|
|
for (int i = 0; i < jsecondary.length(); i++) {
|
|
|
|
String u = jsecondary.getString(i);
|
|
|
|
String u = jsecondary.getString(i);
|
|
|
|
if (!TextUtils.isEmpty(u) && !usernames.contains(u))
|
|
|
|
if (!TextUtils.isEmpty(u) && !usernames.contains(u))
|
|
|
|
usernames.add(u);
|
|
|
|
usernames.add(u);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
Log.e(ex);
|
|
|
|
Log.e(ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|