Suppress MagicNumber

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2023-10-31 12:45:42 +01:00
parent b9e5c109a9
commit 6fce72022f
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -80,6 +80,7 @@ class ExpirationDatePickerDialogFragment : DialogFragment(), OnDateSetListener,
* *
* @return A new dialog to let the user choose an expiration date that will be bound to a share link. * @return A new dialog to let the user choose an expiration date that will be bound to a share link.
*/ */
@Suppress("DEPRECATION", "MagicNumber")
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
// Chosen date received as an argument must be later than tomorrow ; default to tomorrow in other case // Chosen date received as an argument must be later than tomorrow ; default to tomorrow in other case
val chosenDate = Calendar.getInstance() val chosenDate = Calendar.getInstance()