src/org/gege/caldavsyncadapter/android/entities/AndroidEvent.java

branch
ICAL4J_EMBED_1
changeset 21
af4693956263
parent 10
262b0d479a96
child 22
e8c0da59391a
     1.1 --- a/src/org/gege/caldavsyncadapter/android/entities/AndroidEvent.java	Sat Feb 14 00:21:19 2015 +0100
     1.2 +++ b/src/org/gege/caldavsyncadapter/android/entities/AndroidEvent.java	Sat Feb 14 00:28:10 2015 +0100
     1.3 @@ -72,6 +72,8 @@
     1.4  import java.net.URISyntaxException;
     1.5  import java.text.ParseException;
     1.6  
     1.7 +import com.europalab.caldavsyn.Appctxpro;
     1.8 +
     1.9  //import android.accounts.Account;
    1.10  //import android.content.ContentProviderClient;
    1.11  //import android.content.ContentValues;
    1.12 @@ -317,6 +319,8 @@
    1.13      public boolean createIcs(String strUid) {
    1.14          boolean Result = false;
    1.15          TimeZone timeZone = null;
    1.16 +        //Thread.currentThread().setContextClassLoader(Context.getApplicationContext().getClassLoader());
    1.17 +        Thread.currentThread().setContextClassLoader(Appctxpro.getContext().getClassLoader());
    1.18          TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry();
    1.19  //TODO: do not simply create the ics-file new. take into account the RAWDATA if available
    1.20  		/* 

mercurial