Insert+Delte even if Update would be cheaper because the semantic diverges completely. Logically, Update doesn't make sense.

Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–61 unchanged (61 lines)
62import com.nextcloud.ui.ChooseAccountDialogFragment;
63import com.nextcloud.ui.composeActivity.ComposeActivity;
64import com.nextcloud.ui.composeActivity.ComposeDestination;
65import com.nextcloud.utils.GlideHelper;
66import com.nextcloud.utils.LinkHelper;
67import com.nextcloud.utils.extensions.ActivityExtensionsKt;
68import com.nextcloud.utils.extensions.NavigationViewExtensionsKt;
69import com.nextcloud.utils.extensions.ViewExtensionsKt;
70import com.nextcloud.utils.mdm.MDMConfig;
71import com.owncloud.android.MainApp;
72import com.owncloud.android.R;
73import com.owncloud.android.authentication.PassCodeManager;
74import com.owncloud.android.datamodel.ArbitraryDataProvider;
…lines 75–677 unchanged (603 lines)
678 @SuppressFBWarnings("RV")
679 private void handleBottomNavigationViewClicks() {
680 bottomNavigationView.setOnItemSelectedListener(menuItem -> {
681 int menuItemId = menuItem.getItemId();
682 exitSelectionMode();
683 resetOnlyPersonalAndOnDevice();
684
685 if (menuItemId == R.id.nav_all_files) {
686 showFiles(false,false);
687 if (this instanceof FileDisplayActivity fda) {
688 fda.browseToRoot();
689 }
690 EventBus.getDefault().post(new ChangeMenuEvent());
691 setupHomeSearchToolbarWithSortAndListButtons();
692 updateActionBarTitleAndHomeButton(null);
693 } else if (menuItemId == R.id.nav_favorites) {
694 openFavoritesTab();
695 } else if (menuItemId == R.id.nav_assistant && !(this instanceof ComposeActivity)) {
696 startAssistantScreen();
697 } else if (menuItemId == R.id.nav_gallery) {
…lines 698–1506 unchanged (809 lines)

After

…lines 1–61 unchanged (61 lines)
62import com.nextcloud.ui.ChooseAccountDialogFragment;
63import com.nextcloud.ui.composeActivity.ComposeActivity;
64import com.nextcloud.ui.composeActivity.ComposeDestination;
65import com.nextcloud.utils.GlideHelper;
66import com.nextcloud.utils.LinkHelper;
67import com.nextcloud.utils.extensions.ActivityExtensionsKt;
68import com.nextcloud.utils.extensions.DrawerActivityExtensionsKt;
69import com.nextcloud.utils.extensions.NavigationViewExtensionsKt;
70import com.nextcloud.utils.extensions.ViewExtensionsKt;
71import com.nextcloud.utils.mdm.MDMConfig;
72import com.owncloud.android.MainApp;
73import com.owncloud.android.R;
74import com.owncloud.android.authentication.PassCodeManager;
…lines 75–679 unchanged (605 lines)
680 private void handleBottomNavigationViewClicks() {
681 bottomNavigationView.setOnItemSelectedListener(menuItem -> {
682 int menuItemId = menuItem.getItemId();
683 exitSelectionMode();
684 resetOnlyPersonalAndOnDevice();
685
686 // TODO: remove duplication of all files logic
687 if (menuItemId == R.id.nav_all_files) {
688 DrawerActivityExtensionsKt.navigateToAllFiles(this);
689 EventBus.getDefault().post(new ChangeMenuEvent()); // TODO: menu event already sets action bar style?
690 setupHomeSearchToolbarWithSortAndListButtons();
691 updateActionBarTitleAndHomeButton(null);
692 } else if (menuItemId == R.id.nav_favorites) {
693 openFavoritesTab();
694 } else if (menuItemId == R.id.nav_assistant && !(this instanceof ComposeActivity)) {
695 startAssistantScreen();
…lines 696–1505 unchanged (810 lines)

Before

program
block_comment "/*\n * Nextcloud - Android Client\n *\n * SPDX-FileCopyrightTex"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "activity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "accounts"
. "."
identifier "AuthenticatorException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "accounts"
. "."
identifier "OperationCanceledException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "app"
. "."
identifier "Activity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "content"
. "."
identifier "Context"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "content"
. "."
identifier "Intent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "content"
. "."
identifier "res"
. "."
identifier "ColorStateList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "content"
. "."
identifier "res"
. "."
identifier "Configuration"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "Bitmap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "Canvas"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "Color"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "BitmapDrawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "ColorDrawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "Drawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "GradientDrawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "LayerDrawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "PictureDrawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "net"
. "."
identifier "Uri"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "os"
. "."
identifier "Bundle"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "os"
. "."
identifier "Handler"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "os"
. "."
identifier "PersistableBundle"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "os"
. "."
identifier "SystemClock"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "text"
. "."
identifier "TextUtils"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "view"
. "."
identifier "Menu"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "view"
. "."
identifier "MenuItem"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "view"
. "."
identifier "View"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "webkit"
. "."
identifier "URLUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "widget"
. "."
identifier "ImageView"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "widget"
. "."
identifier "LinearLayout"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "widget"
. "."
identifier "TextView"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "bumptech"
. "."
identifier "glide"
. "."
identifier "request"
. "."
identifier "target"
. "."
identifier "CustomTarget"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "bumptech"
. "."
identifier "glide"
. "."
identifier "request"
. "."
identifier "target"
. "."
identifier "Target"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "bumptech"
. "."
identifier "glide"
. "."
identifier "request"
. "."
identifier "transition"
. "."
identifier "Transition"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "bottomnavigation"
. "."
identifier "BottomNavigationView"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "button"
. "."
identifier "MaterialButton"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "navigation"
. "."
identifier "NavigationView"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "progressindicator"
. "."
identifier "LinearProgressIndicator"
; ";"
import_declaration (+25 nodes collapsed)
import_declaration (+25 nodes collapsed)
import_declaration (+25 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "account"
. "."
identifier "User"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "di"
. "."
identifier "Injectable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "files"
. "."
identifier "DeepLinkConstants"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "network"
. "."
identifier "ClientFactory"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "onboarding"
. "."
identifier "FirstRunActivity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "preferences"
. "."
identifier "AppPreferences"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "common"
. "."
identifier "NextcloudClient"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "ui"
. "."
identifier "ChooseAccountDialogFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "ui"
. "."
identifier "composeActivity"
. "."
identifier "ComposeActivity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "ui"
. "."
identifier "composeActivity"
. "."
identifier "ComposeDestination"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "GlideHelper"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "LinkHelper"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "extensions"
. "."
identifier "ActivityExtensionsKt"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "extensions"
. "."
identifier "NavigationViewExtensionsKt"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "extensions"
. "."
identifier "ViewExtensionsKt"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "mdm"
. "."
identifier "MDMConfig"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "MainApp"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "R"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "authentication"
. "."
identifier "PassCodeManager"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "datamodel"
. "."
identifier "ArbitraryDataProvider"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "datamodel"
. "."
identifier "ArbitraryDataProviderImpl"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "datamodel"
. "."
identifier "ExternalLinksProvider"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "datamodel"
. "."
identifier "OCFile"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "ExternalLink"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "ExternalLinkType"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "OwnCloudClientManagerFactory"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "Quota"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "UserInfo"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "operations"
. "."
identifier "GetCapabilitiesOperation"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "activities"
. "."
identifier "ActivitiesActivity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "events"
. "."
identifier "AccountRemovedEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "events"
. "."
identifier "ChangeMenuEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "events"
. "."
identifier "SearchEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "fragment"
. "."
identifier "FileDetailsSharingProcessFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "fragment"
. "."
identifier "GalleryFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "fragment"
. "."
identifier "GroupfolderListFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "fragment"
. "."
identifier "OCFileListFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "fragment"
. "."
identifier "SharedListFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "preview"
. "."
identifier "PreviewTextStringFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "trashbin"
. "."
identifier "TrashbinActivity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "BitmapUtils"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "DisplayUtils"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "DrawableUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "DrawerMenuUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "FilesSyncHelper"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "theme"
. "."
identifier "CapabilityUtils"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "greenrobot"
. "."
identifier "eventbus"
. "."
identifier "EventBus"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "greenrobot"
. "."
identifier "eventbus"
. "."
identifier "Subscribe"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "greenrobot"
. "."
identifier "eventbus"
. "."
identifier "ThreadMode"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ArrayList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Optional"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "inject"
. "."
identifier "Inject"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "activity"
. "."
identifier "OnBackPressedCallback"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "annotation"
. "."
identifier "IdRes"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "annotation"
. "."
identifier "NonNull"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "annotation"
. "."
identifier "Nullable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "appcompat"
. "."
identifier "app"
. "."
identifier "ActionBarDrawerToggle"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "constraintlayout"
. "."
identifier "widget"
. "."
identifier "ConstraintLayout"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "core"
. "."
identifier "content"
. "."
identifier "ContextCompat"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "core"
. "."
identifier "content"
. "."
identifier "res"
. "."
identifier "ResourcesCompat"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "core"
. "."
identifier "view"
. "."
identifier "GravityCompat"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "drawerlayout"
. "."
identifier "widget"
. "."
identifier "DrawerLayout"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "fragment"
. "."
identifier "app"
. "."
identifier "Fragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "edu"
. "."
identifier "umd"
. "."
identifier "cs"
. "."
identifier "findbugs"
. "."
identifier "annotations"
. "."
identifier "SuppressFBWarnings"
; ";"
import_declaration
import "import"
scoped_identifier
identifier "hct"
. "."
identifier "Hct"
; ";"
import_declaration
import "import"
scoped_identifier
identifier "kotlin"
. "."
identifier "Unit"
; ";"
block_comment "/**\n * Base class to handle setup of the drawer implementati"...
class_declaration
modifiers
public "public"
abstract "abstract"
class "class"
identifier "DrawerActivity"
superclass
extends "extends"
type_identifier "ToolbarActivity"
super_interfaces
implements "implements"
type_list
scoped_type_identifier
type_identifier "DisplayUtils"
. "."
type_identifier "AvatarGenerationListener"
, ","
type_identifier "Injectable"
class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "TAG"
= "="
method_invocation
class_literal
type_identifier "DrawerActivity"
. "."
class "class"
. "."
identifier "getSimpleName"
argument_list
( "("
) ")"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "KEY_IS_ACCOUNT_CHOOSER_ACTIVE"
= "="
string_literal
" "\""
string_fragment "IS_ACCOUNT_CHOOSER_ACTIVE"
" "\""
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "ACTION_MANAGE_ACCOUNTS"
= "="
decimal_integer_literal "101"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MENU_ORDER_EXTERNAL_LINKS"
= "="
decimal_integer_literal "3"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MENU_ITEM_EXTERNAL_LINK"
= "="
decimal_integer_literal "111"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MAX_LOGO_SIZE_PX"
= "="
decimal_integer_literal "1000"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "RELATIVE_THRESHOLD_WARNING"
= "="
decimal_integer_literal "80"
; ";"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "REQ_ALL_FILES_ACCESS"
= "="
decimal_integer_literal "3001"
; ";"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "REQ_MEDIA_ACCESS"
= "="
decimal_integer_literal "3000"
; ";"
block_comment "/**\n * Reference to the drawer layout.\n */"
field_declaration
modifiers
private "private"
type_identifier "DrawerLayout"
variable_declarator
identifier "mDrawerLayout"
; ";"
block_comment "/**\n * Reference to the drawer toggle.\n */"
field_declaration
modifiers
protected "protected"
type_identifier "ActionBarDrawerToggle"
variable_declarator
identifier "mDrawerToggle"
; ";"
block_comment "/**\n * Reference to the navigation view header.\n */"
field_declaration
modifiers
private "private"
type_identifier "View"
variable_declarator
identifier "mNavigationViewHeader"
; ";"
block_comment "/**\n * Flag to signal if the account chooser is active.\n"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "mIsAccountChooserActive"
; ";"
block_comment "/**\n * container layout of the quota view.\n */"
field_declaration
modifiers
private "private"
type_identifier "LinearLayout"
variable_declarator
identifier "mQuotaView"
; ";"
block_comment "/**\n * progress bar of the quota view.\n */"
field_declaration
modifiers
private "private"
type_identifier "LinearProgressIndicator"
variable_declarator
identifier "mQuotaProgressBar"
; ";"
block_comment "/**\n * text view of the quota view.\n */"
field_declaration
modifiers
private "private"
type_identifier "TextView"
variable_declarator
identifier "mQuotaTextPercentage"
; ";"
field_declaration
modifiers
private "private"
type_identifier "TextView"
variable_declarator
identifier "mQuotaTextLink"
; ";"
block_comment "/**\n * runnable that will be executed after the drawer h"...
field_declaration
modifiers
private "private"
type_identifier "Runnable"
variable_declarator
identifier "pendingRunnable"
; ";"
field_declaration
modifiers
private "private"
type_identifier "ExternalLinksProvider"
variable_declarator
identifier "externalLinksProvider"
; ";"
field_declaration
modifiers
private "private"
type_identifier "ArbitraryDataProvider"
variable_declarator
identifier "arbitraryDataProvider"
; ";"
field_declaration
modifiers
private "private"
type_identifier "BottomNavigationView"
variable_declarator
identifier "bottomNavigationView"
; ";"
field_declaration
modifiers
private "private"
type_identifier "NavigationView"
variable_declarator
identifier "drawerNavigationView"
; ";"
block_comment "/**\n * Returns the navigation drawer menu item ID that r"...
method_declaration (+22 nodes collapsed)
field_declaration
modifiers
private "private"
type_identifier "EcosystemManager"
variable_declarator
identifier "ecosystemManager"
; ";"
field_declaration
modifiers
marker_annotation
@ "@"
identifier "Inject"
type_identifier "AppPreferences"
variable_declarator
identifier "preferences"
; ";"
field_declaration
modifiers
marker_annotation
@ "@"
identifier "Inject"
type_identifier "ClientFactory"
variable_declarator
identifier "clientFactory"
; ";"
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Initializes the drawer and its content. This meth"...
method_declaration (+256 nodes collapsed)
block_comment "/**\n * Highlights (checks) the given menu item ID in the"...
method_declaration (+202 nodes collapsed)
method_declaration (+24 nodes collapsed)
method_declaration (+73 nodes collapsed)
method_declaration (+64 nodes collapsed)
method_declaration (+37 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+44 nodes collapsed)
method_declaration (+197 nodes collapsed)
block_comment "/**\n * setup quota elements of the drawer.\n */"
method_declaration (+136 nodes collapsed)
method_declaration (+328 nodes collapsed)
method_declaration (+399 nodes collapsed)
method_declaration (+27 nodes collapsed)
method_declaration (+579 nodes collapsed)
method_declaration (+136 nodes collapsed)
block_comment "/**\n * setup drawer content, basically setting the item "...
method_declaration (+89 nodes collapsed)
method_declaration (+241 nodes collapsed)
line_comment "// region navigation item click"
method_declaration (+981 nodes collapsed)
method_declaration
modifiers
annotation
@ "@"
identifier "SuppressFBWarnings"
annotation_argument_list
( "("
string_literal
" "\""
string_fragment "RV"
" "\""
) ")"
private "private"
void_type "void"
identifier "handleBottomNavigationViewClicks"
formal_parameters
( "("
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "bottomNavigationView"
. "."
identifier "setOnItemSelectedListener"
argument_list
( "("
lambda_expression
identifier "menuItem"
-> "->"
block
{ "{"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "menuItemId"
= "="
method_invocation
identifier "menuItem"
. "."
identifier "getItemId"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "exitSelectionMode"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "resetOnlyPersonalAndOnDevice"
argument_list
( "("
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "menuItemId"
== "=="
field_access
field_access
identifier "R"
. "."
identifier "id"
. "."
identifier "nav_all_files"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "showFiles"
argument_list
( "("
false "false"
, ","
false "false"
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
instanceof_expression
this "this"
instanceof "instanceof"
type_identifier "FileDisplayActivity"
identifier "fda"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "fda"
. "."
identifier "browseToRoot"
argument_list
( "("
) ")"
; ";"
} "}"
expression_statement (+21 nodes collapsed)
expression_statement
method_invocation
identifier "setupHomeSearchToolbarWithSortAndListButtons"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "updateActionBarTitleAndHomeButton"
argument_list
( "("
null_literal "null"
) ")"
; ";"
} "}"
else "else"
if_statement (+95 nodes collapsed)
line_comment "// Remove extra icon from the action bar"
if_statement (+30 nodes collapsed)
line_comment "// from navigation user always sees root level"
expression_statement
method_invocation
identifier "resetFileDepth"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "highlightNavigationViewItem"
argument_list
( "("
identifier "menuItemId"
) ")"
; ";"
return_statement
return "return"
false "false"
; ";"
} "}"
) ")"
; ";"
} "}"
line_comment "// endregion"
method_declaration (+99 nodes collapsed)
method_declaration (+40 nodes collapsed)
method_declaration (+64 nodes collapsed)
method_declaration (+50 nodes collapsed)
method_declaration (+43 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+45 nodes collapsed)
method_declaration (+57 nodes collapsed)
method_declaration (+63 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+90 nodes collapsed)
method_declaration
modifiers
public "public"
type_identifier "EcosystemManager"
identifier "getEcosystemManager"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "ecosystemManager"
; ";"
} "}"
block_comment "/**\n * sets the new/current account and restarts. In cas"...
method_declaration (+72 nodes collapsed)
method_declaration (+193 nodes collapsed)
block_comment "/**\n * checks if the drawer exists and is opened.\n *"...
method_declaration (+31 nodes collapsed)
method_declaration (+42 nodes collapsed)
block_comment "/**\n * closes the drawer.\n */"
method_declaration (+36 nodes collapsed)
block_comment "/**\n * opens the drawer.\n */"
method_declaration (+50 nodes collapsed)
block_comment "/**\n * Enable or disable interaction with all drawers.\n "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Enable or disable the drawer indicator.\n *\n "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Updates title bar and home buttons (state and ico"...
method_declaration (+58 nodes collapsed)
block_comment "/**\n * shows or hides the quota UI elements.\n *\n "...
method_declaration (+53 nodes collapsed)
block_comment "/**\n * configured the quota to be displayed.\n *\n "...
method_declaration (+225 nodes collapsed)
method_declaration (+391 nodes collapsed)
method_declaration (+239 nodes collapsed)
block_comment "/**\n * Retrieves and shows the user quota if available\n "...
method_declaration (+417 nodes collapsed)
method_declaration (+248 nodes collapsed)
method_declaration (+144 nodes collapsed)
method_declaration (+135 nodes collapsed)
method_declaration (+94 nodes collapsed)
method_declaration (+43 nodes collapsed)
method_declaration (+58 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+53 nodes collapsed)
method_declaration (+141 nodes collapsed)
method_declaration (+240 nodes collapsed)
block_comment "/**\n * Quota view can be either at navigation bottom or "...
method_declaration (+83 nodes collapsed)
block_comment "/**\n * restart helper method which is called after a cha"...
method_declaration (+71 nodes collapsed)
method_declaration (+31 nodes collapsed)
block_comment "/**\n * show the file list to the user.\n *\n * @pa"...
method_declaration (+94 nodes collapsed)
method_declaration (+87 nodes collapsed)
method_declaration (+114 nodes collapsed)
method_declaration (+138 nodes collapsed)
block_comment "/**\n * Adds other listeners to react on changes of the d"...
method_declaration (+58 nodes collapsed)
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isDrawerIndicatorAvailable"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
method_declaration
modifiers
public "public"
type_identifier "AppPreferences"
identifier "getAppPreferences"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "preferences"
; ";"
} "}"
method_declaration (+39 nodes collapsed)
method_declaration (+73 nodes collapsed)
method_declaration (+34 nodes collapsed)
block_comment "/**\n * Retrieves external links via api from 'external' "...
method_declaration (+560 nodes collapsed)
method_declaration (+282 nodes collapsed)
method_declaration (+47 nodes collapsed)
method_declaration (+26 nodes collapsed)
method_declaration
modifiers
public "public"
type_identifier "BottomNavigationView"
identifier "getBottomNavigationView"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "bottomNavigationView"
; ";"
} "}"
method_declaration (+56 nodes collapsed)
method_declaration (+45 nodes collapsed)
method_declaration (+57 nodes collapsed)
method_declaration (+84 nodes collapsed)
} "}"

After

program
block_comment "/*\n * Nextcloud - Android Client\n *\n * SPDX-FileCopyrightTex"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "activity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "accounts"
. "."
identifier "AuthenticatorException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "accounts"
. "."
identifier "OperationCanceledException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "app"
. "."
identifier "Activity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "content"
. "."
identifier "Context"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "content"
. "."
identifier "Intent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "content"
. "."
identifier "res"
. "."
identifier "ColorStateList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "content"
. "."
identifier "res"
. "."
identifier "Configuration"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "Bitmap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "Canvas"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "Color"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "BitmapDrawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "ColorDrawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "Drawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "GradientDrawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "LayerDrawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "drawable"
. "."
identifier "PictureDrawable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "net"
. "."
identifier "Uri"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "os"
. "."
identifier "Bundle"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "os"
. "."
identifier "Handler"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "os"
. "."
identifier "PersistableBundle"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "os"
. "."
identifier "SystemClock"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "text"
. "."
identifier "TextUtils"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "view"
. "."
identifier "Menu"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "view"
. "."
identifier "MenuItem"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "view"
. "."
identifier "View"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "webkit"
. "."
identifier "URLUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "widget"
. "."
identifier "ImageView"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "widget"
. "."
identifier "LinearLayout"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "widget"
. "."
identifier "TextView"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "bumptech"
. "."
identifier "glide"
. "."
identifier "request"
. "."
identifier "target"
. "."
identifier "CustomTarget"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "bumptech"
. "."
identifier "glide"
. "."
identifier "request"
. "."
identifier "target"
. "."
identifier "Target"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "bumptech"
. "."
identifier "glide"
. "."
identifier "request"
. "."
identifier "transition"
. "."
identifier "Transition"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "bottomnavigation"
. "."
identifier "BottomNavigationView"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "button"
. "."
identifier "MaterialButton"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "navigation"
. "."
identifier "NavigationView"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "progressindicator"
. "."
identifier "LinearProgressIndicator"
; ";"
import_declaration (+25 nodes collapsed)
import_declaration (+25 nodes collapsed)
import_declaration (+25 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "account"
. "."
identifier "User"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "di"
. "."
identifier "Injectable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "files"
. "."
identifier "DeepLinkConstants"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "network"
. "."
identifier "ClientFactory"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "onboarding"
. "."
identifier "FirstRunActivity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "preferences"
. "."
identifier "AppPreferences"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "common"
. "."
identifier "NextcloudClient"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "ui"
. "."
identifier "ChooseAccountDialogFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "ui"
. "."
identifier "composeActivity"
. "."
identifier "ComposeActivity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "ui"
. "."
identifier "composeActivity"
. "."
identifier "ComposeDestination"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "GlideHelper"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "LinkHelper"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "extensions"
. "."
identifier "ActivityExtensionsKt"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "extensions"
. "."
identifier "DrawerActivityExtensionsKt"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "extensions"
. "."
identifier "NavigationViewExtensionsKt"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "extensions"
. "."
identifier "ViewExtensionsKt"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "utils"
. "."
identifier "mdm"
. "."
identifier "MDMConfig"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "MainApp"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "R"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "authentication"
. "."
identifier "PassCodeManager"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "datamodel"
. "."
identifier "ArbitraryDataProvider"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "datamodel"
. "."
identifier "ArbitraryDataProviderImpl"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "datamodel"
. "."
identifier "ExternalLinksProvider"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "datamodel"
. "."
identifier "OCFile"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "ExternalLink"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "ExternalLinkType"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "OwnCloudClientManagerFactory"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "Quota"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "UserInfo"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "operations"
. "."
identifier "GetCapabilitiesOperation"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "activities"
. "."
identifier "ActivitiesActivity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "events"
. "."
identifier "AccountRemovedEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "events"
. "."
identifier "ChangeMenuEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "events"
. "."
identifier "SearchEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "fragment"
. "."
identifier "FileDetailsSharingProcessFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "fragment"
. "."
identifier "GalleryFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "fragment"
. "."
identifier "GroupfolderListFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "fragment"
. "."
identifier "OCFileListFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "fragment"
. "."
identifier "SharedListFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "preview"
. "."
identifier "PreviewTextStringFragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "trashbin"
. "."
identifier "TrashbinActivity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "BitmapUtils"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "DisplayUtils"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "DrawableUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "DrawerMenuUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "FilesSyncHelper"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "theme"
. "."
identifier "CapabilityUtils"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "greenrobot"
. "."
identifier "eventbus"
. "."
identifier "EventBus"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "greenrobot"
. "."
identifier "eventbus"
. "."
identifier "Subscribe"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "greenrobot"
. "."
identifier "eventbus"
. "."
identifier "ThreadMode"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ArrayList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Optional"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "inject"
. "."
identifier "Inject"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "activity"
. "."
identifier "OnBackPressedCallback"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "annotation"
. "."
identifier "IdRes"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "annotation"
. "."
identifier "NonNull"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "annotation"
. "."
identifier "Nullable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "appcompat"
. "."
identifier "app"
. "."
identifier "ActionBarDrawerToggle"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "constraintlayout"
. "."
identifier "widget"
. "."
identifier "ConstraintLayout"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "core"
. "."
identifier "content"
. "."
identifier "ContextCompat"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "core"
. "."
identifier "content"
. "."
identifier "res"
. "."
identifier "ResourcesCompat"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "core"
. "."
identifier "view"
. "."
identifier "GravityCompat"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "drawerlayout"
. "."
identifier "widget"
. "."
identifier "DrawerLayout"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "androidx"
. "."
identifier "fragment"
. "."
identifier "app"
. "."
identifier "Fragment"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "edu"
. "."
identifier "umd"
. "."
identifier "cs"
. "."
identifier "findbugs"
. "."
identifier "annotations"
. "."
identifier "SuppressFBWarnings"
; ";"
import_declaration
import "import"
scoped_identifier
identifier "hct"
. "."
identifier "Hct"
; ";"
import_declaration
import "import"
scoped_identifier
identifier "kotlin"
. "."
identifier "Unit"
; ";"
block_comment "/**\n * Base class to handle setup of the drawer implementati"...
class_declaration
modifiers
public "public"
abstract "abstract"
class "class"
identifier "DrawerActivity"
superclass
extends "extends"
type_identifier "ToolbarActivity"
super_interfaces
implements "implements"
type_list
scoped_type_identifier
type_identifier "DisplayUtils"
. "."
type_identifier "AvatarGenerationListener"
, ","
type_identifier "Injectable"
class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "TAG"
= "="
method_invocation
class_literal
type_identifier "DrawerActivity"
. "."
class "class"
. "."
identifier "getSimpleName"
argument_list
( "("
) ")"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "KEY_IS_ACCOUNT_CHOOSER_ACTIVE"
= "="
string_literal
" "\""
string_fragment "IS_ACCOUNT_CHOOSER_ACTIVE"
" "\""
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "ACTION_MANAGE_ACCOUNTS"
= "="
decimal_integer_literal "101"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MENU_ORDER_EXTERNAL_LINKS"
= "="
decimal_integer_literal "3"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MENU_ITEM_EXTERNAL_LINK"
= "="
decimal_integer_literal "111"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MAX_LOGO_SIZE_PX"
= "="
decimal_integer_literal "1000"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "RELATIVE_THRESHOLD_WARNING"
= "="
decimal_integer_literal "80"
; ";"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "REQ_ALL_FILES_ACCESS"
= "="
decimal_integer_literal "3001"
; ";"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "REQ_MEDIA_ACCESS"
= "="
decimal_integer_literal "3000"
; ";"
block_comment "/**\n * Reference to the drawer layout.\n */"
field_declaration
modifiers
private "private"
type_identifier "DrawerLayout"
variable_declarator
identifier "mDrawerLayout"
; ";"
block_comment "/**\n * Reference to the drawer toggle.\n */"
field_declaration
modifiers
protected "protected"
type_identifier "ActionBarDrawerToggle"
variable_declarator
identifier "mDrawerToggle"
; ";"
block_comment "/**\n * Reference to the navigation view header.\n */"
field_declaration
modifiers
private "private"
type_identifier "View"
variable_declarator
identifier "mNavigationViewHeader"
; ";"
block_comment "/**\n * Flag to signal if the account chooser is active.\n"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "mIsAccountChooserActive"
; ";"
block_comment "/**\n * container layout of the quota view.\n */"
field_declaration
modifiers
private "private"
type_identifier "LinearLayout"
variable_declarator
identifier "mQuotaView"
; ";"
block_comment "/**\n * progress bar of the quota view.\n */"
field_declaration
modifiers
private "private"
type_identifier "LinearProgressIndicator"
variable_declarator
identifier "mQuotaProgressBar"
; ";"
block_comment "/**\n * text view of the quota view.\n */"
field_declaration
modifiers
private "private"
type_identifier "TextView"
variable_declarator
identifier "mQuotaTextPercentage"
; ";"
field_declaration
modifiers
private "private"
type_identifier "TextView"
variable_declarator
identifier "mQuotaTextLink"
; ";"
block_comment "/**\n * runnable that will be executed after the drawer h"...
field_declaration
modifiers
private "private"
type_identifier "Runnable"
variable_declarator
identifier "pendingRunnable"
; ";"
field_declaration
modifiers
private "private"
type_identifier "ExternalLinksProvider"
variable_declarator
identifier "externalLinksProvider"
; ";"
field_declaration
modifiers
private "private"
type_identifier "ArbitraryDataProvider"
variable_declarator
identifier "arbitraryDataProvider"
; ";"
field_declaration
modifiers
private "private"
type_identifier "BottomNavigationView"
variable_declarator
identifier "bottomNavigationView"
; ";"
field_declaration
modifiers
private "private"
type_identifier "NavigationView"
variable_declarator
identifier "drawerNavigationView"
; ";"
block_comment "/**\n * Returns the navigation drawer menu item ID that r"...
method_declaration (+22 nodes collapsed)
field_declaration
modifiers
private "private"
type_identifier "EcosystemManager"
variable_declarator
identifier "ecosystemManager"
; ";"
field_declaration
modifiers
marker_annotation
@ "@"
identifier "Inject"
type_identifier "AppPreferences"
variable_declarator
identifier "preferences"
; ";"
field_declaration
modifiers
marker_annotation
@ "@"
identifier "Inject"
type_identifier "ClientFactory"
variable_declarator
identifier "clientFactory"
; ";"
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Initializes the drawer and its content. This meth"...
method_declaration (+256 nodes collapsed)
block_comment "/**\n * Highlights (checks) the given menu item ID in the"...
method_declaration (+202 nodes collapsed)
method_declaration (+24 nodes collapsed)
method_declaration (+73 nodes collapsed)
method_declaration (+64 nodes collapsed)
method_declaration (+37 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+44 nodes collapsed)
method_declaration (+197 nodes collapsed)
block_comment "/**\n * setup quota elements of the drawer.\n */"
method_declaration (+136 nodes collapsed)
method_declaration (+328 nodes collapsed)
method_declaration (+399 nodes collapsed)
method_declaration (+27 nodes collapsed)
method_declaration (+579 nodes collapsed)
method_declaration (+136 nodes collapsed)
block_comment "/**\n * setup drawer content, basically setting the item "...
method_declaration (+89 nodes collapsed)
method_declaration (+241 nodes collapsed)
line_comment "// region navigation item click"
method_declaration (+981 nodes collapsed)
method_declaration
modifiers
annotation
@ "@"
identifier "SuppressFBWarnings"
annotation_argument_list
( "("
string_literal
" "\""
string_fragment "RV"
" "\""
) ")"
private "private"
void_type "void"
identifier "handleBottomNavigationViewClicks"
formal_parameters
( "("
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "bottomNavigationView"
. "."
identifier "setOnItemSelectedListener"
argument_list
( "("
lambda_expression
identifier "menuItem"
-> "->"
block
{ "{"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "menuItemId"
= "="
method_invocation
identifier "menuItem"
. "."
identifier "getItemId"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "exitSelectionMode"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "resetOnlyPersonalAndOnDevice"
argument_list
( "("
) ")"
; ";"
line_comment "// TODO: remove duplication of all files logic"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "menuItemId"
== "=="
field_access
field_access
identifier "R"
. "."
identifier "id"
. "."
identifier "nav_all_files"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "DrawerActivityExtensionsKt"
. "."
identifier "navigateToAllFiles"
argument_list
( "("
this "this"
) ")"
; ";"
expression_statement (+21 nodes collapsed)
line_comment "// TODO: menu event already sets action bar style?"
expression_statement
method_invocation
identifier "setupHomeSearchToolbarWithSortAndListButtons"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "updateActionBarTitleAndHomeButton"
argument_list
( "("
null_literal "null"
) ")"
; ";"
} "}"
else "else"
if_statement (+95 nodes collapsed)
line_comment "// Remove extra icon from the action bar"
if_statement (+30 nodes collapsed)
line_comment "// from navigation user always sees root level"
expression_statement
method_invocation
identifier "resetFileDepth"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "highlightNavigationViewItem"
argument_list
( "("
identifier "menuItemId"
) ")"
; ";"
return_statement
return "return"
false "false"
; ";"
} "}"
) ")"
; ";"
} "}"
line_comment "// endregion"
method_declaration (+99 nodes collapsed)
method_declaration (+40 nodes collapsed)
method_declaration (+64 nodes collapsed)
method_declaration (+50 nodes collapsed)
method_declaration (+43 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+45 nodes collapsed)
method_declaration (+57 nodes collapsed)
method_declaration (+63 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+90 nodes collapsed)
method_declaration
modifiers
public "public"
type_identifier "EcosystemManager"
identifier "getEcosystemManager"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "ecosystemManager"
; ";"
} "}"
block_comment "/**\n * sets the new/current account and restarts. In cas"...
method_declaration (+72 nodes collapsed)
method_declaration (+193 nodes collapsed)
block_comment "/**\n * checks if the drawer exists and is opened.\n *"...
method_declaration (+31 nodes collapsed)
method_declaration (+42 nodes collapsed)
block_comment "/**\n * closes the drawer.\n */"
method_declaration (+36 nodes collapsed)
block_comment "/**\n * opens the drawer.\n */"
method_declaration (+50 nodes collapsed)
block_comment "/**\n * Enable or disable interaction with all drawers.\n "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Enable or disable the drawer indicator.\n *\n "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Updates title bar and home buttons (state and ico"...
method_declaration (+58 nodes collapsed)
block_comment "/**\n * shows or hides the quota UI elements.\n *\n "...
method_declaration (+53 nodes collapsed)
block_comment "/**\n * configured the quota to be displayed.\n *\n "...
method_declaration (+225 nodes collapsed)
method_declaration (+391 nodes collapsed)
method_declaration (+239 nodes collapsed)
block_comment "/**\n * Retrieves and shows the user quota if available\n "...
method_declaration (+417 nodes collapsed)
method_declaration (+248 nodes collapsed)
method_declaration (+144 nodes collapsed)
method_declaration (+135 nodes collapsed)
method_declaration (+94 nodes collapsed)
method_declaration (+43 nodes collapsed)
method_declaration (+58 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+53 nodes collapsed)
method_declaration (+141 nodes collapsed)
method_declaration (+240 nodes collapsed)
block_comment "/**\n * Quota view can be either at navigation bottom or "...
method_declaration (+83 nodes collapsed)
block_comment "/**\n * restart helper method which is called after a cha"...
method_declaration (+71 nodes collapsed)
method_declaration (+31 nodes collapsed)
block_comment "/**\n * show the file list to the user.\n *\n * @pa"...
method_declaration (+94 nodes collapsed)
method_declaration (+87 nodes collapsed)
method_declaration (+114 nodes collapsed)
method_declaration (+138 nodes collapsed)
block_comment "/**\n * Adds other listeners to react on changes of the d"...
method_declaration (+58 nodes collapsed)
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isDrawerIndicatorAvailable"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
method_declaration
modifiers
public "public"
type_identifier "AppPreferences"
identifier "getAppPreferences"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "preferences"
; ";"
} "}"
method_declaration (+39 nodes collapsed)
method_declaration (+73 nodes collapsed)
method_declaration (+34 nodes collapsed)
block_comment "/**\n * Retrieves external links via api from 'external' "...
method_declaration (+560 nodes collapsed)
method_declaration (+282 nodes collapsed)
method_declaration (+47 nodes collapsed)
method_declaration (+26 nodes collapsed)
method_declaration
modifiers
public "public"
type_identifier "BottomNavigationView"
identifier "getBottomNavigationView"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "bottomNavigationView"
; ";"
} "}"
method_declaration (+56 nodes collapsed)
method_declaration (+45 nodes collapsed)
method_declaration (+57 nodes collapsed)
method_declaration (+84 nodes collapsed)
} "}"