Skip to content
Snippets Groups Projects
Commit b51198cd authored by Adrien Béraud's avatar Adrien Béraud
Browse files

prefs: adjust max file settings

Change-Id: I2ecc35559c12841dcc7451f5c5a5b71bc37efcb8
parent b292b4cc
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ public class GeneralAccountFragment extends BasePreferenceFragment<GeneralAccoun ...@@ -137,7 +137,7 @@ public class GeneralAccountFragment extends BasePreferenceFragment<GeneralAccoun
} else if (size == maxSize) { } else if (size == maxSize) {
return getText(R.string.account_accept_files_always); return getText(R.string.account_accept_files_always);
} else { } else {
return Formatter.formatFileSize(requireContext(), size * 1024 * 1024); return Formatter.formatFileSize(requireContext(), size * 1000 * 1000);
} }
} }
......
...@@ -41,12 +41,12 @@ along with this program; if not, write to the Free Software ...@@ -41,12 +41,12 @@ along with this program; if not, write to the Free Software
<androidx.preference.SeekBarPreference <androidx.preference.SeekBarPreference
android:icon="@drawable/baseline_attach_file_24" android:icon="@drawable/baseline_attach_file_24"
android:key="acceptIncomingFilesMaxSize" android:key="acceptIncomingFilesMaxSize"
android:max="256" android:max="100"
android:persistent="true" android:persistent="true"
android:title="@string/account_accept_files_max_size" android:title="@string/account_accept_files_max_size"
app:defaultValue="32" app:defaultValue="32"
app:min="0" app:min="0"
app:seekBarIncrement="1" app:seekBarIncrement="2"
app:updatesContinuously="true" app:updatesContinuously="true"
tools:summary="@string/account_accept_files_never" /> tools:summary="@string/account_accept_files_never" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment