Camera Activity Fragment Handler
Helper class used to manage fragments of ResultsActivity.
TODO: Implement the class as a general fragment manager, which can also be used by other Activities
Parameters
The Activity, whose fragments should be managed. Must be of type CameraActivity.
Constructors
Casts the provided Activity to a CameraActivity; Throws an exception if cast does not succeed.
Functions
Calls SelectDeviceFragment.removeThisFragment to close and remove the open SelectDeviceFragment.
Helper function to determine whether a rotationFragment is in a different orientation than the device
Opens ErrorFragment in R.id.fragment_container_view.
Launches a fragment in the given containerID with a transition
Opens GalleryFragment in R.id.fragment_container_view
Opens GalleryPreviewFragment in R.id.gallery_fragment_body_layout.
Opens SelectDeviceFragment in R.id.camera_activity_frameLayout
Opens SettingsFragment in R.id.settings_fragment_container_view.
Closes & removes all currently attached fragments:
Rotates all RotationFragments by calling rotateGalleryFragment and rotateSelectDeviceFragment.
Updates the rotation of GalleryFragment to match the device rotation:
Updates the rotation of SelectDeviceFragment to match the device rotation:
Properties
The Android FragmentManager, used to attach/detach/show/hide fragments