Copy feature settings from the current profile to the new profile.

And fix #432.
This commit is contained in:
Mygod
2015-11-18 21:40:33 +08:00
parent 95952f0fec
commit 14414c644d
4 changed files with 20 additions and 13 deletions
@@ -153,7 +153,7 @@ class ProfileManagerActivity extends AppCompatActivity with OnMenuItemClickListe
override def onActivityResult(requestCode: Int, resultCode: Int, data: Intent) {
val scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, data)
if (scanResult != null) Parser.parse(scanResult.getContents) match {
case Some(profile) => ShadowsocksApplication.profileManager.createOrUpdateProfile(profile)
case Some(profile) => ShadowsocksApplication.profileManager.createProfile(profile)
case _ => // ignore
}
}