Create default profile when creating new profiles

This commit is contained in:
Mygod
2016-12-24 02:18:08 +08:00
parent 0fe62e256b
commit 8eed34dc9b
2 changed files with 2 additions and 12 deletions
@@ -37,7 +37,7 @@ class Profile {
var name: String = ""
@DatabaseField
var host: String = ""
var host: String = "198.199.101.152"
// hopefully hashCode = mHandle doesn't change, currently this is true from KitKat to Nougat
@DatabaseField
@@ -47,7 +47,7 @@ class Profile {
var remotePort: Int = 8388
@DatabaseField
var password: String = ""
var password: String = "u1rRWTssNv0p"
@DatabaseField
var method: String = "aes-256-cfb"
@@ -122,14 +122,4 @@ class ProfileManager(dbHelper: DBHelper) {
None
}
}
def createDefault(): Profile = {
val profile = new Profile {
name = "Default"
host = "198.199.101.152"
remotePort = 443
password = "u1rRWTssNv0p"
}
createProfile(profile)
}
}