Browse Source

Suppress MagicNumber

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 năm trước cách đây
mục cha
commit
6fce72022f

+ 1 - 0
app/src/main/java/com/owncloud/android/ui/dialog/ExpirationDatePickerDialogFragment.kt

@@ -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.
      */
+    @Suppress("DEPRECATION", "MagicNumber")
     override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
         // Chosen date received as an argument must be later than tomorrow ; default to tomorrow in other case
         val chosenDate = Calendar.getInstance()