public class CategoryActivity extends DrawerAbstractActivity implements MediaItemListener, FormAbstractFragment.OnObjectSaveListener, OnSetupDrawerListener
ContentAbstractFragment
and a FormMediaItemAbstractFragment
,
while on phones it manages only the former (the latter is managed by OnlyMediaItemFormActivity
)Constructor and Description |
---|
CategoryActivity() |
Modifier and Type | Method and Description |
---|---|
protected void |
onActivityResult(int requestCode,
int resultCode,
Intent data)
Called after returning from the media item form (media item added or updated) when we DON'T have a multi-pane layout
|
void |
onBackPressed()
Close drawer when the user presses "back"
|
protected void |
onCreate(Bundle savedInstanceState) |
void |
onMediaItemRemoved(MediaItem mediaItem)
Called by list fragment when the user removes (deletes, sets as completed, etc.) a media item from the list
Called when a media item is removed (deleted, set as completed, etc.) by the user
|
void |
onMediaItemSelected(MediaItem mediaItem)
Called by both list and suggestions fragments when the user clicks on a media item
Called when a media item is selected by the user
|
void |
onObjectSaved()
Called after returning from the media item form (media item added or updated) when we DO have a multi-pane layout
Called each time a media item is saved in the form
|
protected void |
onSaveInstanceState(Bundle outState)
Save the currently selected media item ID and subcategory (otherwise in the multi-pane layout if the device rotates we loose them!)
|
void |
onSetupDrawer(android.support.v7.widget.Toolbar toolbar)
Called just after the fragment has initialized its toolbar
|
onDrawerElementSelected
addContentView, dispatchKeyEvent, getDelegate, getDrawerToggleDelegate, getMenuInflater, getResources, getSupportActionBar, getSupportParentActivityIntent, invalidateOptionsMenu, onConfigurationChanged, onContentChanged, onCreateSupportNavigateUpTaskStack, onDestroy, onMenuItemSelected, onMenuOpened, onPanelClosed, onPostCreate, onPostResume, onPrepareSupportNavigateUpTaskStack, onStop, onSupportActionModeFinished, onSupportActionModeStarted, onSupportContentChanged, onSupportNavigateUp, onTitleChanged, onWindowStartingSupportActionMode, setContentView, setContentView, setContentView, setSupportActionBar, setSupportProgress, setSupportProgressBarIndeterminate, setSupportProgressBarIndeterminateVisibility, setSupportProgressBarVisibility, setTheme, startSupportActionMode, supportInvalidateOptionsMenu, supportNavigateUpTo, supportRequestWindowFeature, supportShouldUpRecreateTask
dump, getLastCustomNonConfigurationInstance, getSupportFragmentManager, getSupportLoaderManager, getSupportMediaController, onAttachFragment, onCreatePanelMenu, onKeyDown, onLowMemory, onNewIntent, onPause, onPrepareOptionsPanel, onPreparePanel, onRequestPermissionsResult, onResume, onResumeFragments, onRetainCustomNonConfigurationInstance, onRetainNonConfigurationInstance, onStart, onStateNotSaved, setEnterSharedElementCallback, setExitSharedElementCallback, setSupportMediaController, startActivityForResult, startActivityFromFragment, startActivityFromFragment, supportFinishAfterTransition, supportPostponeEnterTransition, supportStartPostponedEnterTransition, validateRequestPermissionsRequestCode
protected void onCreate(Bundle savedInstanceState)
onCreate
in class android.support.v7.app.AppCompatActivity
public void onBackPressed()
onBackPressed
in class DrawerAbstractActivity
protected void onSaveInstanceState(Bundle outState)
onSaveInstanceState
in class android.support.v7.app.AppCompatActivity
outState
- the state before the application is recreatedpublic void onMediaItemSelected(MediaItem mediaItem)
onMediaItemSelected
in interface MediaItemListener
mediaItem
- the selected media itempublic void onMediaItemRemoved(MediaItem mediaItem)
onMediaItemRemoved
in interface MediaItemListener
mediaItem
- the removed media itemprotected void onActivityResult(int requestCode, int resultCode, Intent data)
onActivityResult
in class android.support.v4.app.FragmentActivity
public void onObjectSaved()
onObjectSaved
in interface FormAbstractFragment.OnObjectSaveListener
public void onSetupDrawer(android.support.v7.widget.Toolbar toolbar)
onSetupDrawer
in interface OnSetupDrawerListener
toolbar
- the fragment toolbar