Copy feature settings from the current profile to the new profile.
And fix #432.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user