Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.AppCompatButton
import androidx.appcompat.widget.Toolbar
import androidx.core.content.ContextCompat
import com.automattic.simplenote.BuildConfig
import com.automattic.simplenote.R
import com.automattic.simplenote.ThemedAppCompatActivity
import com.automattic.simplenote.utils.AccountNetworkUtils
Expand Down Expand Up @@ -112,6 +113,13 @@ open class NewCredentialsActivity : ThemedAppCompatActivity() {
this.isLogin = this.intent.getBooleanExtra("EXTRA_IS_LOGIN", false)
}

if (BuildConfig.DEBUG && isLogin) {
inputEmail = findViewById<View>(R.id.input_email) as TextInputLayout
inputEmail?.editText?.setText(BuildConfig.LOGIN_EMAIL)
inputPassword = findViewById<View>(R.id.input_password) as TextInputLayout
inputPassword?.editText?.setText(BuildConfig.LOGIN_PASSWORD)
}

val toolbar = findViewById<View>(R.id.toolbar) as Toolbar
toolbar.setTitle(if (this.isLogin) R.string.simperium_button_login else R.string.simperium_button_signup)
this.setSupportActionBar(toolbar)
Expand Down