Moved constant declarations inside classes
This commit is contained in:
@ -18,10 +18,10 @@ import java.net.URL
|
||||
import java.util.*
|
||||
import kotlin.collections.ArrayList
|
||||
|
||||
private const val TAG = "Baresip"
|
||||
|
||||
class AccountActivity : AppCompatActivity() {
|
||||
|
||||
private val TAG = "Baresip"
|
||||
|
||||
private lateinit var binding: ActivityAccountBinding
|
||||
private lateinit var acc: Account
|
||||
private lateinit var ua: UserAgent
|
||||
@ -622,6 +622,8 @@ class AccountActivity : AppCompatActivity() {
|
||||
private class GetAccountConfigAsyncTask(context: AccountActivity):
|
||||
AsyncTask<String, String, String>() {
|
||||
|
||||
private val TAG = "Baresip"
|
||||
|
||||
private val activityReference: WeakReference<AccountActivity> = WeakReference(context)
|
||||
|
||||
override fun doInBackground(vararg url: String?): String? {
|
||||
@ -739,4 +741,3 @@ class AccountActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -33,10 +33,10 @@ import java.util.*
|
||||
import kotlin.concurrent.schedule
|
||||
import kotlin.math.roundToInt
|
||||
|
||||
private const val TAG = "Baresip Service"
|
||||
|
||||
class BaresipService: Service() {
|
||||
|
||||
private val TAG = "Baresip Service"
|
||||
|
||||
internal lateinit var intent: Intent
|
||||
internal lateinit var am: AudioManager
|
||||
internal lateinit var rt: Ringtone
|
||||
|
||||
@ -13,10 +13,10 @@ import androidx.core.app.NotificationCompat
|
||||
|
||||
import java.nio.charset.StandardCharsets
|
||||
|
||||
const val START_NOTIFICATION_IN = 105
|
||||
|
||||
class BootCompletedReceiver : BroadcastReceiver() {
|
||||
|
||||
private val START_NOTIFICATION_IN = 105
|
||||
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
|
||||
Log.i("Baresip", "BootCompletedReceiver received intent ${intent.action}")
|
||||
|
||||
@ -13,11 +13,11 @@ import android.widget.AdapterView
|
||||
import androidx.appcompat.app.AppCompatDelegate
|
||||
import com.tutpro.baresip.databinding.ActivityConfigBinding
|
||||
|
||||
private const val READ_CERT_PERMISSION_CODE = 1
|
||||
private const val READ_CA_PERMISSION_CODE = 2
|
||||
|
||||
class ConfigActivity : AppCompatActivity() {
|
||||
|
||||
private val READ_CERT_PERMISSION_CODE = 1
|
||||
private val READ_CA_PERMISSION_CODE = 2
|
||||
|
||||
private lateinit var binding: ActivityConfigBinding
|
||||
private lateinit var autoStart: CheckBox
|
||||
private lateinit var listenAddr: EditText
|
||||
|
||||
@ -28,10 +28,10 @@ import com.tutpro.baresip.databinding.ActivityContactBinding
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.File
|
||||
|
||||
private const val READ_REQUEST_CODE = 42
|
||||
|
||||
class ContactActivity : AppCompatActivity() {
|
||||
|
||||
private val READ_REQUEST_CODE = 42
|
||||
|
||||
private lateinit var binding: ActivityContactBinding
|
||||
private lateinit var textAvatarView: TextView
|
||||
private lateinit var cardAvatarView: CardView
|
||||
|
||||
Reference in New Issue
Block a user