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

Commit 522bd382 authored by Fs00's avatar Fs00
Browse files

Group all field declarations together

parent 418c9ab8
Loading
Loading
Loading
Loading
+11 −12
Original line number Diff line number Diff line
@@ -85,6 +85,9 @@ public class MainActivity extends CyaneaAppCompatActivity {
    private Uri uri;
    private int pageNumber = 0;
    private String pdfPassword;
    private String pdfFileName = "";

    private byte[] downloadedPdfFileContent;

    private boolean isBottomNavigationHidden = false;

@@ -100,6 +103,14 @@ public class MainActivity extends CyaneaAppCompatActivity {
        this::saveDownloadedFileAfterPermissionRequest
    );

    private final ActivityResultLauncher<Intent> settingsLauncher = registerForActivityResult(
        new StartActivityForResult(),
        result -> {
            if (uri != null)
                displayFromUri(uri);
        }
    );

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
@@ -183,18 +194,6 @@ public class MainActivity extends CyaneaAppCompatActivity {
        uri = intentUri;
    }

    private String pdfFileName = "";

    private byte[] downloadedPdfFileContent;

    private final ActivityResultLauncher<Intent> settingsLauncher = registerForActivityResult(
            new StartActivityForResult(),
            result -> {
                if (uri != null)
                    displayFromUri(uri);
            }
    );

    void shareFile() {
        startActivity(Utils.emailIntent(pdfFileName, "", getResources().getString(R.string.share), uri));
    }