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' } 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) {