mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 14:52:13 -04:00
Resolve lint errors and reduce inspection severity to info
This commit is contained in:
parent
e7c3d5dcdf
commit
b08b36a757
@ -343,7 +343,7 @@
|
||||
<inspection_tool class="RemoveForLoopIndices" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="RemoveRedundantBackticks" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="RemoveRedundantCallsOfConversionMethods" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="RemoveRedundantQualifierName" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="RemoveRedundantQualifierName" enabled="true" level="INFORMATION" enabled_by_default="true" />
|
||||
<inspection_tool class="RemoveRedundantSpreadOperator" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="RemoveSetterParameterType" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="RemoveSingleExpressionStringTemplate" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
|
@ -22,4 +22,4 @@ import kotlin.annotation.AnnotationRetention.RUNTIME
|
||||
|
||||
@Scope
|
||||
@Retention(RUNTIME)
|
||||
annotation class ServiceScope
|
||||
annotation class ServiceScope
|
||||
|
@ -67,4 +67,3 @@ class ServiceModule {
|
||||
): HotspotNotificationManager =
|
||||
HotspotNotificationManager(notificationManager, context)
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,6 @@ package org.kiwix.kiwixmobile.utils
|
||||
|
||||
import android.net.wifi.WifiConfiguration
|
||||
import org.kiwix.kiwixmobile.R
|
||||
import org.kiwix.kiwixmobile.R.string
|
||||
import org.kiwix.kiwixmobile.zim_manager.fileselect_view.adapter.BooksOnDiskListItem.BookOnDisk
|
||||
|
||||
sealed class KiwixDialog(
|
||||
@ -39,7 +38,10 @@ sealed class KiwixDialog(
|
||||
)
|
||||
|
||||
object StoragePermissionRationale : KiwixDialog(
|
||||
null, R.string.request_storage, android.R.string.yes, android.R.string.cancel
|
||||
null,
|
||||
R.string.request_storage,
|
||||
android.R.string.yes,
|
||||
android.R.string.cancel
|
||||
)
|
||||
|
||||
object EnableWifiP2pServices : KiwixDialog(
|
||||
@ -71,13 +73,14 @@ sealed class KiwixDialog(
|
||||
)
|
||||
}
|
||||
|
||||
data class StartHotspotManually(val neutralMessage: Int = string.hotspot_dialog_neutral_button) :
|
||||
KiwixDialog(
|
||||
string.hotspot_dialog_title,
|
||||
string.hotspot_dialog_message,
|
||||
string.go_to_settings_label,
|
||||
null
|
||||
)
|
||||
data class StartHotspotManually(
|
||||
val neutralMessage: Int = R.string.hotspot_dialog_neutral_button
|
||||
) : KiwixDialog(
|
||||
R.string.hotspot_dialog_title,
|
||||
R.string.hotspot_dialog_message,
|
||||
R.string.go_to_settings_label,
|
||||
null
|
||||
)
|
||||
|
||||
data class FileTransferConfirmation(override val args: Array<out Any>) : KiwixDialog(
|
||||
null, R.string.transfer_to, R.string.yes, android.R.string.cancel
|
||||
|
Loading…
x
Reference in New Issue
Block a user