Fix crash when no profile is selected
This commit is contained in:
@@ -33,8 +33,8 @@ class TransproxyService : Service(), LocalDnsService.Interface {
|
||||
}
|
||||
|
||||
override val tag: String get() = "ShadowsocksTransproxyService"
|
||||
override fun createNotification(): ServiceNotification =
|
||||
ServiceNotification(this, data.profile!!.formattedName, "service-transproxy", true)
|
||||
override fun createNotification(profileName: String): ServiceNotification =
|
||||
ServiceNotification(this, profileName, "service-transproxy", true)
|
||||
|
||||
override fun onBind(intent: Intent): IBinder? = super.onBind(intent)
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int =
|
||||
|
||||
Reference in New Issue
Block a user