Skip to content

[FEATURE] Support for hidden files - #3624

Merged
abelgardep merged 9 commits into
masterfrom
feature/hidden_files
Apr 19, 2022
Merged

abelgardep merged 9 commits into
masterfrom
feature/hidden_files

Conversation

@davcres

@davcres davcres commented Apr 12, 2022 •

Copy link
Copy Markdown
Contributor

Related Issues

App: #2578

  • Added changelog files for the fixed issues in folder changelog/unreleased. More info here

QA

Test plan: https://github.com/owncloud/QA/blob/master/Mobile/Android/Release_2.21/3624-Hidden_files.md

@davcres
davcres requested review from abelgardep and fesave April 12, 2022 11:35
@davcres davcres self-assigned this Apr 12, 2022
@davcres davcres linked an issue Apr 12, 2022 that may be closed by this pull request
9 tasks
@davcres davcres changed the title [FEATUR] Support for hidden files [FEATURE] Support for hidden files Apr 12, 2022
@davcres davcres closed this Apr 13, 2022
@davcres davcres reopened this Apr 13, 2022

@fesave fesave left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jesmrec

jesmrec commented Apr 18, 2022 •

Copy link
Copy Markdown
Member

(1) [FIXED]

Advanced section is together in the same subsection as Auto Uploads. They should be separated:

Screenshot 2022-04-18 at 09 19 55

@jesmrec

jesmrec commented Apr 18, 2022 •

Copy link
Copy Markdown
Member

(2) [FIXED]

Following the path of iOS app and web, the default value for the Show hidden files should be "disabled". Currently it is enabled by default

@abelgardep abelgardep left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions here @davcres

Comment on lines +421 to +422
final SharedPreferences prefs = android.preference.PreferenceManager.getDefaultSharedPreferences(mContext);
boolean showHiddenFiles = prefs.getBoolean(SHOW_HIDDEN_FILES, true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should try to use the provider when possible 👍

Suggested change
final SharedPreferences prefs = android.preference.PreferenceManager.getDefaultSharedPreferences(mContext);
boolean showHiddenFiles = prefs.getBoolean(SHOW_HIDDEN_FILES, true);
SharedPreferencesProvider sharedPreferencesProvider = new SharedPreferencesProviderImpl(mContext);
boolean showHiddenFiles = sharedPreferencesProvider.getBoolean(SHOW_HIDDEN_FILES, true);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@abelgardep abelgardep left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Ready to test @jesmrec

@jesmrec

jesmrec commented Apr 19, 2022

Copy link
Copy Markdown
Member

This is approved on my side. Thanks a lot for the new great feature!

Just one comment: files starting with . are hidden in many apps supporting Document Provider as well. The new setting to handle such files in the app does not apply to Document Provider. Only files inside the oC app.

@abelgardep
abelgardep merged commit bedb132 into master Apr 19, 2022
@abelgardep
abelgardep deleted the feature/hidden_files branch April 19, 2022 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Support for hidden files

4 participants