@NonNull
    public static CacheListType getListType(final Intent intent) {
        final Bundle extras = intent.getExtras();
        if (extras == null) {
            return CacheListType.OFFLINE;
        }
        final String typeName = extras.getString(EXTRA_LIST_TYPE);
        if (StringUtils.isBlank(typeName)) {
            return CacheListType.OFFLINE;
        }
        try {
            return CacheListType.valueOf(typeName);
        } catch (final IllegalArgumentException ignored) {
            return CacheListType.OFFLINE;
        }
    }
To be used together with {@link android.content.Intent#ACTION_OPEN_DOCUMENT_TREE}

The value is decide whether to show advance mode or not.
If the value is true, the local/device storage root must be
visible in DocumentsUI. Otherwise it depends on the users preference.
<br>
This is a system internal Api, which is not officially supported and not accessible from outside. Therefore, we need to define it ourselves.
Anyway, the usage of it should be uncritical. The worst thing which could happen is that the EXTRA is simply ignored.
main/src/main/java/cgeo/geocaching/Intents.java