Skip to content

Commit

Permalink
fix "You need to use a Theme.AppCompat theme (or descendant) with thi…
Browse files Browse the repository at this point in the history
…s activity." error
  • Loading branch information
xo0ps committed Apr 14, 2023
1 parent f653ffd commit 16f37e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<!-- Main activity -->
<activity
android:name=".LoginActivity"
android:label="@string/app_name_short"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden"
android:exported="true">
Expand All @@ -54,7 +53,6 @@

<activity
android:name=".TokenActivity"
android:label="@string/app_name_short"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" >
</activity>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.VisibleForTesting;
import androidx.appcompat.app.AppCompatActivity;

import net.openid.appauth.AuthorizationException.AuthorizationRequestErrors;
import net.openid.appauth.internal.Logger;
Expand Down Expand Up @@ -124,7 +123,7 @@
* {@link AuthorizationException} as appropriate.
* The AuthorizationManagementActivity finishes, removing itself from the back stack.
*/
public class AuthorizationManagementActivity extends AppCompatActivity {
public class AuthorizationManagementActivity extends Activity {

@VisibleForTesting
static final String KEY_AUTH_INTENT = "authIntent";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

package net.openid.appauth;

import android.app.Activity;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;

/**
* Activity that receives the redirect Uri sent by the OpenID endpoint. It forwards the data
Expand All @@ -42,7 +42,7 @@
* </intent-filter>
* ```
*/
public class RedirectUriReceiverActivity extends AppCompatActivity {
public class RedirectUriReceiverActivity extends Activity {

@Override
public void onCreate(Bundle savedInstanceBundle) {
Expand Down

0 comments on commit 16f37e2

Please sign in to comment.