Skip to content
Snippets Groups Projects
Commit baf82b72 authored by Jawnnypoo's avatar Jawnnypoo
Browse files

Set the account if you can when the app starts

parent c61d678d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -54,12 +54,12 @@ dependencies {
compile 'com.android.support:palette-v7:24.0.0'
compile 'com.android.support:customtabs:24.0.0'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.github.aurae.retrofit2:converter-logansquare:1.4.1'
compile('com.squareup.retrofit2:converter-simplexml:2.1.0') {
exclude group: 'xpp3', module: 'xpp3'
exclude group: 'stax', module: 'stax-api'
exclude group: 'stax', module: 'stax'
}
compile 'com.github.aurae.retrofit2:converter-logansquare:1.4.1'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
compile 'com.squareup.picasso:picasso:2.5.2'
Loading
Loading
@@ -76,7 +76,7 @@ dependencies {
compile 'org.parceler:parceler-api:1.1.5'
apt 'org.parceler:parceler:1.1.5'
compile 'com.commit451:bypasses:1.0.1'
compile 'com.github.Commit451.ElasticDragDismissLayout:1.0.3'
compile 'com.github.Commit451:ElasticDragDismissLayout:1.0.3'
compile 'com.github.Commit451:AdapterLayout:1.0.2'
compile 'com.github.Commit451:Easel:1.0.0'
compile 'com.github.Commit451:Gimbal:1.0.0'
Loading
Loading
Loading
Loading
@@ -24,6 +24,7 @@ import com.squareup.picasso.Picasso;
 
import net.danlew.android.joda.JodaTimeAndroid;
 
import java.util.List;
import java.util.Locale;
 
import io.fabric.sdk.android.Fabric;
Loading
Loading
@@ -77,6 +78,11 @@ public class App extends Application {
 
JodaTimeAndroid.init(this);
SimpleChromeCustomTabs.initialize(this);
List<Account> accounts = Account.getAccounts(this);
if(!accounts.isEmpty()) {
setAccount(accounts.get(0));
}
}
 
@VisibleForTesting
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment