/** * Initializes an {@link RecentFolderObserver} object that receives a call to {@link #onChanged()} * when the controller changes the recent folder. * * @param controller */ public RecentFolderList initialize(RecentFolderController controller) { if (controller == null) { LogUtils.wtf(LOG_TAG, "RecentFolderObserver initialized with null controller!"); } mController = controller; mController.registerRecentFolderObserver(this); return mController.getRecentFolders(); }
/** * Return the most current recent folder. * * @return */ public final RecentFolderList getRecentFolders() { if (mController == null) { return null; } return mController.getRecentFolders(); }