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

Commit aa9ed1f2 authored by Gokul Swami's avatar Gokul Swami
Browse files

Bug Fixes, SDK Updates

Fixed bug that caused app to crash when pressing appbar back button on
about page, and updated target sdk to 29.
parent 6ecc6f24
Loading
Loading
Loading
Loading
−7 B (201 KiB)

File changed.

No diff preview for this file type.

+4 −4
Original line number Diff line number Diff line
@@ -32,13 +32,13 @@ android {
    }

    buildToolsVersion "28.0.3"
    compileSdkVersion 28
    compileSdkVersion 29
    defaultConfig {
        applicationId "com.gsnathan.pdfviewer"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 21
        versionName "3.0"
        targetSdkVersion 29
        versionCode 22
        versionName "3.1"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true

+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.gsnathan.pdfviewer">

    <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

    <application
+14 −0
Original line number Diff line number Diff line
@@ -24,10 +24,13 @@

package com.gsnathan.pdfviewer;

import android.os.Binder;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;

@@ -53,7 +56,9 @@ public class AboutActivity extends CyaneaAppCompatActivity {

    private void setUpToolBar() {
        setSupportActionBar(toolbar);
        final long token = Binder.clearCallingIdentity();
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    }

    private void initUI() {
@@ -214,4 +219,13 @@ public class AboutActivity extends CyaneaAppCompatActivity {
    public void navToSourceCode(View v) {
        startActivity(Utils.linkIntent("https://github.com/JavaCafe01/PdfViewer"));
    }
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        if (item.getItemId() == android.R.id.home) {
            onBackPressed();
            return true;
        }
        return false;
    }

}
 No newline at end of file
Loading