Issue #461 (Card 9) (Remove tags from navigation for collaborators)
app:
- MainActivity: replaced NavigationFragment index constant acccess with
the proper get methods from nafigationFragment field everywhere
- NavigationHandlerFragment: removed index constants such as they are
not constants anymore
- NiavigationHandlerFragment: added new methods getGalleryIndex,
getAlbumsIndex, getTagsIndex, getSyncIndex, getAccountIndex, hasTags
- NavigationHandlerFragment: replaced index constant access with
corresponding methods everywhere
- NavigationHandlerFragment: added hasTags check to the initPager method
before adding tags to the navigation
- Preferences added new methods setAccountAccessType,
getAccountAccessType, isLimitedAccountAccessType
- Credentials: added new access type constants
- Credentials: added mType field and it support to Parcelable
implementation and constructor
- Credentials: added getType getter
- Credentials: added static method saveCredentials and saving of account
access type to preferences cache there
- res/values/settings.xml: added setting_account_access_type constant
test:
- GalleryActivityTest, MainActivityTest: fixed compilation issues caused
by NavigationHandlerFragment updates
- CredentialsTest: added new test case testCredentialsParcelableV2
- CredentialsTest: updated checkCredentialsV2 signature (added type
support)
- AccountTroveboxResponseTest: updated calls of
CredentialsTest.checkCredentialsV2 with proper types in the
testMultiResponseV2 method
- res/raw/json_credentials_v2.txt: added