Use Joda-Time Android

This commit is contained in:
ligi 2015-03-13 11:53:59 +01:00
parent cb8f022f22
commit 86ca9613b8
2 changed files with 6 additions and 5 deletions

View file

@ -102,7 +102,7 @@ dependencies {
compile 'com.google.code.gson:gson:2.3.1'
compile 'net.lingala.zip4j:zip4j:1.3.2'
compile 'com.jakewharton:butterknife:6.1.0'
compile 'joda-time:joda-time:2.7'
compile 'net.danlew:android.joda:2.7.1'
compile 'com.squareup:otto:1.3.6'
compile 'com.android.support:support-v4:22.0.0'

View file

@ -3,10 +3,9 @@ package org.ligi.passandroid;
import android.app.Application;
import android.content.Context;
import android.os.Environment;
import com.squareup.otto.Bus;
import com.squareup.otto.ThreadEnforcer;
import net.danlew.android.joda.JodaTimeAndroid;
import org.ligi.passandroid.model.AndroidFileSystemPassStore;
import org.ligi.passandroid.model.PassStore;
import org.ligi.passandroid.model.Settings;
@ -24,6 +23,8 @@ public class App extends Application {
public void onCreate() {
super.onCreate();
JodaTimeAndroid.init(this);
Tracker.init(this);
initTraceDroid();
@ -50,8 +51,8 @@ public class App extends Application {
}
public static PassStore getPassStore() {
if (passStore==null) {
passStore=new AndroidFileSystemPassStore(instance);
if (passStore == null) {
passStore = new AndroidFileSystemPassStore(instance);
}
return passStore;
}