From 04a8dc708dded496051c3eb470676b6f9677a5bb Mon Sep 17 00:00:00 2001 From: UjjwalDeep <68703963+UjjwalDeep@users.noreply.github.com> Date: Thu, 1 Oct 2020 07:46:45 +0530 Subject: [PATCH 1/2] Update build.gradle --- samples/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/app/build.gradle b/samples/app/build.gradle index 29b1bda..7faa84a 100644 --- a/samples/app/build.gradle +++ b/samples/app/build.gradle @@ -81,5 +81,5 @@ android { dependencies { compile project(':digits') - compile 'com.android.support:appcompat-v7:21.0.3' + compile 'androidx.appcompat:appcompat:1.2.0' } From 729424a3d9728dd500c45178dcc71f13fd0c3a86 Mon Sep 17 00:00:00 2001 From: UjjwalDeep <68703963+UjjwalDeep@users.noreply.github.com> Date: Thu, 1 Oct 2020 07:53:41 +0530 Subject: [PATCH 2/2] Update DigitsMainActivity.java --- .../com/example/app/digits/DigitsMainActivity.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/app/src/main/java/com/example/app/digits/DigitsMainActivity.java b/samples/app/src/main/java/com/example/app/digits/DigitsMainActivity.java index 6c85d30..c082517 100644 --- a/samples/app/src/main/java/com/example/app/digits/DigitsMainActivity.java +++ b/samples/app/src/main/java/com/example/app/digits/DigitsMainActivity.java @@ -49,10 +49,10 @@ public class DigitsMainActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.digits_activity_main); - final TextView userIdView = (TextView) findViewById(R.id.user_id); - final TextView tokenView = (TextView) findViewById(R.id.token); - final TextView secretView = (TextView) findViewById(R.id.secret); - clearSessionButton = (Button) findViewById(R.id.clear_session_button); + final TextView userIdView = findViewById(R.id.user_id); + final TextView tokenView = findViewById(R.id.token); + final TextView secretView = findViewById(R.id.secret); + clearSessionButton = findViewById(R.id.clear_session_button); clearSessionButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { @@ -87,7 +87,7 @@ public void failure(DigitsException error) { digitsAuthButton.setCallback(callback); digitsAuthButton.setAuthTheme(R.style.LightTheme); - verifyCredentialsButton = (Button) findViewById(R.id.verify_credentials_button); + verifyCredentialsButton = findViewById(R.id.verify_credentials_button); verifyCredentialsButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) {