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

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

added contributors

parent 714327f0
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -37,8 +37,8 @@ android {
        applicationId "com.gsnathan.pdfviewer"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 15
        versionName "2.4"
        versionCode 16
        versionName "2.5"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true

@@ -105,4 +105,7 @@ dependencies {

    //Theme Engine
    implementation 'com.jaredrummler:cyanea:1.0.0'

    //Physics Layout
    implementation 'com.github.Jawnnypoo:PhysicsLayout:2.1.0'
}
+28 −9
Original line number Diff line number Diff line
@@ -12,39 +12,44 @@
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.Cyanea.Light.DarkActionBar">
        <activity android:name="MainActivity_"
        <activity
            android:name=".MainActivity_"
            android:theme="@style/Theme.Cyanea.Light.DarkActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:host="*" />
                <data android:scheme="smb" />
                <data android:scheme="http" />
                <data android:scheme="https" />
                <data android:pathPattern=".*\\.pdf" />
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:host="*" />
                <data android:scheme="smb" />
                <data android:scheme="http" />
                <data android:scheme="https" />
                <data android:mimeType="application/pdf" />
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:host="*" />
                <data android:scheme="file" />
                <data android:scheme="content" />
@@ -52,11 +57,12 @@
                <data android:pathPattern=".*\\..*\\.pdf" />
                <data android:pathPattern=".*\\..*\\..*\\.pdf" />
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:host="*" />
                <data android:scheme="file" />
                <data android:scheme="content" />
@@ -68,7 +74,7 @@
        <activity
            android:name=".AboutActivity"
            android:label="About"
            android:parentActivityName="MainActivity_"
            android:parentActivityName=".MainActivity_"
            android:theme="@style/Theme.Cyanea.Light.NoActionBar">

            <!-- The meta-data tag is required if you support API level 15 and lower -->
@@ -78,12 +84,25 @@

        </activity>

        <activity android:name=".MainIntroActivity"


        <activity
            android:name=".MainIntroActivity"
            android:label="@string/intro" />

        <!-- Privacy Policy -->
        <!-- Contr -->
        <activity
            android:name=".ContributeActivity"
            android:label="Contributors"
            android:parentActivityName=".MainActivity_"
            android:theme="@style/Theme.Cyanea.Light.NoActionBar">

            <!-- The meta-data tag is required if you support API level 15 and lower -->
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="MainActivity_" />
        </activity>

        <!-- License Page -->
    </application>

</manifest>
 No newline at end of file
+6 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

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

import com.franmontiel.attributionpresenter.AttributionPresenter;
@@ -38,6 +39,7 @@ import com.franmontiel.attributionpresenter.entities.License;
import com.jaredrummler.cyanea.app.CyaneaAppCompatActivity;
import com.jaredrummler.cyanea.prefs.CyaneaSettingsActivity;
import com.jaredrummler.cyanea.prefs.CyaneaThemePickerActivity;
import com.jawnnypoo.physicslayout.PhysicsLinearLayout;

public class AboutActivity extends CyaneaAppCompatActivity {

@@ -84,6 +86,10 @@ public class AboutActivity extends CyaneaAppCompatActivity {
        log.show(getSupportFragmentManager(), "Log Fragment");
    }

    public void showContributors(View v){
        startActivity(Utils.navIntent(getApplicationContext(), ContributeActivity.class));
    }

    public void showPrivacy(View v) {
        startActivity(Utils.linkIntent("https://github.com/JavaCafe01/PdfViewer/blob/master/privacy_policy.md"));
    }
+22 −0
Original line number Diff line number Diff line
package com.gsnathan.pdfviewer;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class ContributeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);

        setContentView(R.layout.activity_contribute);
    }
}
Loading