Skip to content

Commit

Permalink
Expression should use clarifying parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-yazdanmanesh committed Mar 20, 2024
1 parent 0515806 commit 1dcd247
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class MainActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedList
binding.fab.setOnClickListener {
if (mainViewModel.isRunning.value == true) {
Utils.stopVService(this)
} else if (settingsStorage?.decodeString(AppConfig.PREF_MODE) ?: "VPN" == "VPN") {
} else if ((settingsStorage?.decodeString(AppConfig.PREF_MODE) ?: "VPN") == "VPN") {
val intent = VpnService.prepare(this)
if (intent == null) {
startV2Ray()
Expand Down

0 comments on commit 1dcd247

Please sign in to comment.