Skip to content

Commit

Permalink
fix: removed useless RequiresApi annotation as minSdk is 21
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon committed Mar 31, 2023
1 parent 963ed85 commit 7ccfabf
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import android.view.MenuItem
import android.widget.Toast
import androidx.activity.result.contract.ActivityResultContracts
import androidx.activity.viewModels
import androidx.annotation.RequiresApi
import androidx.core.app.ActivityCompat
import androidx.core.app.NavUtils
import androidx.core.content.ContextCompat
Expand Down Expand Up @@ -107,8 +106,7 @@ class ScanHistoryActivity : BaseActivity() {
}
}

@RequiresApi(Build.VERSION_CODES.KITKAT)
val fileWriterLauncher = registerForActivityResult(CreateCSVContract()) { uri ->
private val fileWriterLauncher = registerForActivityResult(CreateCSVContract()) { uri ->
uri?.let {
writeHistoryToFile(this, adapter.products, it)
}
Expand Down

0 comments on commit 7ccfabf

Please sign in to comment.