FileDisplayActivity: Added missing Preference check.

This commit is contained in:
eho 2018-04-03 16:24:15 +02:00
parent 6e2d9d2a24
commit 239df11525

View file

@ -288,7 +288,8 @@ public class FileDisplayActivity extends HookActivity
*/
private void upgradeNotificationForInstantUpload() {
// check for Android 6+ if legacy instant upload is activated --> disable + show info
if (PreferenceManager.instantPictureUploadEnabled(this)) {
if (PreferenceManager.instantPictureUploadEnabled(this) ||
PreferenceManager.instantVideoUploadEnabled(this)) {
// remove legacy shared preferences
SharedPreferences.Editor editor = PreferenceManager.getDefaultSharedPreferences(this).edit();