ui: use kotlin class instead of java class for tag
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
870b2bf36d
commit
6a7396bc1d
@ -88,7 +88,7 @@ class Application : android.app.Application(), OnSharedPreferenceChangeListener
|
||||
|
||||
companion object {
|
||||
val USER_AGENT = String.format(Locale.ENGLISH, "WireGuard/%s (Android %d; %s; %s; %s %s; %s)", BuildConfig.VERSION_NAME, Build.VERSION.SDK_INT, if (Build.SUPPORTED_ABIS.isNotEmpty()) Build.SUPPORTED_ABIS[0] else "unknown ABI", Build.BOARD, Build.MANUFACTURER, Build.MODEL, Build.FINGERPRINT)
|
||||
private val TAG = "WireGuard/" + Application::class.java.simpleName
|
||||
private val TAG = "WireGuard/${Application::class.simpleName!!}"
|
||||
private lateinit var weakSelf: WeakReference<Application>
|
||||
|
||||
@JvmStatic
|
||||
|
@ -29,6 +29,6 @@ class BootShutdownReceiver : BroadcastReceiver() {
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val TAG = "WireGuard/" + BootShutdownReceiver::class.java.simpleName
|
||||
private val TAG = "WireGuard/${BootShutdownReceiver::class.simpleName!!}"
|
||||
}
|
||||
}
|
||||
|
@ -153,6 +153,6 @@ class QuickTileService : TileService() {
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val TAG = "WireGuard/" + QuickTileService::class.java.simpleName
|
||||
private val TAG = "WireGuard/${QuickTileService::class.simpleName!!}"
|
||||
}
|
||||
}
|
||||
|
@ -39,6 +39,6 @@ class TunnelToggleActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val TAG = "WireGuard/" + TunnelToggleActivity::class.java.simpleName
|
||||
private val TAG = "WireGuard/${TunnelToggleActivity::class.simpleName!!}"
|
||||
}
|
||||
}
|
||||
|
@ -77,6 +77,6 @@ class FileConfigStore(private val context: Context) : ConfigStore {
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val TAG = "WireGuard/" + FileConfigStore::class.java.simpleName
|
||||
private val TAG = "WireGuard/${FileConfigStore::class.simpleName!!}"
|
||||
}
|
||||
}
|
||||
|
@ -103,6 +103,6 @@ abstract class BaseFragment : Fragment(), OnSelectedTunnelChangedListener {
|
||||
|
||||
companion object {
|
||||
private const val REQUEST_CODE_VPN_PERMISSION = 23491
|
||||
private val TAG = "WireGuard/" + BaseFragment::class.java.simpleName
|
||||
private val TAG = "WireGuard/${BaseFragment::class.simpleName!!}"
|
||||
}
|
||||
}
|
||||
|
@ -229,6 +229,6 @@ class TunnelEditorFragment : BaseFragment(), AppExclusionListener {
|
||||
companion object {
|
||||
private const val KEY_LOCAL_CONFIG = "local_config"
|
||||
private const val KEY_ORIGINAL_NAME = "original_name"
|
||||
private val TAG = "WireGuard/" + TunnelEditorFragment::class.java.simpleName
|
||||
private val TAG = "WireGuard/${TunnelEditorFragment::class.simpleName!!}"
|
||||
}
|
||||
}
|
||||
|
@ -397,6 +397,6 @@ class TunnelListFragment : BaseFragment() {
|
||||
const val REQUEST_IMPORT = 1
|
||||
private const val REQUEST_TARGET_FRAGMENT = 2
|
||||
private const val CHECKED_ITEMS = "CHECKED_ITEMS"
|
||||
private val TAG = "WireGuard/" + TunnelListFragment::class.java.simpleName
|
||||
private val TAG = "WireGuard/${TunnelListFragment::class.simpleName!!}"
|
||||
}
|
||||
}
|
||||
|
@ -91,6 +91,6 @@ class ZipExporterPreference(context: Context, attrs: AttributeSet?) : Preference
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val TAG = "WireGuard/" + ZipExporterPreference::class.java.simpleName
|
||||
private val TAG = "WireGuard/${ZipExporterPreference::class.simpleName!!}"
|
||||
}
|
||||
}
|
||||
|
@ -22,6 +22,6 @@ enum class ExceptionLoggers(private val priority: Int) : BiConsumer<Any?, Throwa
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val TAG = "WireGuard/" + ExceptionLoggers::class.java.simpleName
|
||||
private val TAG = "WireGuard/${ExceptionLoggers::class.simpleName!!}"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user