Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Fixed crashing on about page
Browse files Browse the repository at this point in the history
  • Loading branch information
Rminsh committed May 26, 2022
1 parent 372be78 commit 0c5b94b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ dependencies {

//Kotlin libraries
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21'

//RTL ViewPager
implementation 'com.duolingo.open:rtl-viewpager:2.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
import com.danielstone.materialaboutlibrary.model.MaterialAboutCard;
import com.danielstone.materialaboutlibrary.model.MaterialAboutList;

import java.util.Objects;

import io.github.inflationx.calligraphy3.CalligraphyConfig;
import io.github.inflationx.calligraphy3.CalligraphyInterceptor;
import io.github.inflationx.viewpump.ViewPump;
Expand All @@ -62,7 +60,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
getWindow().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL);
Objects.requireNonNull(getSupportActionBar()).setTitle(R.string.about);
}

@NonNull
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
<item name="android:layout_gravity">top|center_horizontal</item>
</style>

<style name="AppTheme.MaterialAboutActivity" parent="Theme.MaterialComponents.NoActionBar">
<style name="AppTheme.MaterialAboutActivity" parent="Theme.MaterialComponents">
<item name="colorSurface">@color/colorPrimary</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
Expand Down

0 comments on commit 0c5b94b

Please sign in to comment.