diff --git a/app/src/main/java/com/plaid/linksample/MainActivity.kt b/app/src/main/java/com/plaid/linksample/MainActivity.kt index bffa38c..e7c8a5c 100644 --- a/app/src/main/java/com/plaid/linksample/MainActivity.kt +++ b/app/src/main/java/com/plaid/linksample/MainActivity.kt @@ -51,7 +51,7 @@ class MainActivity : AppCompatActivity() { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) result = findViewById(R.id.result) - tokenResult = findViewById(R.id.public_token_result) + tokenResult = findViewById(R.id.public_token_result) val button = findViewById(R.id.open_link) button.setOnClickListener { @@ -76,7 +76,12 @@ class MainActivity : AppCompatActivity() { } private fun onLinkTokenSuccess(linkToken: String) { - Plaid.create(this.application, LinkTokenConfiguration.Builder().token(linkToken).build()) + Plaid.create( + this.application, + LinkTokenConfiguration.Builder() + .token(linkToken) + .build() + ) .open(this) } diff --git a/app/src/main/java/com/plaid/linksample/MainActivityJava.java b/app/src/main/java/com/plaid/linksample/MainActivityJava.java index 137c352..fb95349 100644 --- a/app/src/main/java/com/plaid/linksample/MainActivityJava.java +++ b/app/src/main/java/com/plaid/linksample/MainActivityJava.java @@ -19,14 +19,11 @@ import com.plaid.link.Plaid; import com.plaid.link.configuration.LinkTokenConfiguration; -import com.plaid.link.configuration.PlaidProduct; import com.plaid.link.result.LinkResultHandler; import com.plaid.linksample.network.LinkTokenRequester; import kotlin.Unit; -import java.util.ArrayList; - public class MainActivityJava extends AppCompatActivity { @@ -89,14 +86,16 @@ private void setOptionalEventListener() { * parameter reference */ private void openLink() { - ArrayList products = new ArrayList<>(); - products.add(PlaidProduct.TRANSACTIONS); LinkTokenRequester.INSTANCE.getToken() .subscribe(this::onLinkTokenSuccess, this::onLinkTokenError); } private void onLinkTokenSuccess(String token) { - Plaid.create(getApplication(), new LinkTokenConfiguration.Builder().token(token).build()) + Plaid.create( + getApplication(), + new LinkTokenConfiguration.Builder() + .token(token) + .build()) .open(this); }