Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: errhammr's JavaDoc project #1

Draft
wants to merge 1 commit into
base: errhammr-documentation
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/main/java/de/pixart/messenger/ui/StartUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,28 @@
import pub.devrel.easypermissions.AfterPermissionGranted;
import pub.devrel.easypermissions.EasyPermissions;

/**
* This class is the entry point on startup. It checks whether or not the
* required permissions have been granted. The user will be asked to grant
* missing permissions.
*/
public class StartUI extends AppCompatActivity
implements EasyPermissions.PermissionCallbacks {

/**
* Parameter {@code requestCode} for method
* {@code EasyPermissions#requestPermissions()}.
* @see pub.devrel.easypermissions.EasyPermissions#requestPermissions(Activity, String, int, String...) EasyPermissions#requestPermissions()
*/
private static final int NeededPermissions = 1000;

/**
* This array contains the essential permissions without which the app
* cannot operate.
* Parameter {@code perms} for method
* {@code EasyPermissions#requestPermissions()}.
* @see pub.devrel.easypermissions.EasyPermissions#requestPermissions(Activity, String, int, String...) EasyPermissions#requestPermissions()
*/
String[] perms = {Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE,
};
Expand Down