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)
} "}"