1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-23 00:06:27 +00:00

Simplification

This commit is contained in:
M66B 2022-03-24 20:38:55 +01:00
parent 3489af4abf
commit 26560765cf

View file

@ -84,7 +84,6 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
@ -366,11 +365,9 @@ public class FragmentOAuth extends FragmentBase {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
prefs.edit().putString("oauth." + provider.id, authState.jsonSerializeString()).apply();
Map<String, String> params = new LinkedHashMap<>();
if (provider.oauth.parameters != null)
for (String key : provider.oauth.parameters.keySet())
params.put(key, provider.oauth.parameters.get(key));
Map<String, String> params = (provider.oauth.parameters == null
? new LinkedHashMap<>()
: provider.oauth.parameters);
AuthorizationRequest.Builder authRequestBuilder =
new AuthorizationRequest.Builder(