Skip to content

Commit 6b42d69

Browse files
Reformat more imports
1 parent 277f8aa commit 6b42d69

16 files changed

+174
-28
lines changed

app/src/main/java/com/infomaniak/mail/data/LocalSettings.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ package com.infomaniak.mail.data
2020
import android.content.Context
2121
import android.os.Build
2222
import android.view.ContextThemeWrapper
23-
import androidx.annotation.*
23+
import androidx.annotation.ColorInt
24+
import androidx.annotation.ColorRes
25+
import androidx.annotation.DrawableRes
26+
import androidx.annotation.StringRes
27+
import androidx.annotation.StyleRes
2428
import androidx.appcompat.app.AppCompatDelegate
2529
import com.google.android.material.color.MaterialColors
2630
import com.infomaniak.lib.core.networking.AccessTokenUsageInterceptor.ApiCallRecord

app/src/main/java/com/infomaniak/mail/data/models/thread/Thread.kt

+16-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ package com.infomaniak.mail.data.models.thread
2121

2222
import android.content.Context
2323
import android.os.Build
24-
import com.infomaniak.lib.core.utils.*
24+
import com.infomaniak.lib.core.utils.FORMAT_DATE_CLEAR_MONTH_DAY_ONE_CHAR
25+
import com.infomaniak.lib.core.utils.FORMAT_DATE_HOUR_MINUTE
26+
import com.infomaniak.lib.core.utils.FORMAT_DATE_SHORT_DAY_ONE_CHAR
27+
import com.infomaniak.lib.core.utils.FormatData
28+
import com.infomaniak.lib.core.utils.format
29+
import com.infomaniak.lib.core.utils.formatWithLocal
30+
import com.infomaniak.lib.core.utils.isInTheFuture
31+
import com.infomaniak.lib.core.utils.isThisYear
32+
import com.infomaniak.lib.core.utils.isToday
33+
import com.infomaniak.lib.core.utils.isYesterday
2534
import com.infomaniak.mail.MatomoMail.SEARCH_FOLDER_FILTER_NAME
2635
import com.infomaniak.mail.R
2736
import com.infomaniak.mail.data.api.RealmInstantSerializer
@@ -38,7 +47,12 @@ import com.infomaniak.mail.utils.extensions.toRealmInstant
3847
import io.realm.kotlin.MutableRealm
3948
import io.realm.kotlin.Realm
4049
import io.realm.kotlin.TypedRealm
41-
import io.realm.kotlin.ext.*
50+
import io.realm.kotlin.ext.backlinks
51+
import io.realm.kotlin.ext.copyFromRealm
52+
import io.realm.kotlin.ext.isManaged
53+
import io.realm.kotlin.ext.realmListOf
54+
import io.realm.kotlin.ext.realmSetOf
55+
import io.realm.kotlin.ext.toRealmList
4256
import io.realm.kotlin.internal.getRealm
4357
import io.realm.kotlin.serializers.RealmListKSerializer
4458
import io.realm.kotlin.types.RealmInstant

app/src/main/java/com/infomaniak/mail/ui/MainActivity.kt

+6-1
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,15 @@ import com.infomaniak.mail.ui.main.onboarding.PermissionsOnboardingPagerFragment
7070
import com.infomaniak.mail.ui.main.search.SearchFragmentArgs
7171
import com.infomaniak.mail.ui.newMessage.NewMessageActivity
7272
import com.infomaniak.mail.ui.sync.SyncAutoConfigActivity
73-
import com.infomaniak.mail.utils.*
73+
import com.infomaniak.mail.utils.AccountUtils
74+
import com.infomaniak.mail.utils.PermissionUtils
75+
import com.infomaniak.mail.utils.PlayServicesUtils
76+
import com.infomaniak.mail.utils.SentryDebug
77+
import com.infomaniak.mail.utils.UiUtils
7478
import com.infomaniak.mail.utils.UiUtils.progressivelyColorSystemBars
7579
import com.infomaniak.mail.utils.Utils.Shortcuts
7680
import com.infomaniak.mail.utils.Utils.openShortcutHelp
81+
import com.infomaniak.mail.utils.WorkerUtils
7782
import com.infomaniak.mail.utils.extensions.isUserAlreadySynchronized
7883
import com.infomaniak.mail.workers.DraftsActionsWorker
7984
import dagger.hilt.android.AndroidEntryPoint

app/src/main/java/com/infomaniak/mail/ui/MainViewModel.kt

+25-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@
1818
package com.infomaniak.mail.ui
1919

2020
import android.app.Application
21-
import androidx.lifecycle.*
21+
import androidx.lifecycle.AndroidViewModel
22+
import androidx.lifecycle.LiveData
23+
import androidx.lifecycle.MediatorLiveData
24+
import androidx.lifecycle.MutableLiveData
25+
import androidx.lifecycle.asFlow
26+
import androidx.lifecycle.asLiveData
27+
import androidx.lifecycle.liveData
28+
import androidx.lifecycle.viewModelScope
2229
import com.infomaniak.lib.core.models.ApiResponse
2330
import com.infomaniak.lib.core.utils.ApiErrorCode.Companion.translateError
2431
import com.infomaniak.lib.core.utils.DownloadManagerUtils
@@ -60,14 +67,28 @@ import com.infomaniak.mail.utils.SharedUtils.Companion.updateSignatures
6067
import com.infomaniak.mail.utils.Utils.isPermanentDeleteFolder
6168
import com.infomaniak.mail.utils.Utils.runCatchingRealm
6269
import com.infomaniak.mail.utils.coroutineContext
63-
import com.infomaniak.mail.utils.extensions.*
70+
import com.infomaniak.mail.utils.extensions.MergedContactDictionary
71+
import com.infomaniak.mail.utils.extensions.appContext
72+
import com.infomaniak.mail.utils.extensions.getCustomMenuFolders
73+
import com.infomaniak.mail.utils.extensions.getDefaultMenuFolders
74+
import com.infomaniak.mail.utils.extensions.getFoldersIds
75+
import com.infomaniak.mail.utils.extensions.getUids
76+
import com.infomaniak.mail.utils.extensions.launchNoValidMailboxesActivity
6477
import com.infomaniak.mail.views.itemViews.AvatarMergedContactData
6578
import dagger.hilt.android.lifecycle.HiltViewModel
6679
import io.realm.kotlin.ext.copyFromRealm
6780
import io.realm.kotlin.ext.toRealmList
6881
import io.realm.kotlin.notifications.ResultsChange
69-
import kotlinx.coroutines.*
70-
import kotlinx.coroutines.flow.*
82+
import kotlinx.coroutines.CoroutineDispatcher
83+
import kotlinx.coroutines.ExperimentalCoroutinesApi
84+
import kotlinx.coroutines.Job
85+
import kotlinx.coroutines.delay
86+
import kotlinx.coroutines.flow.MutableStateFlow
87+
import kotlinx.coroutines.flow.emptyFlow
88+
import kotlinx.coroutines.flow.flatMapLatest
89+
import kotlinx.coroutines.flow.map
90+
import kotlinx.coroutines.flow.mapLatest
91+
import kotlinx.coroutines.launch
7192
import java.util.Date
7293
import javax.inject.Inject
7394
import kotlin.math.max

app/src/main/java/com/infomaniak/mail/ui/alertDialogs/InputAlertDialog.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ import com.infomaniak.mail.di.IoDispatcher
3333
import com.infomaniak.mail.utils.extensions.trimmedText
3434
import dagger.hilt.android.qualifiers.ActivityContext
3535
import dagger.hilt.android.scopes.ActivityScoped
36-
import kotlinx.coroutines.*
36+
import kotlinx.coroutines.CoroutineDispatcher
37+
import kotlinx.coroutines.Dispatchers
38+
import kotlinx.coroutines.Job
39+
import kotlinx.coroutines.invoke
40+
import kotlinx.coroutines.launch
3741
import javax.inject.Inject
3842
import com.infomaniak.lib.core.R as RCore
3943

app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListAdapter.kt

+23-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,17 @@ import com.ernestoyaquello.dragdropswiperecyclerview.DragDropSwipeRecyclerView
4343
import com.ernestoyaquello.dragdropswiperecyclerview.util.DragDropSwipeDiffCallback
4444
import com.google.android.material.card.MaterialCardView
4545
import com.infomaniak.lib.core.MatomoCore.TrackerAction
46-
import com.infomaniak.lib.core.utils.*
46+
import com.infomaniak.lib.core.utils.capitalizeFirstChar
47+
import com.infomaniak.lib.core.utils.context
48+
import com.infomaniak.lib.core.utils.format
49+
import com.infomaniak.lib.core.utils.isInTheFuture
50+
import com.infomaniak.lib.core.utils.isThisMonth
51+
import com.infomaniak.lib.core.utils.isThisWeek
52+
import com.infomaniak.lib.core.utils.isThisYear
53+
import com.infomaniak.lib.core.utils.isToday
54+
import com.infomaniak.lib.core.utils.isYesterday
55+
import com.infomaniak.lib.core.utils.setMarginsRelative
56+
import com.infomaniak.lib.core.utils.toPx
4757
import com.infomaniak.mail.MatomoMail.trackMultiSelectionEvent
4858
import com.infomaniak.mail.R
4959
import com.infomaniak.mail.data.LocalSettings
@@ -62,9 +72,19 @@ import com.infomaniak.mail.ui.main.thread.SubjectFormatter.TagColor
6272
import com.infomaniak.mail.utils.RealmChangesBinding
6373
import com.infomaniak.mail.utils.SentryDebug
6474
import com.infomaniak.mail.utils.Utils.runCatchingRealm
65-
import com.infomaniak.mail.utils.extensions.*
75+
import com.infomaniak.mail.utils.extensions.formatSubject
76+
import com.infomaniak.mail.utils.extensions.getAttributeColor
77+
import com.infomaniak.mail.utils.extensions.isEmail
78+
import com.infomaniak.mail.utils.extensions.isLastWeek
79+
import com.infomaniak.mail.utils.extensions.postfixWithTag
80+
import com.infomaniak.mail.utils.extensions.toDate
6681
import dagger.hilt.android.qualifiers.ActivityContext
67-
import kotlinx.coroutines.*
82+
import kotlinx.coroutines.CoroutineScope
83+
import kotlinx.coroutines.Dispatchers
84+
import kotlinx.coroutines.Job
85+
import kotlinx.coroutines.ensureActive
86+
import kotlinx.coroutines.invoke
87+
import kotlinx.coroutines.launch
6888
import javax.inject.Inject
6989
import kotlin.math.abs
7090
import com.google.android.material.R as RMaterial

app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListFragment.kt

+16-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ import com.ernestoyaquello.dragdropswiperecyclerview.listener.OnListScrollListen
4747
import com.ernestoyaquello.dragdropswiperecyclerview.listener.OnListScrollListener.ScrollDirection
4848
import com.ernestoyaquello.dragdropswiperecyclerview.listener.OnListScrollListener.ScrollState
4949
import com.infomaniak.lib.core.MatomoCore.TrackerAction
50-
import com.infomaniak.lib.core.utils.*
50+
import com.infomaniak.lib.core.utils.SentryLog
51+
import com.infomaniak.lib.core.utils.context
52+
import com.infomaniak.lib.core.utils.goToPlayStore
53+
import com.infomaniak.lib.core.utils.isToday
54+
import com.infomaniak.lib.core.utils.safeNavigate
55+
import com.infomaniak.lib.core.utils.setPaddingRelative
5156
import com.infomaniak.lib.stores.updatemanagers.InAppUpdateManager
5257
import com.infomaniak.mail.MatomoMail.trackEvent
5358
import com.infomaniak.mail.MatomoMail.trackMenuDrawerEvent
@@ -77,7 +82,16 @@ import com.infomaniak.mail.utils.UiUtils.formatUnreadCount
7782
import com.infomaniak.mail.utils.Utils
7883
import com.infomaniak.mail.utils.Utils.isPermanentDeleteFolder
7984
import com.infomaniak.mail.utils.Utils.runCatchingRealm
80-
import com.infomaniak.mail.utils.extensions.*
85+
import com.infomaniak.mail.utils.extensions.addStickyDateDecoration
86+
import com.infomaniak.mail.utils.extensions.animatedNavigation
87+
import com.infomaniak.mail.utils.extensions.bindAlertToViewLifecycle
88+
import com.infomaniak.mail.utils.extensions.deleteWithConfirmationPopup
89+
import com.infomaniak.mail.utils.extensions.getAnimatedNavOptions
90+
import com.infomaniak.mail.utils.extensions.notYetImplemented
91+
import com.infomaniak.mail.utils.extensions.observeNotNull
92+
import com.infomaniak.mail.utils.extensions.safeNavigateToNewMessageActivity
93+
import com.infomaniak.mail.utils.extensions.setSystemBarsColors
94+
import com.infomaniak.mail.utils.extensions.toDate
8195
import dagger.hilt.android.AndroidEntryPoint
8296
import io.sentry.Sentry
8397
import io.sentry.SentryLevel

app/src/main/java/com/infomaniak/mail/ui/main/search/SearchFragment.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ import com.infomaniak.mail.ui.main.search.SearchFolderAdapter.SearchFolderElemen
5757
import com.infomaniak.mail.ui.main.thread.ThreadFragment
5858
import com.infomaniak.mail.utils.RealmChangesBinding.Companion.bindResultsChangeToAdapter
5959
import com.infomaniak.mail.utils.Utils.Shortcuts
60-
import com.infomaniak.mail.utils.extensions.*
60+
import com.infomaniak.mail.utils.extensions.addStickyDateDecoration
61+
import com.infomaniak.mail.utils.extensions.getLocalizedNameOrAllFolders
62+
import com.infomaniak.mail.utils.extensions.handleEditorSearchAction
63+
import com.infomaniak.mail.utils.extensions.setOnClearTextClickListener
64+
import com.infomaniak.mail.utils.extensions.setSystemBarsColors
6165
import dagger.hilt.android.AndroidEntryPoint
6266

6367
@AndroidEntryPoint

app/src/main/java/com/infomaniak/mail/ui/main/search/SearchViewModel.kt

+12-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
package com.infomaniak.mail.ui.main.search
1919

2020
import android.app.Application
21-
import androidx.lifecycle.*
21+
import androidx.lifecycle.AndroidViewModel
22+
import androidx.lifecycle.MutableLiveData
23+
import androidx.lifecycle.SavedStateHandle
24+
import androidx.lifecycle.asLiveData
25+
import androidx.lifecycle.viewModelScope
2226
import com.infomaniak.lib.core.models.ApiResponse
2327
import com.infomaniak.lib.core.utils.SentryLog
2428
import com.infomaniak.lib.core.utils.SingleLiveEvent
@@ -41,8 +45,14 @@ import com.infomaniak.mail.utils.extensions.appContext
4145
import com.infomaniak.mail.utils.extensions.getMenuFolders
4246
import dagger.hilt.android.lifecycle.HiltViewModel
4347
import io.sentry.Sentry
44-
import kotlinx.coroutines.*
48+
import kotlinx.coroutines.CoroutineDispatcher
49+
import kotlinx.coroutines.CoroutineScope
50+
import kotlinx.coroutines.Job
51+
import kotlinx.coroutines.delay
52+
import kotlinx.coroutines.ensureActive
4553
import kotlinx.coroutines.flow.map
54+
import kotlinx.coroutines.launch
55+
import kotlinx.coroutines.withContext
4656
import javax.inject.Inject
4757

4858
@HiltViewModel

app/src/main/java/com/infomaniak/mail/ui/main/thread/ThreadAdapter.kt

+11-2
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,27 @@ import com.infomaniak.mail.data.models.message.Message
5454
import com.infomaniak.mail.databinding.ItemMessageBinding
5555
import com.infomaniak.mail.databinding.ItemSuperCollapsedBlockBinding
5656
import com.infomaniak.mail.ui.main.thread.ThreadAdapter.ThreadAdapterViewHolder
57-
import com.infomaniak.mail.utils.*
57+
import com.infomaniak.mail.utils.AccountUtils
58+
import com.infomaniak.mail.utils.HtmlFormatter
5859
import com.infomaniak.mail.utils.MailDateFormatUtils.mailFormattedDate
5960
import com.infomaniak.mail.utils.MailDateFormatUtils.mostDetailedDate
61+
import com.infomaniak.mail.utils.MessageBodyUtils
6062
import com.infomaniak.mail.utils.SharedUtils.Companion.createHtmlForPlainText
6163
import com.infomaniak.mail.utils.UiUtils.getPrettyNameAndEmail
64+
import com.infomaniak.mail.utils.Utils
6265
import com.infomaniak.mail.utils.Utils.TEXT_HTML
6366
import com.infomaniak.mail.utils.Utils.TEXT_PLAIN
6467
import com.infomaniak.mail.utils.Utils.runCatchingRealm
68+
import com.infomaniak.mail.utils.WebViewUtils
6569
import com.infomaniak.mail.utils.WebViewUtils.Companion.setupThreadWebViewSettings
6670
import com.infomaniak.mail.utils.WebViewUtils.Companion.toggleWebViewTheme
67-
import com.infomaniak.mail.utils.extensions.*
6871
import com.infomaniak.mail.utils.extensions.AttachmentExtensions.AttachmentIntentType
72+
import com.infomaniak.mail.utils.extensions.enableAlgorithmicDarkening
73+
import com.infomaniak.mail.utils.extensions.formatSubject
74+
import com.infomaniak.mail.utils.extensions.getAttributeColor
75+
import com.infomaniak.mail.utils.extensions.initWebViewClientAndBridge
76+
import com.infomaniak.mail.utils.extensions.toDate
77+
import com.infomaniak.mail.utils.extensions.toggleChevron
6978
import io.sentry.Sentry
7079
import io.sentry.SentryLevel
7180
import kotlinx.coroutines.CoroutineScope

app/src/main/java/com/infomaniak/mail/ui/main/thread/ThreadFragment.kt

+15-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ import com.infomaniak.mail.data.models.message.Message
6363
import com.infomaniak.mail.data.models.thread.Thread
6464
import com.infomaniak.mail.databinding.FragmentThreadBinding
6565
import com.infomaniak.mail.ui.MainViewModel
66-
import com.infomaniak.mail.ui.alertDialogs.*
66+
import com.infomaniak.mail.ui.alertDialogs.DescriptionAlertDialog
67+
import com.infomaniak.mail.ui.alertDialogs.EmailContextualMenuAlertDialog
68+
import com.infomaniak.mail.ui.alertDialogs.InformationAlertDialog
69+
import com.infomaniak.mail.ui.alertDialogs.LinkContextualMenuAlertDialog
70+
import com.infomaniak.mail.ui.alertDialogs.PhoneContextualMenuAlertDialog
6771
import com.infomaniak.mail.ui.main.SnackbarManager
6872
import com.infomaniak.mail.ui.main.folder.TwoPaneFragment
6973
import com.infomaniak.mail.ui.main.folder.TwoPaneViewModel
@@ -78,8 +82,17 @@ import com.infomaniak.mail.ui.main.thread.actions.ThreadActionsBottomSheetDialog
7882
import com.infomaniak.mail.ui.main.thread.calendar.AttendeesBottomSheetDialogArgs
7983
import com.infomaniak.mail.utils.PermissionUtils
8084
import com.infomaniak.mail.utils.UiUtils.dividerDrawable
81-
import com.infomaniak.mail.utils.extensions.*
8285
import com.infomaniak.mail.utils.extensions.AttachmentExtensions.openAttachment
86+
import com.infomaniak.mail.utils.extensions.bindAlertToViewLifecycle
87+
import com.infomaniak.mail.utils.extensions.changeToolbarColorOnScroll
88+
import com.infomaniak.mail.utils.extensions.copyStringToClipboard
89+
import com.infomaniak.mail.utils.extensions.deleteWithConfirmationPopup
90+
import com.infomaniak.mail.utils.extensions.getAttributeColor
91+
import com.infomaniak.mail.utils.extensions.isAtTheTop
92+
import com.infomaniak.mail.utils.extensions.isTabletInLandscape
93+
import com.infomaniak.mail.utils.extensions.navigateToDownloadProgressDialog
94+
import com.infomaniak.mail.utils.extensions.observeNotNull
95+
import com.infomaniak.mail.utils.extensions.updateNavigationBarColor
8396
import dagger.hilt.android.AndroidEntryPoint
8497
import io.sentry.Sentry
8598
import io.sentry.SentryLevel

app/src/main/java/com/infomaniak/mail/ui/main/thread/actions/MessageActionsBottomSheetDialog.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ import com.infomaniak.mail.data.models.draft.Draft.DraftMode
4242
import com.infomaniak.mail.ui.alertDialogs.DescriptionAlertDialog
4343
import com.infomaniak.mail.ui.main.menu.MoveFragmentArgs
4444
import com.infomaniak.mail.ui.main.thread.PrintMailFragmentArgs
45-
import com.infomaniak.mail.utils.extensions.*
45+
import com.infomaniak.mail.utils.extensions.animatedNavigation
46+
import com.infomaniak.mail.utils.extensions.deleteWithConfirmationPopup
47+
import com.infomaniak.mail.utils.extensions.notYetImplemented
48+
import com.infomaniak.mail.utils.extensions.safeNavigateToNewMessageActivity
49+
import com.infomaniak.mail.utils.extensions.shareString
4650
import dagger.hilt.android.AndroidEntryPoint
4751
import javax.inject.Inject
4852

app/src/main/java/com/infomaniak/mail/ui/main/thread/actions/ThreadActionsBottomSheetDialog.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ import com.infomaniak.mail.data.models.draft.Draft.DraftMode
4444
import com.infomaniak.mail.data.models.thread.Thread
4545
import com.infomaniak.mail.ui.alertDialogs.DescriptionAlertDialog
4646
import com.infomaniak.mail.ui.main.menu.MoveFragmentArgs
47-
import com.infomaniak.mail.utils.extensions.*
47+
import com.infomaniak.mail.utils.extensions.animatedNavigation
48+
import com.infomaniak.mail.utils.extensions.deleteWithConfirmationPopup
49+
import com.infomaniak.mail.utils.extensions.notYetImplemented
50+
import com.infomaniak.mail.utils.extensions.safeNavigateToNewMessageActivity
51+
import com.infomaniak.mail.utils.extensions.shareString
4852
import dagger.hilt.android.AndroidEntryPoint
4953
import javax.inject.Inject
5054

app/src/main/java/com/infomaniak/mail/ui/newMessage/AiPromptFragment.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ import androidx.fragment.app.Fragment
2929
import androidx.fragment.app.activityViewModels
3030
import androidx.lifecycle.lifecycleScope
3131
import androidx.lifecycle.withStarted
32-
import com.infomaniak.lib.core.utils.*
32+
import com.infomaniak.lib.core.utils.safeBinding
33+
import com.infomaniak.lib.core.utils.safeNavigate
34+
import com.infomaniak.lib.core.utils.setMarginsRelative
35+
import com.infomaniak.lib.core.utils.showKeyboard
36+
import com.infomaniak.lib.core.utils.toPx
3337
import com.infomaniak.mail.MatomoMail.trackEvent
3438
import com.infomaniak.mail.R
3539
import com.infomaniak.mail.data.LocalSettings

app/src/main/java/com/infomaniak/mail/ui/newMessage/RecipientFieldView.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ import com.google.android.flexbox.FlexDirection
3434
import com.google.android.flexbox.FlexboxLayoutManager
3535
import com.google.android.flexbox.JustifyContent
3636
import com.google.android.material.chip.Chip
37-
import com.infomaniak.lib.core.utils.*
37+
import com.infomaniak.lib.core.utils.context
38+
import com.infomaniak.lib.core.utils.getAttributes
39+
import com.infomaniak.lib.core.utils.hideKeyboard
40+
import com.infomaniak.lib.core.utils.showKeyboard
41+
import com.infomaniak.lib.core.utils.toPx
3842
import com.infomaniak.lib.core.views.DividerItemDecorator
3943
import com.infomaniak.mail.MatomoMail.trackMessageEvent
4044
import com.infomaniak.mail.R

app/src/main/java/com/infomaniak/mail/utils/extensions/Extensions.kt

+15-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ import android.view.View
3838
import android.view.Window
3939
import android.view.inputmethod.EditorInfo
4040
import android.webkit.WebView
41-
import androidx.annotation.*
41+
import androidx.annotation.AttrRes
42+
import androidx.annotation.ColorInt
43+
import androidx.annotation.ColorRes
44+
import androidx.annotation.RawRes
45+
import androidx.annotation.StringRes
4246
import androidx.core.content.res.ResourcesCompat
4347
import androidx.core.content.res.getColorOrThrow
4448
import androidx.core.text.toSpannable
@@ -64,8 +68,13 @@ import com.google.android.material.textfield.TextInputEditText
6468
import com.google.android.material.textfield.TextInputLayout
6569
import com.infomaniak.lib.core.api.ApiController
6670
import com.infomaniak.lib.core.models.ApiResponse
67-
import com.infomaniak.lib.core.utils.*
6871
import com.infomaniak.lib.core.utils.SnackbarUtils.showSnackbar
72+
import com.infomaniak.lib.core.utils.endOfTheWeek
73+
import com.infomaniak.lib.core.utils.hideKeyboard
74+
import com.infomaniak.lib.core.utils.removeAccents
75+
import com.infomaniak.lib.core.utils.showToast
76+
import com.infomaniak.lib.core.utils.startOfTheDay
77+
import com.infomaniak.lib.core.utils.startOfTheWeek
6978
import com.infomaniak.lib.login.InfomaniakLogin
7079
import com.infomaniak.mail.BuildConfig
7180
import com.infomaniak.mail.MainApplication
@@ -92,11 +101,14 @@ import com.infomaniak.mail.ui.main.thread.SubjectFormatter.EllipsizeConfiguratio
92101
import com.infomaniak.mail.ui.main.thread.SubjectFormatter.TagColor
93102
import com.infomaniak.mail.ui.main.thread.ThreadFragment.HeaderState
94103
import com.infomaniak.mail.ui.newMessage.NewMessageViewModel.UiRecipients
95-
import com.infomaniak.mail.utils.*
104+
import com.infomaniak.mail.utils.AccountUtils
105+
import com.infomaniak.mail.utils.ApiErrorException
106+
import com.infomaniak.mail.utils.UiUtils
96107
import com.infomaniak.mail.utils.Utils
97108
import com.infomaniak.mail.utils.Utils.TAG_SEPARATOR
98109
import com.infomaniak.mail.utils.Utils.isPermanentDeleteFolder
99110
import com.infomaniak.mail.utils.Utils.kSyncAccountUri
111+
import com.infomaniak.mail.utils.WebViewUtils
100112
import io.realm.kotlin.MutableRealm
101113
import io.realm.kotlin.Realm
102114
import io.realm.kotlin.UpdatePolicy

0 commit comments

Comments
 (0)