Commit 8c54b83c authored by Toni Beier's avatar Toni Beier

Initilize app manager instances in application context

parent d10e4958
......@@ -168,6 +168,8 @@ public class ASiSTApplication extends Application {
.build();
WorkManager.getInstance().enqueueUniquePeriodicWork("module_data_update", ExistingPeriodicWorkPolicy.KEEP, moduleDataUpdateWorkRequest);
this.startASiST(this.getApplicationContext());
}
......
......@@ -27,7 +27,6 @@ import androidx.fragment.app.FragmentManager;
import androidx.legacy.app.ActionBarDrawerToggle;
import de.bps.asist.AbstractAsistActivity;
import de.bps.asist.R;
import de.bps.asist.core.ASiSTApplication;
import de.bps.asist.core.manager.ASiSTModuleManager;
import de.bps.asist.core.manager.preferences.ASiSTPreferenceManager;
import de.bps.asist.gui.AbstractASiSTFragment;
......@@ -70,8 +69,6 @@ public class AsistStartActivity extends AbstractAsistActivity implements ActionB
super.onCreate(savedInstanceState);
ASiSTApplication.startASiST(this);
mTitle = mDrawerTitle = getTitle();
setContentView(R.layout.menu_layout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment