File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/org/havenapp/main Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2525import com .facebook .drawee .backends .pipeline .Fresco ;
2626import com .facebook .imagepipeline .core .ImagePipelineConfig ;
2727import com .facebook .imagepipeline .decoder .SimpleProgressiveJpegConfig ;
28+ import com .orm .SchemaGenerator ;
2829import com .orm .SugarContext ;
30+ import com .orm .SugarDb ;
2931
3032import java .io .IOException ;
3133
@@ -46,7 +48,10 @@ public class HavenApp extends MultiDexApplication {
4648 public void onCreate () {
4749 super .onCreate ();
4850
49- SugarContext .init (this );
51+ SugarContext .init (getApplicationContext ());
52+
53+ SchemaGenerator schemaGenerator = new SchemaGenerator (this );
54+ schemaGenerator .createDatabase (new SugarDb (this ).getDB ());
5055
5156 mPrefs = new PreferenceManager (this );
5257
You can’t perform that action at this time.
0 commit comments