Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_apps_PdfViewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid
platform_packages_apps_PdfViewer
Commits
ee360542
Commit
ee360542
authored
2 years ago
by
Daniel Micay
Browse files
Options
Downloads
Patches
Plain Diff
minor cleanup
parent
e967af23
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/app/grapheneos/pdfviewer/Utils.java
+1
-2
1 addition, 2 deletions
app/src/main/java/app/grapheneos/pdfviewer/Utils.java
with
1 addition
and
2 deletions
app/src/main/java/app/grapheneos/pdfviewer/Utils.java
+
1
−
2
View file @
ee360542
...
...
@@ -39,14 +39,13 @@ public class Utils {
final
Calendar
calendar
=
Calendar
.
getInstance
();
final
int
currentYear
=
calendar
.
get
(
Calendar
.
YEAR
);
int
year
;
// Year is required
String
field
=
date
.
substring
(
position
+=
2
,
6
);
if
(!
TextUtils
.
isDigitsOnly
(
field
))
{
throw
new
ParseException
(
"Invalid year"
,
position
);
}
year
=
Integer
.
parseInt
(
field
);
int
year
=
Integer
.
parseInt
(
field
);
if
(
year
>
currentYear
)
{
year
=
currentYear
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment