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