Search in sources :

Example 1 with FileBrowser

use of com.simplecity.amp_library.utils.FileBrowser in project Shuttle by timusus.

the class FolderFragment method onCreate.

@Override
public void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    disposables = new CompositeDisposable();
    adapter = new ViewModelAdapter();
    fileBrowser = new FileBrowser();
    if (savedInstanceState != null) {
        currentDir = savedInstanceState.getString(ARG_CURRENT_DIR);
    }
    displayedInTabs = getArguments().getBoolean(ARG_DISPLAYED_IN_TABS);
    if (displayedInTabs) {
        setHasOptionsMenu(true);
    }
}
Also used : FileBrowser(com.simplecity.amp_library.utils.FileBrowser) CompositeDisposable(io.reactivex.disposables.CompositeDisposable) ViewModelAdapter(com.simplecityapps.recycler_adapter.adapter.ViewModelAdapter)

Example 2 with FileBrowser

use of com.simplecity.amp_library.utils.FileBrowser in project Shuttle by timusus.

the class FolderFragment method onCreate.

@Override
public void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    disposables = new CompositeDisposable();
    adapter = new ViewModelAdapter();
    fileBrowser = new FileBrowser(settingsManager);
    if (savedInstanceState != null) {
        currentDir = savedInstanceState.getString(ARG_CURRENT_DIR);
    }
    displayedInTabs = getArguments().getBoolean(ARG_DISPLAYED_IN_TABS);
    if (displayedInTabs) {
        setHasOptionsMenu(true);
    }
}
Also used : FileBrowser(com.simplecity.amp_library.utils.FileBrowser) CompositeDisposable(io.reactivex.disposables.CompositeDisposable) ViewModelAdapter(com.simplecityapps.recycler_adapter.adapter.ViewModelAdapter)

Aggregations

FileBrowser (com.simplecity.amp_library.utils.FileBrowser)2 ViewModelAdapter (com.simplecityapps.recycler_adapter.adapter.ViewModelAdapter)2 CompositeDisposable (io.reactivex.disposables.CompositeDisposable)2