Back to project page epgreader-android.
The source code is released under:
Apache License
If you think the Android project epgreader-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jeffpalm.android.epg.app; //w w w .j a v a 2s . c om import android.os.Bundle; import android.support.v4.app.ListFragment; abstract class EPGReaderItemListFragment extends ListFragment implements OnActivityCreatedNotifier { private final DefaultOnActivityCreatedNotifier onCreateNotifier = new DefaultOnActivityCreatedNotifier(); @Override public final void setListener(Listener listener) { onCreateNotifier.setListener(listener); } @Override public final void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); onActivityCreatedInternal(savedInstanceState); onCreateNotifier.notifyListener(); } /** * Subclasses should implement this instead of {@link #onActivityCreated(Bundle)}. This class will * take care of calling the super implementation of {@link #onActivityCreated(Bundle)} and * notifying the listener. * * @param savedInstanceState */ protected abstract void onActivityCreatedInternal(Bundle savedInstanceState); }