Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 2974caa2 authored by gokul swaminathan's avatar gokul swaminathan Committed by GitHub
Browse files

Merge pull request #104 from Fs00/ripple

Fix bottom bar colors and ripple (this time for real)
parents d5d05e7a 8f11c623
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ import com.github.barteksc.pdfviewer.util.Constants;
import com.github.barteksc.pdfviewer.util.FitPolicy;
import com.gsnathan.pdfviewer.databinding.ActivityMainBinding;
import com.gsnathan.pdfviewer.databinding.PasswordDialogBinding;
import com.jaredrummler.cyanea.Cyanea;
import com.jaredrummler.cyanea.app.CyaneaAppCompatActivity;
import com.jaredrummler.cyanea.prefs.CyaneaSettingsActivity;
import com.shockwave.pdfium.PdfDocument;
@@ -127,6 +128,13 @@ public class MainActivity extends CyaneaAppCompatActivity {
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        // Workaround for android:background XML attribute not being applied on all devices
        viewBinding.bottomNavigation.setBackgroundColor(Cyanea.getInstance().getPrimary());
    }

    private void onFirstInstall() {
        boolean isFirstRun = prefManager.getBoolean("FIRSTINSTALL", true);
        if (isFirstRun) {
+0 −1
Original line number Diff line number Diff line
@@ -51,7 +51,6 @@
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        app:itemBackground="@color/cyanea_primary_reference"
        android:minHeight="?android:attr/actionBarSize"
        app:itemIconTint="?menuIconColor"
        app:itemTextColor="?menuIconColor"