huaxunhuang
10/21/2017 - 3:18 AM

And Bible #03

/**
	 * Called when the activity is first created.
	 */
//	@SuppressLint("MissingSuperCall")
	@Override
	public void onCreate(Bundle savedInstanceState) {
		Log.i(TAG, "Creating MainBibleActivity");
		super.onCreate(savedInstanceState, true);

		setContentView(R.layout.main_bible_view);

		DaggerMainBibleActivityComponent.builder()
				.applicationComponent(BibleApplication.getApplication().getApplicationComponent())
				.mainBibleActivityModule(new MainBibleActivityModule(this))
				.build()
				.inject(this);

		super.setActionBarManager(bibleActionBarManager);

		// create related objects
		BibleGestureListener gestureListener = new BibleGestureListener(MainBibleActivity.this);
		gestureDetector = new GestureDetectorCompat(this, gestureListener);

		documentViewManager.buildView();

		// register for passage change and appToBackground events
		EventBus.getDefault().register(this);

		// force the screen to be populated
		PassageChangeMediator.getInstance().forcePageUpdate();
	}