Skip to content

Commit

Permalink
Suppress SdCardPath warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Akilesh-T committed Jan 28, 2020
1 parent c1849e9 commit 54f5f69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/app/akilesh/qacc/Const.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package app.akilesh.qacc

import android.annotation.SuppressLint
import android.content.Context
import android.os.Build
import android.os.Build.VERSION.SDK_INT
Expand Down Expand Up @@ -58,6 +59,7 @@ object Const {
const val modPath = "/data/adb/modules/qacc-mobile"
val overlayPath = if (SDK_INT == Q) "$modPath/system/product/overlay"
else "$modPath/system/vendor/overlay"
@SuppressLint("SdCardPath")
val backupFolder = "/sdcard/${DIRECTORY_DOCUMENTS}/${contextConst.getString(R.string.app_name_short)}/backups"
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package app.akilesh.qacc.ui.fragments

import android.annotation.SuppressLint
import android.app.Activity.RESULT_OK
import android.content.Intent
import android.os.Bundle
Expand Down Expand Up @@ -112,7 +111,6 @@ class BackupRestoreFragment: Fragment() {
).exec().out
}

@SuppressLint("SdCardPath")
private fun createBackup() {
var date = Calendar.getInstance().time.toString()
date = date.replace("\\s".toRegex(), "-")
Expand Down

0 comments on commit 54f5f69

Please sign in to comment.