Cleanup code and remove logs
This commit is contained in:
parent
24d9988ec1
commit
04cac740ee
7 changed files with 21 additions and 222 deletions
|
|
@ -11,7 +11,6 @@ import android.graphics.drawable.LayerDrawable
|
|||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.provider.Telephony
|
||||
import android.util.Log
|
||||
import android.view.Menu
|
||||
import android.view.MenuItem
|
||||
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
||||
|
|
@ -362,13 +361,10 @@ class MainActivity : SimpleActivity() {
|
|||
}
|
||||
}
|
||||
|
||||
private val TAG = "MainActivity"
|
||||
private fun exportMessagesTo(outputStream: OutputStream?) {
|
||||
ensureBackgroundThread {
|
||||
toast(R.string.exporting)
|
||||
smsExporter.exportMessages(outputStream, { total, current ->
|
||||
Log.d(TAG, "PERCENTAGE: ${current.toDouble() * 100 / total.toDouble()}%")
|
||||
}) {
|
||||
smsExporter.exportMessages(outputStream) {
|
||||
toast(
|
||||
when (it) {
|
||||
MessagesExporter.ExportResult.EXPORT_OK -> R.string.exporting_successful
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue