Commit 6d78b496 authored by Max Lv's avatar Max Lv

Fix a typo

parent df09d391
...@@ -161,10 +161,10 @@ class AppManager extends AppCompatActivity with OnMenuItemClickListener { ...@@ -161,10 +161,10 @@ class AppManager extends AppCompatActivity with OnMenuItemClickListener {
app.profileManager.getAllProfiles match { app.profileManager.getAllProfiles match {
case Some(profiles) => case Some(profiles) =>
val proxiedAppString = prefs.getString(Key.proxied, "") val proxiedAppString = prefs.getString(Key.proxied, "")
profiles.foreach(profile => profiles.foreach(profile => {
profile.individual = proxiedAppString profile.individual = proxiedAppString
app.profileManager.updateProfile(profile) app.profileManager.updateProfile(profile)
) })
Toast.makeText(this, R.string.action_apply_all, Toast.LENGTH_SHORT).show Toast.makeText(this, R.string.action_apply_all, Toast.LENGTH_SHORT).show
case _ => Toast.makeText(this, R.string.action_export_err, Toast.LENGTH_SHORT).show case _ => Toast.makeText(this, R.string.action_export_err, Toast.LENGTH_SHORT).show
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment