Full Code of nproth/pin for AI

master aa0a70144510 cached
120 files
173.8 KB
47.2k tokens
111 symbols
1 requests
Download .txt
Showing preview only (205K chars total). Download the full file or copy to clipboard to get everything.
Repository: nproth/pin
Branch: master
Commit: aa0a70144510
Files: 120
Total size: 173.8 KB

Directory structure:
gitextract_9paejymc/

├── .gitignore
├── CHANGELOG.md
├── LICENSE
├── README.md
├── app/
│   ├── .gitignore
│   ├── build.gradle
│   ├── proguard-rules.pro
│   └── src/
│       ├── debug/
│       │   └── res/
│       │       ├── drawable/
│       │       │   └── ic_launcher_foreground.xml
│       │       ├── mipmap-anydpi-v26/
│       │       │   ├── ic_launcher.xml
│       │       │   └── ic_launcher_round.xml
│       │       └── values/
│       │           └── ic_launcher_background.xml
│       └── main/
│           ├── AndroidManifest.xml
│           ├── java/
│           │   └── de/
│           │       └── nproth/
│           │           └── pin/
│           │               ├── NoteActivity.java
│           │               ├── NotesProvider.java
│           │               ├── PinTileService.java
│           │               ├── RotaryControlView.java
│           │               ├── pinboard/
│           │               │   ├── Pinboard.java
│           │               │   └── PinboardService.java
│           │               ├── receiver/
│           │               │   ├── AlarmReceiver.java
│           │               │   ├── BootReceiver.java
│           │               │   ├── DeleteNoteReceiver.java
│           │               │   ├── NotificationJobService.java
│           │               │   └── SnoozeNoteReceiver.java
│           │               └── util/
│           │                   ├── LifecycleWatcher.java
│           │                   └── Timespan.java
│           └── res/
│               ├── anim/
│               │   ├── activity_enter.xml
│               │   ├── activity_exit.xml
│               │   ├── anim_enter_input_field.xml
│               │   ├── anim_enter_note_save_button.xml
│               │   ├── anim_enter_snooze_duration_button.xml
│               │   ├── anim_exit_input_field.xml
│               │   ├── anim_exit_note_save_button.xml
│               │   ├── anim_exit_snooze_duration_button.xml
│               │   ├── anim_input_field_empty.xml
│               │   ├── anim_input_field_pin.xml
│               │   ├── anim_pop_in.xml
│               │   ├── anim_pop_out.xml
│               │   ├── anim_rotary_control.xml
│               │   └── anim_rotary_set.xml
│               ├── animator/
│               │   └── state_anim_button.xml
│               ├── drawable/
│               │   ├── background_button_actionbutton.xml
│               │   ├── background_button_actionbutton_default.xml
│               │   ├── background_button_actionbutton_pressed.xml
│               │   ├── background_button_actionbutton_selected.xml
│               │   ├── background_button_light.xml
│               │   ├── background_rotary.xml
│               │   ├── background_textfield.xml
│               │   ├── bar.xml
│               │   ├── bar2.xml
│               │   ├── ic_launcher_background.xml
│               │   ├── ic_launcher_foreground.xml
│               │   ├── ic_pin_icon_black.xml
│               │   ├── ic_pin_icon_white.xml
│               │   ├── ic_pin_notification.xml
│               │   ├── ic_pin_statusbar.xml
│               │   ├── ic_timespan.xml
│               │   ├── ic_warn.xml
│               │   ├── scale.xml
│               │   └── scale2.xml
│               ├── layout/
│               │   └── activity_note.xml
│               ├── mipmap-anydpi-v26/
│               │   ├── ic_launcher.xml
│               │   └── ic_launcher_round.xml
│               ├── values/
│               │   ├── attrs_rotary_control_view.xml
│               │   ├── colors.xml
│               │   ├── ic_launcher_background.xml
│               │   ├── strings.xml
│               │   ├── styles.xml
│               │   └── values.xml
│               ├── values-de/
│               │   └── strings.xml
│               ├── values-it/
│               │   └── strings.xml
│               ├── values-ja/
│               │   └── strings.xml
│               ├── values-pl/
│               │   └── strings.xml
│               ├── values-ru/
│               │   └── strings.xml
│               ├── values-sv/
│               │   └── strings.xml
│               └── values-v21/
│                   └── styles.xml
├── build.gradle
├── fastlane/
│   └── metadata/
│       └── android/
│           ├── de/
│           │   ├── changelogs/
│           │   │   ├── 10.txt
│           │   │   ├── 11.txt
│           │   │   ├── 12.txt
│           │   │   ├── 13.txt
│           │   │   ├── 16.txt
│           │   │   ├── 17.txt
│           │   │   ├── 3.txt
│           │   │   ├── 4.txt
│           │   │   ├── 5.txt
│           │   │   ├── 6.txt
│           │   │   ├── 8.txt
│           │   │   └── 9.txt
│           │   ├── full_description.txt
│           │   └── short_description.txt
│           ├── en-US/
│           │   ├── changelogs/
│           │   │   ├── 10.txt
│           │   │   ├── 11.txt
│           │   │   ├── 12.txt
│           │   │   ├── 13.txt
│           │   │   ├── 14.txt
│           │   │   ├── 15.txt
│           │   │   ├── 16.txt
│           │   │   ├── 17.txt
│           │   │   ├── 3.txt
│           │   │   ├── 4.txt
│           │   │   ├── 5.txt
│           │   │   ├── 6.txt
│           │   │   ├── 7.txt
│           │   │   ├── 8.txt
│           │   │   └── 9.txt
│           │   ├── full_description.txt
│           │   ├── short_description.txt
│           │   └── title.txt
│           ├── it/
│           │   ├── full_description.txt
│           │   └── short_description.txt
│           ├── ja/
│           │   ├── full_description.txt
│           │   └── short_description.txt
│           └── pl/
│               ├── full_description.txt
│               └── short_description.txt
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
└── settings.gradle

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
*.iml
.gradle
/local.properties
/.idea
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
.DS_Store
/build
/captures
.externalNativeBuild


================================================
FILE: CHANGELOG.md
================================================
# CHANGELOG

## v1.2.7
- Add Italian translation
- Fix text selection color

## v1.2.6
- Add Quick Settings Tile that opens p!n
- Add Swedish translation
- Automatically open keyboard when p!n launches

## v1.2.5
- Fix bug that causes snoozing a note to unlock all pins
- Autocapitalize sentences in note input field

## v1.2.4
- Add 3 and 12 hours as snooze durations

## v1.2.3
- Fix snooze duration not updating

## v1.2.2
- Fix app crashing in background on startup

## v1.2.1
- Add small pin snooze duration when slider is set to zero - thanks to _ewired_
- Add button to pin notes in background and immediately snooze them

## v1.2
- Implement RotaryControlView and integrate it into NoteActivity: Allow user to change pin sleep duration via slider
- Encapsulate Notification handling in Service
- Move classes to subpackages
- Add screenshots to app description in F-Droid

## v1.1
- Add debug build configuration and make it install-able along release
- Show all hidden notes when user long presses 'timer'-button
- Add option to mark notifications as 'ongoing' and fix them to the notification drawer; toggled by user long pressing 'pin'-button

## v1.0.1
- Remove dialog that warns the user when the app did not receive 'boot completed' broadcast

## v1.0
- Initial release


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: README.md
================================================
# ![App Icon](app/src/main/res/mipmap-mdpi/ic_launcher.png) p!n

A minimalistic note-taking app utilizing your phone's notification area:

* Take notes and save them as notifications
* Edit pinned notices
* Delete pins
* Hide notes for a specific period of time

The app was built with __Material Design__ in mind.

All notes are stored in the app's database and survive reboots.

<a href="https://f-droid.org/packages/de.nproth.pin/"><img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" height="75"></a>

## How to create a new pin

Start the app to create a new pin.

- Enter the text you want to display in the notification.

- There's a number in a semicircle  - that's the number of hours:minutes that
  the pin will wait for if snoozed. Tap it to change the time.
  
- The semicircle acts as a slider and adjusts the snooze time.

- Click the circular pin button to create your pin.

- Nb. the small clock icon on the right will create the pin and immediately
  snooze it.

## Pin notifications

When a pin is shown as a notification you can:

- tap **Done** - this will delete the pin.

- tap **Snooze** - this will make it go away for the configured time period.

- tap **Edit** - use this to change the snooze time or title of the pin.

## Show all pins

You can cause all pins - including the snoozed ones - to show as notifications
by *pressing and holding* the semicircular snooze time button on the main
interface.

## Locking pins

Pins are unlocked by default, that means that you can swipe the group
notification away which snoozes all pins at once.

This also happens if all notifications are cleared. To prevent this you can
*lock* your pins so that the group notification and the individual notes it
contains can't be swiped away.

## Troubleshooting

If your pins do not reappear directly after start-up, open the app because on some devices __p!n__ may not be able to start in background.
In this case try to enable 'Autostart' or disable some battery optimizations for this application.

A good resource for more information on this topic and solutions for various devices I have found [here](https://dontkillmyapp.com/).


================================================
FILE: app/.gitignore
================================================
/build


================================================
FILE: app/build.gradle
================================================
apply plugin: 'com.android.application'

android {
    compileSdkVersion 30
    defaultConfig {
        applicationId "de.nproth.pin"
        minSdkVersion 16
        targetSdkVersion 30
        versionCode 17
        versionName "1.2.13"
        testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
        resValue "string", "authority_provider_notes", applicationId + '.notes'
    }
    buildTypes {
        debug {
            applicationIdSuffix '.debug'
            resValue "string", "authority_provider_notes", defaultConfig.applicationId + '.debug.notes'
        }
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation 'androidx.appcompat:appcompat:1.3.1'
    implementation 'com.google.android.material:material:1.4.0'
}


================================================
FILE: app/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile


================================================
FILE: app/src/debug/res/drawable/ic_launcher_foreground.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="108dp"
        android:height="108dp"
        android:viewportWidth="14.816666"
        android:viewportHeight="14.816667">
  <path
      android:pathData="m5.0271,6.6146a0.5613,0.5613 0,0 0,0.7937 0l1.1906,1.1906 -0.3969,0.3969a0.5613,0.5613 0,0 0,0 0.7937l0.3969,-0.3969 0.3969,-0.3969 0.1984,-0.1984 1.7859,1.7859 0.3969,-0 0,-0.3969 -1.7859,-1.7859 0.1984,-0.1984 0.3969,-0.3969 0.3969,-0.3969a0.5613,0.5613 0,0 0,-0.7938 0l-0.3969,0.3969 -1.1906,-1.1906a0.5613,0.5613 0,0 0,0 -0.7937l-0.3969,0.3969 -0.7938,0.7937z"
      android:strokeAlpha="1"
      android:strokeWidth="16.87502289"
      android:fillColor="#ffffff"
      android:strokeColor="#00000000"
      android:fillAlpha="1"
      android:strokeLineCap="square"/>
</vector>


================================================
FILE: app/src/debug/res/mipmap-anydpi-v26/ic_launcher.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@color/ic_launcher_background"/>
    <foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

================================================
FILE: app/src/debug/res/mipmap-anydpi-v26/ic_launcher_round.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@color/ic_launcher_background"/>
    <foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

================================================
FILE: app/src/debug/res/values/ic_launcher_background.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="ic_launcher_background">#A60000</color>
</resources>

================================================
FILE: app/src/main/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="de.nproth.pin">

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />

    <queries>
        <intent>
            <!-- Allow custom text actions (like "search selected text") -->
            <action android:name="android.intent.action.PROCESS_TEXT" />
            <data android:mimeType="text/plain" />
        </intent>
    </queries>

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:installLocation="internalOnly"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <service
            android:name=".pinboard.PinboardService"
            android:enabled="true"
            android:exported="false"/>

        <activity
            android:name=".NoteActivity"
            android:excludeFromRecents="true"
            android:launchMode="singleInstance"
            android:noHistory="true"
            android:windowSoftInputMode="adjustResize"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

        <provider
            android:name=".NotesProvider"
            android:authorities="@string/authority_provider_notes"
            android:enabled="true"
            android:exported="false" />

        <receiver
            android:name=".receiver.DeleteNoteReceiver"
            android:enabled="true" />
        <receiver
            android:name=".receiver.SnoozeNoteReceiver"
            android:enabled="true" />
        <receiver
            android:name=".receiver.BootReceiver"
            android:enabled="true"
            android:exported="true">
            <intent-filter>
                <category android:name="android.intent.category.DEFAULT" />

                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
        <receiver
            android:name=".receiver.AlarmReceiver"
            android:enabled="true" />

        <service
            android:name=".receiver.NotificationJobService"
            android:enabled="true"
            android:permission="android.permission.BIND_JOB_SERVICE" />

        <service
            android:name=".PinTileService"
            android:label="@string/qstile_label"
            android:icon="@drawable/ic_pin_icon_white"
            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
            android:exported="true">
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE" />
            </intent-filter>
        </service>

    </application>

</manifest>

================================================
FILE: app/src/main/java/de/nproth/pin/NoteActivity.java
================================================
package de.nproth.pin;

import android.content.ComponentName;
import android.content.ContentValues;
import android.content.Intent;
import android.content.ServiceConnection;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import androidx.appcompat.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.inputmethod.EditorInfo;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;

import de.nproth.pin.pinboard.PinboardService;
import de.nproth.pin.util.Timespan;

/**
 * Only activity of this app. Allows the user to add or edit pins and set the snooze duration
 */
public class NoteActivity extends AppCompatActivity implements ServiceConnection {

    private EditText NoteInputField;
    private ImageButton SaveNoteButton;
    private Button SnoozeDurationButton;
    private RotaryControlView SnoozeDurationSlider;
    private ImageButton PinBackgroundButton;

    private Handler mAnimHandler;

    private Animation mEmptyPinAnimation;
    private Animation mPinAnimation;
    private Animation mRotaryAnimation;
    private Animation mRotarySetAnimation;
    private Animation mPopInAnimation;

    private int[] mDurations;
    private int[] mSteps;
    private int[] mZeroSnoozeDurations;
    private int mZeroSnoozeDur;

    private PinboardService.PinboardBinder mPinboard;

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

        overridePendingTransition(R.anim.activity_enter, R.anim.activity_exit);

        setContentView(R.layout.activity_note);

        NoteInputField = findViewById(R.id.note_input_field);
        SaveNoteButton = findViewById(R.id.note_save_button);
        SnoozeDurationButton = findViewById(R.id.snooze_duration_button);
        SnoozeDurationSlider = findViewById(R.id.snooze_duration_slider);

        PinBackgroundButton = findViewById(R.id.note_pin_background);

        mAnimHandler = new Handler(Looper.getMainLooper());
        mPinAnimation = AnimationUtils.loadAnimation(this, R.anim.anim_input_field_pin);

        mEmptyPinAnimation = AnimationUtils.loadAnimation(this, R.anim.anim_input_field_empty);

        mRotaryAnimation = AnimationUtils.loadAnimation(this, R.anim.anim_rotary_control);
        mRotarySetAnimation = AnimationUtils.loadAnimation(this, R.anim.anim_rotary_set);

        mPopInAnimation = AnimationUtils.loadAnimation(this, R.anim.anim_pop_in);


        mDurations = getResources().getIntArray(R.array.snooze_durations);
        mSteps = getResources().getIntArray(R.array.snooze_duration_steps);
        mZeroSnoozeDurations = getResources().getIntArray(R.array.zero_snooze_durations);

        prepareEditPin();

    }

    @Override
    public void onNewIntent(Intent i) {
        super.onNewIntent(i);
        setIntent(i);
        prepareEditPin();
    }

    @Override
    protected void onStart() {
        super.onStart();
        bindService(new Intent(this, PinboardService.class), this, BIND_AUTO_CREATE);
    }

    @Override
    protected void onStop() {
        super.onStop();
        unbindService(this);
    }

    @Override
    public void onServiceConnected(ComponentName name, IBinder service) {
        mPinboard = (PinboardService.PinboardBinder) service;

        /*****************************
         Initialize UI components here
         *****************************/

        //pin note to notification drawer on enter action in textfield
        NoteInputField.setOnEditorActionListener(new TextView.OnEditorActionListener() {
            @Override
            public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
                if(actionId == EditorInfo.IME_ACTION_DONE || (event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
                    pinNote(0);
                    return true;
                }
                else
                    return false;
            }
        });

        //Wake up hidden pins on long click on SnoozeDurationutton
        SnoozeDurationButton.setOnLongClickListener(new View.OnLongClickListener() {
            @Override
            public boolean onLongClick(View v) {
                ContentValues cv = new ContentValues();
                cv.put(NotesProvider.Notes.WAKE_UP, 0);
                int updated = getContentResolver().update(Uri.parse(NotesProvider.CONTENT_URI + "/notes"), cv, NotesProvider.Notes.WAKE_UP + " <> 0 AND " + NotesProvider.Notes.TEXT + " IS NOT NULL", null);
                //Show toast when notes woke up
                if(updated > 0)
                    Toast.makeText(NoteActivity.this, R.string.toast_show_all, Toast.LENGTH_SHORT).show();
                //update silently (without notification ping)
                mPinboard.update();
                return true;
            }
        });

        //Prepare Rotary Control
        SnoozeDurationSlider.setOnValueChangedListener(new RotaryControlView.OnValueChangedListener() {
            @Override
            public void onValueChanged(int val, int min, int max, int stepVal) {}

            @Override
            public void onUserChangeBegin(int val) {}

            @Override
            public void onUserChange(int val) {
                // if zero, assume zero_snooze_duration
                int cur = val == 0 ? mZeroSnoozeDur : val * 1000;
                Timespan span = new Timespan(NoteActivity.this, cur);
                String txt = getResources().getString(R.string.ftext_button_snooze_duration, (int) span.inHours(), span.restMins());
                if (span.millis < 60000) txt = getResources().getString(R.string.ftext_button_zero_snooze, (int) span.inSecs());
                SnoozeDurationButton.setText(txt);
            }

            @Override
            public void onUserChangeEnd(int val) {
                // if zero, assume zero_snooze_duration
                mPinboard.setSnoozeDuration(val == 0 ? mZeroSnoozeDur : val * 1000);
            }
        });

        //And fix pins on long click on PinButton
        SaveNoteButton.setOnLongClickListener(new View.OnLongClickListener() {
            @Override
            public boolean onLongClick(View v) {
                boolean fixPins = !mPinboard.getIsFixed();
                mPinboard.setIsFixed(fixPins);
                String toast;
                if(fixPins)
                    toast = NoteActivity.this.getString(R.string.toast_fix_pins);
                else
                    toast = NoteActivity.this.getString(R.string.toast_unfix_pins);
                Toast.makeText(NoteActivity.this, toast, Toast.LENGTH_SHORT).show();
                mPinboard.update();
                return true;
            }
        });

        loadSnoozeDuration();
        SnoozeDurationSlider.startAnimation(mRotaryAnimation);

        PinBackgroundButton.startAnimation(mPopInAnimation);
    }

    @Override
    public void onServiceDisconnected(ComponentName name) {
        Log.w("NoteActivity", "PinboardService disconnected, shutting down activity...");
        NoteInputField.setOnEditorActionListener(null);
        SnoozeDurationButton.setOnLongClickListener(null);
        SnoozeDurationSlider.setOnValueChangedListener(null);
        SaveNoteButton.setOnLongClickListener(null);
        mPinboard = null;
    }


    private void loadSnoozeDuration() {
        long dur = mPinboard.getSnoozeDuration();

        int index = 0;

        while(index < mDurations.length - 1 && mDurations[index] < dur)
            index++;

        //if there is a zero snooze duration exactly matching the current duration, set up this instead
        for(int i = 0; i < mZeroSnoozeDurations.length; i++)
            if(mZeroSnoozeDurations[i] == dur) {
                dur = 0;
                index = i;//Assuming that mDurations and mZeroDurations have equal length
            }

        SnoozeDurationSlider.setMaxValue(mDurations[index] / 1000);
        SnoozeDurationSlider.setStepValue(mSteps[index] / 1000);
        SnoozeDurationSlider.setValue((int) (dur / 1000));//in seconds
        //setValue / getValue takes care of normalizing, aligning to steps, ...

        mZeroSnoozeDur = mZeroSnoozeDurations[index];

        Log.d("NoteActivity", "Loaded slider value " + SnoozeDurationSlider.getValue());
        // If zero, assume zero_snooze_duration
        long spanMillis = SnoozeDurationSlider.getValue() == 0 ? mZeroSnoozeDur : SnoozeDurationSlider.getValue() * 1000;
        Timespan span = new Timespan(this, spanMillis);

        Log.d("NoteActivity", "Loaded milliseconds " + span.millis);
        String txt = getResources().getString(R.string.ftext_button_snooze_duration, (int) span.inHours(), span.restMins());
        if (span.millis < 60000)
            txt =  getResources().getString(R.string.ftext_button_zero_snooze, (int) span.inSecs());
        SnoozeDurationButton.setText(txt);
        mPinboard.update();
    }

    public void onNoteSaveButtonClicked(View v) {
        if(mPinboard == null) {
            Log.e("NoteActivity", "PinButton clicked but PinboardService disconnected");
            return;
        }
        pinNote(0);
    }

    public void onNotePinBackgroundButtonClicked(View v) {
        if(mPinboard == null) {
            Log.e("NoteActivity", "PinButton clicked but PinboardService disconnected");
            return;
        }
        if(pinNote(mPinboard.getSnoozeDuration()))
            Toast.makeText(this, getResources().getString(R.string.toast_pin_background, new Timespan(this, mPinboard.getSnoozeDuration()).toString()), Toast.LENGTH_SHORT).show();
    }

    public void onParentLayoutClicked(View v) {
        finish();//exit activity when user clicks on empty space in activity
    }

    public void onSetSnoozeDurationButtonClicked(View v) {
        if(mPinboard == null) {
            Log.e("NoteActivity", "PinButton clicked but PinboardService disconnected");
            return;
        }

        int index = 0;
        long dur = SnoozeDurationSlider.getValue() * 1000;
        while(index < mDurations.length && mDurations[index] <= dur)
            index++;
        if(index == mDurations.length)
            index = 0;

        final int i = index;
        SnoozeDurationSlider.startAnimation(mRotarySetAnimation);
        mAnimHandler.postDelayed(new Runnable() {
            @Override
            public void run() {
                mPinboard.setSnoozeDuration(mDurations[i]);
                loadSnoozeDuration();
            }
        }, 250);
    }

    private boolean pinNote(long snooze) {
        String txt = NoteInputField.getText().toString();
        long time = System.currentTimeMillis();

        //Save note in Database via ContentProvider
        if(!TextUtils.isEmpty(txt)) {

            ContentValues cv = new ContentValues();
            cv.put(NotesProvider.Notes.TEXT, txt);
            cv.put(NotesProvider.Notes.MODIFIED, time);
            cv.put(NotesProvider.Notes.WAKE_UP, time + snooze);

            Uri uri = getIntent().getData();

            //We're about to pin a new note
            if(uri == null) {
                //Created is used to show a timestamp in the notification area
                cv.put(NotesProvider.Notes.CREATED, time);
                uri = getContentResolver().insert(Uri.parse(NotesProvider.CONTENT_URI + "/notes"), cv);
                Log.d("NoteActivity", String.format("Inserted note item with uri '%s'", uri));
            } else {
                //We're about to update a existing note
                getContentResolver().update(uri, cv, null, null);
                Log.d("NoteActivity", String.format("Updated note item with uri '%s'", uri));
            }

            if(uri != null)
                mPinboard.update();

            NoteInputField.startAnimation(mPinAnimation);
            SnoozeDurationSlider.startAnimation(mRotarySetAnimation);
            mAnimHandler.postDelayed(new Runnable() {
                @Override
                public void run() {
                    NoteInputField.setText("");
                    NoteInputField.requestFocus();
                }
            }, 125);

            //Do not close but give user the opportunity to enter additional notes

            //But clear any data we previously operated upon
            getIntent().setData(null);
            return true;
        } else {
            NoteInputField.startAnimation(mEmptyPinAnimation);
            return false;
        }
    }

    /**
     * Checks whether any Uri data is contained in the activity's intent and prepares the textfield accordingly. To be called from onCreate and onNewIntent
     */
    private void prepareEditPin() {

        Uri uri = getIntent().getData();
        Log.d("NoteActivity", String.format("Activity called with uri: %s", uri == null? "null" : uri));
        if(uri != null) {
            if (TextUtils.isEmpty(uri.getLastPathSegment()) || !TextUtils.isDigitsOnly(uri.getLastPathSegment())) {
                Log.e("NoteActivity", String.format("Invalid data uri '%s' supplied", uri));
                finish();
            }
            //And populate UI with supplied data
            Cursor c = getContentResolver().query(uri, new String[] { NotesProvider.Notes.TEXT }, null, null, null);
            if(c == null || c.getCount() != 1) {
                Log.e("NoteActivity", String.format("Could not query text for uri '%s'", uri));
            } else {
                c.moveToFirst();
                NoteInputField.setText(c.getString(0));
            }

            if(c != null)
                c.close();
        }
    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(R.anim.activity_enter, R.anim.activity_exit);
    }
}


================================================
FILE: app/src/main/java/de/nproth/pin/NotesProvider.java
================================================
package de.nproth.pin;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.net.Uri;
import android.provider.BaseColumns;
import android.text.TextUtils;
import android.util.Log;

/**
 * Content Provider of this app, stores pins in database
 */
public class NotesProvider extends ContentProvider {

    public static final String AUTHORITIES = BuildConfig.APPLICATION_ID + ".notes";
    public static final String CONTENT_URI = "content://" + AUTHORITIES;

    public static final class Notes implements BaseColumns {
        public static final Uri NOTES_URI = Uri.parse(CONTENT_URI + "/notes");

        //public static final String _ID = "_id"; in BaseColumns
        public static final String TEXT = "text";//TEXT note's content. If a notes text is set to NULL the note is marked as deleted and will be removed from the database on next boot
        public static final String CREATED = "created";//INT time of note's creation as UTC timestamp
        /**
         * CAUTION: DO NOT USE! Not present in database (since DB_VERSION 3) after a fresh install
         */
        @Deprecated
        public static final String SNOOZED = "snoozed";//INT last time the note was 'snoozed' as UTC timestamp

        public static final String WAKE_UP = "wake_up";//INT time a snoozed note should wake up as UTC timestamp
        public static final String MODIFIED = "modified";//INT last time the note was modified as UTC timestamp, e.g. it's text changed, it was snoozed or deleted
    }

    private final int NOTES_LIST = 1;
    private final int NOTES_ITEM = 2;

    /** CHANGELOG:
     * 1 - initial db
     * 2 - add column 'wake_up'
     * 3 - remove column 'snoozed'
     */
    private final int DB_VERSION = 3;

    private UriMatcher mUris = new UriMatcher(UriMatcher.NO_MATCH);
    {
        mUris.addURI(AUTHORITIES, "notes", NOTES_LIST);
        mUris.addURI(AUTHORITIES, "notes/#", NOTES_ITEM);
    }

    private SQLiteOpenHelper mDbHelper;

    public NotesProvider() {
    }

    @Override
    public boolean onCreate() {
        mDbHelper = new SQLiteOpenHelper(getContext(), "notes.db", null, DB_VERSION) {
            @Override
            public void onCreate(SQLiteDatabase db) {
                db.beginTransaction();
                try {
                    db.execSQL("CREATE TABLE notes (_id INTEGER PRIMARY KEY AUTOINCREMENT, text TEXT, created INT NOT NULL, wake_up INT NOT NULL DEFAULT 0, modified INT NOT NULL DEFAULT 0);");//NULL text means that the note was deleted
                    db.setTransactionSuccessful();
                } catch(SQLException sql) {
                    Log.e("Notesprovider", "Could not create database", sql);
                }
                finally {
                    db.endTransaction();
                }

                Log.d("NotesProvider", "Database 'notes.db' created");
            }

            @Override
            public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
                db.beginTransaction();
                try {
                    switch(oldVersion) {
                        case 1:
                            db.execSQL("ALTER TABLE notes ADD COLUMN wake_up INT NOT NULL DEFAULT 0");
                        case 2:
                            //ALTER TABLE notes DELETE COLUMN snoozed; - not supported on android so just reset this column and stop using it. Not present after a fresh install
                            ContentValues cv = new ContentValues();
                            cv.put("snoozed", 0);
                            db.update("notes", cv, null, null);//set 'snoozed' to default value in all rows
                        default:
                    }
                    //do upgrade here
                    db.setTransactionSuccessful();
                } catch(SQLException sql) {
                    Log.e("NotesProvider", "Could not upgrade database", sql);
                }
                finally {
                    db.endTransaction();
                }

                Log.d("NotesProvider", "Database 'notes.db' upgraded");
            }
        };
        return true;
    }

    @Override
    public int delete(Uri uri, String selection, String[] selectionArgs) {

        switch(mUris.match(uri)) {
            default:
                Log.e("NotesProvider", String.format("Could not delete rows from table 'notes': invalid uri '%s'", uri.toString()));
                return 0;

            case NOTES_ITEM:
                String id = uri.getLastPathSegment();
                // check if id is really just a number else SQL injection attacks might be possible
                if(!TextUtils.isDigitsOnly(id)) {
                    Log.e("NoteProvider", String.format("Invalid id in uri for delete op: '%s' in '%s' is not a numeric id", id, uri.toString()));
                    return 0;
                }
                if(!TextUtils.isEmpty(selection))
                    selection = "(" + selection + ") AND _id = " + id;
                else
                    selection = "_id = " + id;
                //continue to next case
            case NOTES_LIST:
                try {
                    int cols = mDbHelper.getReadableDatabase().delete("notes", selection, selectionArgs);

                    getContext().getContentResolver().notifyChange(Uri.parse(CONTENT_URI + "/notes"), null);
                    return cols;
                } catch(SQLException sql) {
                    Log.e("NoteProvider", "Could not delete rows from table 'notes'", sql);
                    return 0;
                }
        }
    }

    @Override
    public String getType(Uri uri) {
        switch(mUris.match(uri)) {
            case NOTES_ITEM: return "vnd.android.cursor.item/vnd.nproth.notes";
            case NOTES_LIST: return "vnd.android.cursor.dir/vnd.nproth.notes";
            default:
                Log.e("NotesProvider", String.format("Unknown type for Uri '%s'",uri.toString()));
                return null;
        }
    }

    @Override
    public synchronized Uri insert(Uri uri, ContentValues values) {
        switch(mUris.match(uri)) {

            case NOTES_LIST:
                try {
                    long id = mDbHelper.getWritableDatabase().insertOrThrow("notes", null, values);
                    Uri item = Uri.parse(CONTENT_URI + "/notes/" + Long.toString(id));
                    getContext().getContentResolver().notifyChange(Uri.parse(CONTENT_URI + "/notes"), null);
                    return item;

                } catch(SQLException sql) {
                    Log.e("NotesProvider", "Could not insert new entry into table 'notes'", sql);
                    return null;
                }

            case NOTES_ITEM://invalid
            default:
                Log.e("NotesProvider", String.format("Invalid uri '%s': Could not insert new entry into table 'notes'", uri.toString()));
                return null;
        }
    }

    @Override
    public Cursor query(Uri uri, String[] projection, String selection,
                        String[] selectionArgs, String sortOrder) {
        if(TextUtils.isEmpty(sortOrder))
            sortOrder = "_id ASC";

        switch(mUris.match(uri)) {
            default:
                Log.e("NotesProvider", String.format("Could not query table 'notes': invalid uri '%s'", uri.toString()));
                return null;

            case NOTES_ITEM:
                String id = uri.getLastPathSegment();
                // check if id is really just a number else SQL injection attacks might be possible
                if(!TextUtils.isDigitsOnly(id)) {
                    Log.e("Noteprovider", String.format("Invalid id in uri for query: '%s' in '%s' is not a numeric id", id, uri.toString()));
                    return null;
                }
                if(!TextUtils.isEmpty(selection))
                    selection = "(" + selection + ") AND _id = " + id;
                else
                    selection = "_id = " + id;
                //continue to next case
            case NOTES_LIST:
                try {
                    Cursor c = mDbHelper.getReadableDatabase().query("notes", projection, selection, selectionArgs, null, null, sortOrder);
                    if(c == null)
                        Log.e("NoteProvider", String.format("Cursor for query '%s' on table 'notes' is null", selection));
                    return c;
                } catch(SQLException sql) {
                    Log.e("NoteProvider", "Could not query table 'notes'", sql);
                    return null;
                }
        }
    }

    @Override
    public int update(Uri uri, ContentValues values, String selection,
                      String[] selectionArgs) {
        String id = null;

        switch(mUris.match(uri)) {
            default:
                Log.e("NotesProvider", String.format("Could not update table 'notes': invalid uri '%s'", uri.toString()));
                return 0;

            case NOTES_ITEM:
                id = uri.getLastPathSegment();
                // check if id is really just a number else SQL injection attacks might be possible
                if(!TextUtils.isDigitsOnly(id)) {
                    Log.e("NotesProvider", String.format("Invalid id in uri for update: '%s' in '%s' is not a numeric id", id, uri.toString()));
                    return 0;
                }
                if(!TextUtils.isEmpty(selection))
                    selection = "(" + selection + ") AND _id = " + id;
                else
                    selection = "_id = " + id;
                //continue to next case
            case NOTES_LIST:
                try {
                    int cols = mDbHelper.getReadableDatabase().update("notes", values, selection, selectionArgs);

                    if(cols > 0)
                        if(id == null)
                            getContext().getContentResolver().notifyChange(Uri.parse(CONTENT_URI + "/notes"), null);
                        else
                            getContext().getContentResolver().notifyChange(Uri.parse(CONTENT_URI + "/notes/" + id), null);//We know that only this column was updated

                    return cols;
                } catch(SQLException sql) {
                    Log.e("NotesProvider", "Could not update table 'notes'", sql);
                    return 0;
                }
        }
    }


}


================================================
FILE: app/src/main/java/de/nproth/pin/PinTileService.java
================================================
/**
 * Changelog
 *
 * 2019-10-28 nproth
 *
 * * Implement PinTileService which provides a Quick Settings Tile to the user which opens the app.
 */

package de.nproth.pin;

import android.annotation.TargetApi;
import android.content.Intent;
import android.service.quicksettings.Tile;
import android.service.quicksettings.TileService;


/**
 * Provides a Settings Tile to the user which opens p!n.
 * Tiles are not supported before Api 24.
 */
@TargetApi(24)
public class PinTileService extends TileService {

    /**
     * Launches {@link NoteActivity} when the Quick Settings Tile is clicked
     */
    @Override
    public void onClick() {
        super.onClick();

        Intent i = new Intent(this, NoteActivity.class);
        // Required to start Activity from outside of an Activity context
        i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivityAndCollapse(i);
    }
}


================================================
FILE: app/src/main/java/de/nproth/pin/RotaryControlView.java
================================================
package de.nproth.pin;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Path;
import android.graphics.PointF;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

/**
 * TODO: document your custom view class.
 */
public class RotaryControlView extends View {

    private Drawable mScaleDrawable;
    private Drawable mBarDrawable;

    private float mStartAngle = 90;
    private float mEndAngle = 90;

    private int mMinValue = 0;
    private int mMaxValue = 100;
    private int mStepValue = 1;
    private int mValue = 0;

    private Path mClip = new Path();
    private Rect mBounds = new Rect();
    private RectF mBoundsF = new RectF();

    private PointF mTouch = new PointF();
    private double mAngleLastTouch;
    private double mLastValue;

    private OnValueChangedListener mValListener;

    public interface OnValueChangedListener {

        public void onValueChanged(int val, int min, int max, int stepVal);

        public void onUserChangeBegin(int val);

        public void onUserChange(int val);

        public void onUserChangeEnd(int val);
    }

    public RotaryControlView(Context context) {
        super(context);
        init(null, 0);
    }

    public RotaryControlView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(attrs, 0);
    }

    public RotaryControlView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        init(attrs, defStyle);
    }

    private void init(AttributeSet attrs, int defStyle) {
        // Load attributes
        final TypedArray a = getContext().obtainStyledAttributes(
                attrs, R.styleable.RotaryControlView, defStyle, 0);

        setScaleDrawable(a.getDrawable(R.styleable.RotaryControlView_scaleDrawable));
        setBarDrawable(a.getDrawable(R.styleable.RotaryControlView_barDrawable));
        setStartAngle(a.getFloat(R.styleable.RotaryControlView_startAngle, 90));
        setEndAngle(a.getFloat(R.styleable.RotaryControlView_endAngle, 90));
        setMinValue(a.getInt(R.styleable.RotaryControlView_min, 0));
        setMaxValue(a.getInt(R.styleable.RotaryControlView_max, 100));
        setStepValue(a.getInt(R.styleable.RotaryControlView_step, 1));
        setValue(a.getInt(R.styleable.RotaryControlView_value, 0));

        a.recycle();


        //Hw support for Canvas#clipPath not present before
        if(Build.VERSION.SDK_INT < 18)
            this.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
    }



    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);

        int paddingLeft = getPaddingLeft();
        int paddingTop = getPaddingTop();
        int paddingRight = getPaddingRight();
        int paddingBottom = getPaddingBottom();

        int right = getWidth() - paddingRight;
        int bottom = getHeight() - paddingBottom;

        int contentWidth = right - paddingLeft;
        int contentHeight = bottom - paddingTop;

        mBounds.set(paddingLeft, paddingTop, right, bottom);
        mBoundsF.set(paddingLeft, paddingTop, right, bottom);

        float centerX = paddingLeft + (0.5f * contentWidth);
        float centerY = paddingTop + (0.5f * contentHeight);

        float angle = (mEndAngle - mStartAngle);
        while(angle <= 0)
            angle += 360;
        angle %= 360;
        float sweep = angle * (mValue - mMinValue) / (mMaxValue - mMinValue);

        if(mScaleDrawable != null) {
            mScaleDrawable.setBounds(mBounds);
            mScaleDrawable.draw(canvas);
        }

        if(mBarDrawable != null) {
            mBarDrawable.setBounds(mBounds);
            canvas.save();

            mClip.reset();
            mClip.moveTo(centerX, centerY);
            mClip.arcTo(mBoundsF, mStartAngle, sweep, false);
            mClip.close();

            canvas.clipPath(mClip);
            mBarDrawable.draw(canvas);

            canvas.restore();
        }
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        super.onTouchEvent(event);

        Log.d("RotaryControlView", "Touch Event with pointer index: " + event.getActionIndex());

        if(event.getActionIndex() != 0)
            return true;//We only care about pointer 1

        int paddingLeft = getPaddingLeft();
        int paddingTop = getPaddingTop();
        int paddingRight = getPaddingRight();
        int paddingBottom = getPaddingBottom();

        int right = getWidth() - paddingRight;
        int bottom = getHeight() - paddingBottom;

        int contentWidth = right - paddingLeft;
        int contentHeight = bottom - paddingTop;
        float cx = paddingLeft + (0.5f * contentWidth);
        float cy = paddingTop + (0.5f * contentHeight);

        float x = event.getX();
        float y = event.getY();

        double unit = ((double) mMaxValue - mMinValue) / Math.abs(mEndAngle - mStartAngle);

        float a, c;
        double angle;

        a = Math.abs(y - cy);
        c = Math.abs(x - cx);

        if(c != 0)
            angle = Math.toDegrees(Math.atan(a / c));
        else
            angle = 0;

        if(x < cx)
            angle = 180 - angle;
        if(y < cy)
            angle = 360 - angle;


        Log.d("RotaryControlView", "onTouchMove, alpha: " + angle);


        switch(event.getActionMasked()) {
            case MotionEvent.ACTION_DOWN:
                Log.d("RotaryControlView", "onTouchDown");
                mTouch.set(x, y);
                mLastValue = mValue;

                if(mValListener != null)
                    mValListener.onUserChangeBegin(mValue);
                break;
            case MotionEvent.ACTION_MOVE:

                double diffangle;
                if(Math.abs(angle - mAngleLastTouch) > 180)
                    diffangle = (360 - angle) - mAngleLastTouch;
                else
                    diffangle = angle - mAngleLastTouch;

                double range = mEndAngle - mStartAngle;
                while(range <= 0)
                    range += 360;

                mLastValue += (int) Math.round(diffangle * (mMaxValue - mMinValue) / range);
                mLastValue = Math.min(mLastValue, mMaxValue);
                mLastValue = Math.max(mLastValue, mMinValue);

                Log.d("RotaryControlView", "onTouchMove, diffangle: " + diffangle);

                int val = (int) mLastValue;
                this.mValue = val - (val % mStepValue);

                if(mValListener != null)
                    mValListener.onUserChange(mValue);
                invalidate();
                break;
            case MotionEvent.ACTION_CANCEL:
                break;
            case MotionEvent.ACTION_UP:
                if(mValListener != null)
                    mValListener.onUserChangeEnd(mValue);
                Log.d("RotaryControlView", "onTouchUp");
        }

        mAngleLastTouch = angle;
        return true;
    }

    public Drawable getScaleDrawable() {
        return mScaleDrawable;
    }

    public void setScaleDrawable(Drawable mScaleDrawable) {
        this.mScaleDrawable = mScaleDrawable;
        if(mScaleDrawable != null)
            mScaleDrawable.setCallback(this);
        invalidate();
    }

    public Drawable getBarDrawable() {
        return mBarDrawable;
    }

    public void setBarDrawable(Drawable mBarDrawable) {
        this.mBarDrawable = mBarDrawable;
        if(mBarDrawable != null)
            mBarDrawable.setCallback(this);
        invalidate();
    }

    public float getStartAngle() {
        return mStartAngle;
    }

    public void setStartAngle(float mStartAngle) {
        while(mStartAngle < 0)
            mStartAngle += 360;
        this.mStartAngle = mStartAngle % 360;
        invalidate();
    }

    public float getEndAngle() {
        return mEndAngle;
    }

    public void setEndAngle(float mEndAngle) {
        while(mEndAngle < 0)
            mEndAngle += 360;
        this.mEndAngle = mEndAngle % 360;
        invalidate();
    }

    public int getMinValue() {
        return mMinValue;
    }

    public void setMinValue(int mMinValue) throws IllegalArgumentException {
        if(mMinValue > mMaxValue)
            throw new IllegalArgumentException("min > max");
        this.mMinValue = mMinValue;
        setValue(mValue);
    }

    public int getMaxValue() {
        return mMaxValue;
    }

    public void setMaxValue(int mMaxValue) throws IllegalArgumentException {
        if(mMinValue > mMaxValue)
            throw new IllegalArgumentException("max < min");
        this.mMaxValue = mMaxValue;
        setValue(mValue);
    }

    public int getStepValue() {
        return mStepValue;
    }

    public void setStepValue(int mStepValue) {
        this.mStepValue = mStepValue;
        //Align Value to steps
        setValue(mValue);
    }

    public int getValue() {
        return mValue;
    }

    public void setValue(int val) {
        val = Math.max(val, mMinValue);
        val = Math.min(val, mMaxValue);
        this.mValue = val - (val % mStepValue);
        Log.d("RotaryControlView", "Value set to " + mValue + " with steps: " + mStepValue + ", min: " + mMinValue + " and max: " + mMaxValue);
        if(mValListener != null)
            mValListener.onValueChanged(mValue, mMinValue, mMaxValue, mStepValue);
        invalidate();
    }

    public void setOnValueChangedListener(OnValueChangedListener l) {
        mValListener = l;
    }

    public OnValueChangedListener getOnValueChangedListener() {
        return mValListener;
    }
}


================================================
FILE: app/src/main/java/de/nproth/pin/pinboard/Pinboard.java
================================================
package de.nproth.pin.pinboard;

import android.app.AlarmManager;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.job.JobInfo;
import android.app.job.JobScheduler;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.preference.PreferenceManager;
import androidx.annotation.NonNull;
import androidx.core.app.NotificationCompat;
import androidx.core.app.NotificationManagerCompat;
import android.util.Log;

import de.nproth.pin.receiver.AlarmReceiver;
import de.nproth.pin.receiver.DeleteNoteReceiver;
import de.nproth.pin.NoteActivity;
import de.nproth.pin.NotesProvider;
import de.nproth.pin.receiver.NotificationJobService;
import de.nproth.pin.R;
import de.nproth.pin.receiver.SnoozeNoteReceiver;
import de.nproth.pin.util.Timespan;

import static de.nproth.pin.pinboard.PinboardService.DEFAULT_SNOOZE_DURATION;
import static de.nproth.pin.pinboard.PinboardService.PREFERENCE_SNOOZE_DURATION;
import static de.nproth.pin.pinboard.PinboardService.PREFERENCE_PERSISTENT_NOTIFICATIONS;
import static de.nproth.pin.pinboard.PinboardService.DEFAULT_PERSISTENT_NOTIFICATIONS;

/**
 * Updates notifications when pins are added / snoozed / deleted
 */
public final class Pinboard {

    /**
     * Only used prior to version 1.1
    */
    @Deprecated
    private static final String CHANNEL_ID = "de.nproth.pin.notes";

    private static final String PIN_CHANNEL_ID = "de.nproth.pin.pin";
    private static final String WAKE_CHANNEL_ID = "de.nproth.pin.wake_up";

    private static final int SUMMARY_ID = 0;

    private static final String NOTES_GROUP = "de.nproth.pin.NOTES_GROUP";

    private static final int JOB_ID = 23156731;//really just a random number


    private final Context mContext;
    private final SharedPreferences mPrefs;
    private final NotificationManagerCompat mNotify;
    private final NotificationManager mNManager;
    private final AlarmManager mAlarm;
    private final JobScheduler mScheduler;


    private long mSnoozeDuration = 30 * 60 * 1000;//30min in millis
    private boolean mFixed = false;


    private long mLastChecked = 0;

    private Pinboard(@NonNull Context ctx) {
        mContext = ctx;

        mPrefs = PreferenceManager.getDefaultSharedPreferences(ctx);

        mNManager = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE);
        mNotify = NotificationManagerCompat.from(mContext);


        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            mScheduler = (JobScheduler) mContext.getSystemService(Context.JOB_SCHEDULER_SERVICE);
            mAlarm = null;
        }
        else {
            mAlarm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
            mScheduler = null;
        }

        //Create notification Channels, only needed when running on android 8.0+

        //We need two different priorities: we want newly created pins to be pushed silently (anything else is unbearably annoying) but we DO want the user to be notified when a snoozed notification wakes up
        //On pre android 8.0 this is possible by using different priorities but on >=Oreo only one importance per channel is supported => use 2 channels
        //Also I really hope that notifications from two different channels can be grouped and summarized.

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            //Delete old channel used in version <= 1.0.1
            mNManager.deleteNotificationChannel(CHANNEL_ID);
            //create two new channels
            NotificationChannel cpin = new NotificationChannel(PIN_CHANNEL_ID, mContext.getString(R.string.channel_name_pin), NotificationManager.IMPORTANCE_LOW);
            cpin.setShowBadge(false);
            cpin.setDescription(mContext.getString(R.string.channel_description_pin));
            mNManager.createNotificationChannel(cpin);

            NotificationChannel cwake = new NotificationChannel(WAKE_CHANNEL_ID, mContext.getString(R.string.channel_name_wake), NotificationManager.IMPORTANCE_DEFAULT);
            cwake.setShowBadge(false);
            cwake.setDescription(mContext.getString(R.string.channel_description_wake));
            mNManager.createNotificationChannel(cwake);
        }
    }

    private void update(long timeNow, boolean silent, String where, String... wargs) {

        mSnoozeDuration = getSnoozeDuration();
        mFixed = getIsFixed();

        long currentCheck = timeNow;
        long alarmTime = 0;//0 means that no alarm should be set

        Intent idelete = null, isnooze = null, iedit = null, iactivity = new Intent(mContext, NoteActivity.class);
        Cursor db = null;

        try {

            //query all rows that were modified or created since we last checked the db, sorted by time of creation
            db = mContext.getContentResolver().query(NotesProvider.Notes.NOTES_URI, new String[]{NotesProvider.Notes._ID, NotesProvider.Notes.TEXT, NotesProvider.Notes.CREATED, NotesProvider.Notes.MODIFIED, NotesProvider.Notes.WAKE_UP},
                    where, wargs, NotesProvider.Notes.CREATED + " DESC");

            Log.d("NotificationService", String.format("%d notes changed, updating notifications...", db.getCount()));

            db.moveToFirst();

            while (!db.isAfterLast()) {

                if (db.isNull(1)) { //check if notification is marked as deleted (text is NULL) and remove the corresponding notification
                    mNotify.cancel(db.getInt(0));//notifications are indexed by their note's _id values
                } else {

                    //check if note is snoozed
                    long wake_up = db.getLong(4);
                    //TODO if a wake_up event is scheduled here, set wake_up time to 0.
                    if (wake_up > currentCheck) {//keep snoozing
                        mNotify.cancel(db.getInt(0));//notifications are indexed by their note's _id values
                        if(alarmTime == 0 || alarmTime > wake_up)
                            alarmTime = wake_up;//schedule alarm to wake this service the next time a note 'wakes up'

                    } else {//else update and show notification

                        boolean wokeUp = wake_up > mLastChecked;

                        //Prepare Pending Intents to snooze or delete notification or edit the note
                        idelete = new Intent(mContext, DeleteNoteReceiver.class);
                        idelete.setData(Uri.withAppendedPath(NotesProvider.Notes.NOTES_URI, Long.toString(db.getLong(0))));

                        isnooze = new Intent(mContext, SnoozeNoteReceiver.class);
                        isnooze.setData(Uri.withAppendedPath(NotesProvider.Notes.NOTES_URI, Long.toString(db.getLong(0))));

                        iedit = new Intent(mContext, NoteActivity.class);
                        iedit.setData(Uri.withAppendedPath(NotesProvider.Notes.NOTES_URI, Long.toString(db.getLong(0))));

                        if(wokeUp)
                            Log.d("Pinboard", "Pushing notification on wake_up channel...");

                        //create a notification here (previously created notifications that are still visible are just updated)
                        //Newly created notifications are pushed silently. Pins that woke up are published on the second channel and make a noise.
                        NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext, (wokeUp && !silent)? WAKE_CHANNEL_ID : PIN_CHANNEL_ID)
                                .setSmallIcon(R.drawable.ic_pin_statusbar)
                                .setContentTitle(db.getString(1))//use note's text as notification's headline
                                .setWhen(db.getLong(2))//XXX hope this method accepts UTC timestamps; it seemingly does; show time of creation here utilising the db's 'created' column
                                .setPriority((wokeUp && !silent)? NotificationCompat.PRIORITY_HIGH : NotificationCompat.PRIORITY_DEFAULT)
                                .setOnlyAlertOnce(true)
                                .setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN)
                                //Add actions to delete or snooze note, don't use icons here
                                .addAction(0, mContext.getString(R.string.action_delete), PendingIntent.getBroadcast(mContext, 0, idelete, 0))
                                .addAction(0, mContext.getString(R.string.action_snooze, new Timespan(mContext, mSnoozeDuration).toString()), PendingIntent.getBroadcast(mContext, 0, isnooze, 0))
                                .addAction(0, mContext.getString(R.string.action_edit), PendingIntent.getActivity(mContext, 0, iedit, 0))
                                .setContentIntent(PendingIntent.getActivity(mContext, 0, iactivity, 0))//show NoteActivity when user clicks on note.
                                .setCategory(NotificationCompat.CATEGORY_REMINDER);
                        //Make notes persistent
                        if(mFixed)
                            builder.setOngoing(true);

                        isnooze.setAction(SnoozeNoteReceiver.ACTION_NOTIFICATION_DISMISSED);
                        builder.setDeleteIntent(PendingIntent.getBroadcast(mContext, 0, isnooze, 0));//snooze notification when the user dismisses it

                        if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
                            builder.setGroup(NOTES_GROUP);

                        Notification note = builder.build();

                        //And fire new / updated notification
                        mNotify.notify(db.getInt(0), note);//use cursor's _id column as id for our notification
                    }
                }

                db.moveToNext();
            }
        } catch (Exception e) {
            Log.e("NotificationService", "Unable to create Notifications", e);
        } finally {
            if (db != null)
                db.close();
        }

        //schedule an alarm
        if (alarmTime > 0) {
            long latency = alarmTime - System.currentTimeMillis();
            if(latency <= 0)
                latency = 1;//make sure latency is positive
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {//use jobScheduler if possible

                JobInfo job = new JobInfo.Builder(JOB_ID, new ComponentName(mContext, NotificationJobService.class))
                        .setMinimumLatency(latency).build();
                mScheduler.schedule(job);
                Log.d("NotificationService", String.format("Set up job running in ~ %dmin or ~ %ds", latency / 1000 / 60, latency / 1000));

            } else {//Or fallback to Alarm Manager
                long now = System.currentTimeMillis();
                if(alarmTime <= now + 500)//Make sure alarm is scheduled
                    alarmTime = now + 500;
                mAlarm.set(AlarmManager.RTC_WAKEUP, alarmTime, PendingIntent.getBroadcast(mContext, 0, new Intent(mContext, AlarmReceiver.class), 0));

                long mins = (alarmTime - currentCheck) / 1000 / 60;
                long secs = (alarmTime - currentCheck) / 1000;
                Log.d("NotificationService", String.format("Set up alarm triggering on %d UTC in ~ %dmin or ~ %ds", alarmTime, mins, secs));
            }
        }

        mLastChecked = currentCheck;


        //on pre N devices our notification actions are no longer accessible when they are summarized. Just keep distinct notifications on older devices.
        if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
            //Now build a summary notification for the group
            //query all visible texts from other notifications
            db = null;
            try {
                db = mContext.getContentResolver().query(NotesProvider.Notes.NOTES_URI, new String[]{NotesProvider.Notes.TEXT, NotesProvider.Notes.CREATED, NotesProvider.Notes.WAKE_UP},
                        "text IS NOT NULL AND wake_up <= ?", new String[]{Long.toString(currentCheck)}, NotesProvider.Notes.CREATED + " DESC");

                int count = db.getCount();

                if (count > 0) {
                    //Create group summary
                    NotificationCompat.InboxStyle style = new NotificationCompat.InboxStyle();
                    style.setBigContentTitle(mContext.getResources().getQuantityString(R.plurals.notification_summary_title, count, count));


                    long when = currentCheck;
                    String str;

                    db.moveToFirst();
                    while (!db.isAfterLast()) {//XXX Inbox style only supports up to 5 lines it says in the documentation, but I think more lines do also work
                        str = db.getString(0);
                        style.addLine(str);
                        when = Math.min(when, db.getLong(1));//find oldest reminder
                        db.moveToNext();
                    }

                    NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext, PIN_CHANNEL_ID)
                            .setSmallIcon(R.drawable.ic_pin_statusbar)
                            .setStyle(style)
                            .setPriority(NotificationCompat.PRIORITY_DEFAULT)
                            .setWhen(when)
                            .setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN)
                            .setContentIntent(PendingIntent.getActivity(mContext, 0, new Intent(mContext, NoteActivity.class), 0))//show NoteActivity when user clicks on note.
                            .setGroup(NOTES_GROUP)
                            .setGroupSummary(true)
                            .setCategory(NotificationCompat.CATEGORY_REMINDER);

                    if(mFixed)
                        builder.setOngoing(true);

                    mNotify.notify(SUMMARY_ID, builder.build());
                } else
                    mNotify.cancel(SUMMARY_ID);

            } catch (Exception e) {

            } finally {
                if (db != null)
                    db.close();
            }
        }
    }

    public void updateAll() {
        updateAll(false);
    }

    public void updateAll(boolean silent) {
        //query all rows
        update(System.currentTimeMillis(), silent, null);
    }

    public void updateVisible(boolean silent) {
        long now = System.currentTimeMillis();
        String sNow = Long.toString(now);
        //query all rows that are neither snoozed nor deleted and thus visible
        update(now, silent, "text IS NOT NULL AND wake_up <= ?", sNow);
    }

    public void updateVisible() {
        updateVisible(false);
    }

    public void updateChanged() {
        long now = System.currentTimeMillis();
        String sLastCheck = Long.toString(mLastChecked);
        //query all rows that were modified or created since we last checked the db, sorted by time of creation
        update(now, false, "modified >= ? OR wake_up >= ?", sLastCheck, sLastCheck);
        //mLastChecked = now;
    }

    public long getSnoozeDuration() {
        return mPrefs.getLong(PREFERENCE_SNOOZE_DURATION, DEFAULT_SNOOZE_DURATION);
    }

    public Pinboard setSnoozeDuration(long dur) {
        mPrefs.edit().putLong(PREFERENCE_SNOOZE_DURATION, dur).commit();
        mSnoozeDuration = dur;
        updateVisible(true);
        return this;
    }

    public boolean getIsFixed() {
        return mPrefs.getBoolean(PREFERENCE_PERSISTENT_NOTIFICATIONS, DEFAULT_PERSISTENT_NOTIFICATIONS);
    }

    public void setIsFixed(boolean fix) {
        mPrefs.edit().putBoolean(PREFERENCE_PERSISTENT_NOTIFICATIONS, fix).commit();
        mFixed = fix;
        updateVisible();
    }

    /**
     * Saves the snooze duration in shared preferences
     */
    public void destroy() {
        //PreferenceManager.getDefaultSharedPreferences(mContext).edit().putLong(PREFERENCE_SNOOZE_DURATION, getSnoozeDuration()).commit();
        //Nothing here
    }

    public static Pinboard get(Context ctx) {
        Pinboard me;
        if(ctx == null)
            throw new NullPointerException("Cannot acquire instance of singleton 'Pinboard': Context is NULL ");


        SharedPreferences mPrefs = PreferenceManager.getDefaultSharedPreferences(ctx);
        me = new Pinboard(ctx.getApplicationContext());
        //me.setSnoozeDuration(mPrefs.getLong(PREFERENCE_SNOOZE_DURATION, DEFAULT_SNOOZE_DURATION));
        //me.setIsFixed(mPrefs.getBoolean(PREFERENCE_PERSISTENT_NOTIFICATIONS, DEFAULT_PERSISTENT_NOTIFICATIONS));
        return me;
    }
}


================================================
FILE: app/src/main/java/de/nproth/pin/pinboard/PinboardService.java
================================================
package de.nproth.pin.pinboard;

import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Binder;
import android.os.IBinder;
import android.preference.PreferenceManager;

import de.nproth.pin.BuildConfig;
import de.nproth.pin.receiver.SnoozeNoteReceiver;


/**
 * Bound by {@link de.nproth.pin.NoteActivity}, used to update notifications via {@link Pinboard}
 */
public class PinboardService extends Service {

    public static final String INTENT_ACTION_SNOOZE_PIN = BuildConfig.APPLICATION_ID + ".intent.action.snooze";
    public static final String INTENT_ACTION_WAKE_UP = BuildConfig.APPLICATION_ID + ".intent.action.wake_up";

    public static final String PREFERENCE_PERSISTENT_NOTIFICATIONS = "pref_persistent_notifications";
    public static final String PREFERENCE_SNOOZE_DURATION = "snooze_duration";

    public static final long DEFAULT_SNOOZE_DURATION = 30 * 60 * 1000; //30min in millis
    public static final boolean DEFAULT_PERSISTENT_NOTIFICATIONS = false;

    private Pinboard mPinboard;
    private SharedPreferences mPrefs;

    public class PinboardBinder extends Binder {

        public void update() {
            mPinboard.updateAll(true);
        }

        public long getSnoozeDuration() {
            return mPinboard.getSnoozeDuration();
        }

        public void setSnoozeDuration(long dur) {
            mPinboard.setSnoozeDuration(dur);
            //mPrefs.edit().putLong(PREFERENCE_SNOOZE_DURATION, dur).apply();
        }

        public boolean getIsFixed() {
            return mPinboard.getIsFixed();
        }

        public void setIsFixed(boolean fix) {
            mPinboard.setIsFixed(fix);
        }
    }

    public PinboardService() {
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        super.onStartCommand(intent, flags, startId);
        init();

        if(intent != null && INTENT_ACTION_SNOOZE_PIN.equals(intent.getAction())) {
            int rows = SnoozeNoteReceiver.onSnoozePins(this, mPinboard.getSnoozeDuration(), intent.getData());
        }

        //mPinboard.updateAll(! INTENT_ACTION_WAKE_UP.equals(intent.getAction()));
        mPinboard.updateAll(true);
        return START_STICKY;
    }

    private void init() {
        if(mPinboard == null) {
            mPrefs = PreferenceManager.getDefaultSharedPreferences(this);

            mPinboard = Pinboard.get(this);

            //mPinboard.setSnoozeDuration(mPrefs.getLong(PREFERENCE_SNOOZE_DURATION, DEFAULT_SNOOZE_DURATION));
            //mPinboard.setIsFixed(mPrefs.getBoolean(PREFERENCE_PERSISTENT_NOTIFICATIONS, DEFAULT_PERSISTENT_NOTIFICATIONS));

            mPinboard.updateAll(true);
        }
    }

    @Override
    public void onDestroy() {
        super.onDestroy();

        //Committing the changed preference values is deliberately done synchronously (blocking), so that the Service is not destroyed before the transaction is completed.
        //mPrefs.edit().putLong(PREFERENCE_SNOOZE_DURATION, mPinboard.getSnoozeDuration())
          //      .putBoolean(PREFERENCE_PERSISTENT_NOTIFICATIONS, mPinboard.getIsFixed()).commit();
    }

    @Override
    public IBinder onBind(Intent intent) {
        init();
        return new PinboardBinder();
    }
}


================================================
FILE: app/src/main/java/de/nproth/pin/receiver/AlarmReceiver.java
================================================
package de.nproth.pin.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.preference.PreferenceManager;
import android.util.Log;

import de.nproth.pin.pinboard.Pinboard;
import de.nproth.pin.pinboard.PinboardService;

/**
 *  Only used on older devices where JobScheduler is not available
 */
public class AlarmReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d("AlarmReceiver", "Alarm triggered, starting NotificationService...");
        //update notifications
        Intent i = new Intent(context, PinboardService.class);
        i.setAction(PinboardService.INTENT_ACTION_WAKE_UP);
        //context.startService(i);
        Pinboard.get(context).updateVisible(false);
    }
}


================================================
FILE: app/src/main/java/de/nproth/pin/receiver/BootReceiver.java
================================================
package de.nproth.pin.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.preference.PreferenceManager;
import android.util.Log;

import de.nproth.pin.NoteActivity;
import de.nproth.pin.NotesProvider;
import de.nproth.pin.pinboard.Pinboard;
import de.nproth.pin.pinboard.PinboardService;
import de.nproth.pin.util.LifecycleWatcher;

/**
 * Should receive boot completed intent (does not work on all devices out of the box on some you have to disable battery optimizations for this app, e.g. on Oneplus 6)
 * The user is prompted for this in NoteActivity
 * Cleans the database and displays all notifications
 */
public class BootReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {

        if(Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
            Log.d("BootReceiver", "received BOOT_COMPLETED");

            //Log that boot completed was received
            LifecycleWatcher.informBootReceived();

            //First clean up database
            context.getContentResolver().delete(NotesProvider.Notes.NOTES_URI, "text IS NULL", null);

            //Show pins
            //On newer Android versions apps are no longer allowed to start services when they are in background
            //context.startService(new Intent(context, PinboardService.class));

            //As a fix invoke Pinboard directly. Nevertheless this is bad style because it circumvents the encapsulation of Pinboard through its service
            Pinboard.get(context).updateAll(true);
        }
    }
}


================================================
FILE: app/src/main/java/de/nproth/pin/receiver/DeleteNoteReceiver.java
================================================
package de.nproth.pin.receiver;

import android.content.BroadcastReceiver;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.UriMatcher;
import android.net.Uri;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import android.util.Log;

import de.nproth.pin.NotesProvider;
import de.nproth.pin.pinboard.Pinboard;
import de.nproth.pin.pinboard.PinboardService;

/**
 * Called from notification action button.
 * Marks pin as deleted and makes it disappear.
 */
public class DeleteNoteReceiver extends BroadcastReceiver {

    private final int NOTES_ITEM = 1;
    private final int NOTES_LIST = 2;

    private UriMatcher mUris = new UriMatcher(UriMatcher.NO_MATCH);
    {
        mUris.addURI(NotesProvider.AUTHORITIES, "notes/#", NOTES_ITEM);
        mUris.addURI(NotesProvider.AUTHORITIES, "notes", NOTES_LIST);
    }

    @Override
    public void onReceive(Context context, Intent intent) {

        Uri data = intent.getData();

        if(data == null) {
            Log.e("DeleteNoteReceiver", "Could not delete note: uri is null");
            return;
        }

        /*
         * For some reason I forgot the pins must not be deleted from the database right away.
         * I think it had something to do with the _id value in the database which is needed to reference visible notifications.
         * So we still need it in order to hide the deleted pins.
         *
         * The deleted pins are cleaned up on every boot (if the system allows us to catch the boot completed intent. For more information see BootReceiver)
         */

        ContentValues cv = new ContentValues();

        cv.putNull(NotesProvider.Notes.TEXT);//setting text to NULL marks note as deleted, it will be removed at next boot
        cv.put(NotesProvider.Notes.MODIFIED, System.currentTimeMillis());

        switch(mUris.match(data)) {
            case NOTES_ITEM:
                //Check if last path segment is really just a valid id (probably redundant)
                String idstring = data.getLastPathSegment();

                if(TextUtils.isEmpty(idstring) || !TextUtils.isDigitsOnly(idstring)) {
                    Log.e("DeleteNoteReceiver", String.format("Could not delete note item: invalid id '%s' in uri '%s'", idstring, data.toString()));
                    return;
                }
                //continue to next
            case NOTES_LIST:
                int rows = context.getContentResolver().update(data, cv, "text IS NOT NULL", null);//delete either on note item or all notes which are not marked as deleted already (text is not null)
                Log.d("DeleteNoteProvider", String.format("Deleted %d rows", rows));

                //update notifications
                //context.startService(new Intent(context, PinboardService.class));
                Pinboard.get(context).updateAll(true);

                return;
            default:
                Log.e("DeleteNoteReceiver", String.format("Could not snooze note: invalid uri '%s'", data.toString()));
                return;
        }
    }

}


================================================
FILE: app/src/main/java/de/nproth/pin/receiver/NotificationJobService.java
================================================
package de.nproth.pin.receiver;

import android.annotation.TargetApi;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Intent;
import android.preference.PreferenceManager;

import de.nproth.pin.pinboard.Pinboard;
import de.nproth.pin.pinboard.PinboardService;
import de.nproth.pin.receiver.AlarmReceiver;

/**
 * Updates notifications in background using the JobScheduler framework.
 * Replaces {@link AlarmReceiver} on devices running android 5.0+
 */
@TargetApi(21)
public class NotificationJobService extends JobService {

    @Override
    public boolean onStartJob(final JobParameters params) {
        //update notifications
        Intent i = new Intent(this, PinboardService.class);
        i.setAction(PinboardService.INTENT_ACTION_WAKE_UP);
        //startService(i);
        Pinboard.get(this).updateAll(false);
        return false;//work is done at this point
    }

    @Override
    public boolean onStopJob(JobParameters params) {
        return false;
    }
}


================================================
FILE: app/src/main/java/de/nproth/pin/receiver/SnoozeNoteReceiver.java
================================================
package de.nproth.pin.receiver;

import android.content.BroadcastReceiver;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.UriMatcher;
import android.net.Uri;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import android.util.Log;
import android.widget.Toast;

import de.nproth.pin.NotesProvider;
import de.nproth.pin.R;
import de.nproth.pin.pinboard.Pinboard;
import de.nproth.pin.pinboard.PinboardService;
import de.nproth.pin.util.Timespan;

import static de.nproth.pin.pinboard.PinboardService.PREFERENCE_SNOOZE_DURATION;

public class SnoozeNoteReceiver extends BroadcastReceiver {

    public static final String ACTION_NOTIFICATION_DISMISSED = "de.nproth.pin.ACTION_NOTIFICATION_DISMISSED";

    private static final int NOTES_ITEM = 1;
    private static final int NOTES_LIST = 2;

    private static final UriMatcher mUris = new UriMatcher(UriMatcher.NO_MATCH);
    static {
        mUris.addURI(NotesProvider.AUTHORITIES, "notes/#", NOTES_ITEM);
        mUris.addURI(NotesProvider.AUTHORITIES, "notes", NOTES_LIST);
    }

    @Override
    public void onReceive(Context context, Intent intent) {

        Uri data = intent.getData();

        if(data == null) {
            Log.e("SnoozeNoteReceiver", "Could not snooze note: uri is null");
            return;
        }

        Intent i = new Intent(context, PinboardService.class);
        i.setData(data);
        i.setAction(PinboardService.INTENT_ACTION_SNOOZE_PIN);

        //context.startService(i);

        Pinboard pin = Pinboard.get(context);

        onSnoozePins(context, pin.getSnoozeDuration(), data);
        pin.updateAll(true);
    }

    /**
     * Called from {@link PinboardService} when this receiver's onReceive method was called and passed an appropriate intent.
     * This cannot be called directly as the snoozeDuration setting is needed which is held by the service and can only be obtained through binding.
     * Binding a service is not possible in a BroadcastReceiver so just start the service and let it take care of the work (and call this method)
     * @return number of updated pins
     */
    public static int onSnoozePins(Context context, long snoozeDuration, Uri data) {
        ContentValues cv = new ContentValues();
        long snoozed = System.currentTimeMillis();

        //cv.put(NotesProvider.Notes.SNOOZED, snoozed);
        cv.put(NotesProvider.Notes.MODIFIED, snoozed);

        cv.put(NotesProvider.Notes.WAKE_UP, snoozed + snoozeDuration);

        switch(mUris.match(data)) {
            case NOTES_ITEM:
                //Check if last path segment is really just a valid id (probably redundant)
                String idstring = data.getLastPathSegment();

                if(TextUtils.isEmpty(idstring) || !TextUtils.isDigitsOnly(idstring)) {
                    Log.e("SnoozeNoteReceiver", String.format("Could not snooze note item: invalid id '%s' in uri '%s'", idstring, data.toString()));
                    return 0;
                }
                //continue to next
            case NOTES_LIST:
                int rows = context.getContentResolver().update(data, cv, "text IS NOT NULL", null);//snooze either on note item or all notes which are not marked as deleted (text is not null)
                Log.d("SnoozeNoteReceiver", String.format("Snoozed %d rows", rows));

                //show a toast if the user had dismissed this pin to indicate that this note will pop up again after some delay
                Toast.makeText(context, context.getResources().getString(R.string.toast_pin_dismissed, new Timespan(context, snoozeDuration).toString()), Toast.LENGTH_SHORT).show();

                return rows;
            default:
                Log.e("SnoozeNoteReceiver", String.format("Could not snooze note: invalid uri '%s'", data.toString()));
                return 0;
        }
    }

}


================================================
FILE: app/src/main/java/de/nproth/pin/util/LifecycleWatcher.java
================================================
package de.nproth.pin.util;

/**
 * Provides a static interface to check whether the boot completed broadcast was received. This allows the app to inform the user that he must disable some energy saving options
 * for this app in order to work properly if appropriate
 */
public final class LifecycleWatcher {
    private static boolean onBoot = false;

    private static boolean userWarned = false;

    public static void informBootReceived() {
        onBoot = true;
    }

    public static void informUserWarned() {
        userWarned = true;
    }

    public static boolean hasBootReceived() {
        return onBoot;
    }

    public static boolean isUserWarned() {
        return userWarned;
    }

    /**
     * For debugging only
     */
    public static void reset() {
        onBoot = false;
        userWarned = true;
    }
}


================================================
FILE: app/src/main/java/de/nproth/pin/util/Timespan.java
================================================
package de.nproth.pin.util;

import android.content.Context;

import de.nproth.pin.R;

/**
 * Utility class that converts a timestamp from milliseconds into something human readable
 */
public final class Timespan {

    public final long millis;
    public final Context mContext;

    public Timespan(Context c, long millis) {
        mContext = c;
        this.millis = millis;
    }

    public double inSecs() {
        return millis / 1000.;
    }

    public double inMins() {
        return millis / 60000.;
    }

    public double inHours() {
        return millis / 3600000.;
    }

    public double inDays() {
        return millis / 86400000.;
    }

    public int restDays() {
        return (int) inDays();
    }

    public int restHours() {
        long millis = this.millis % 86400000;
        return (int) (millis / 3600000);
    }

    public int restMins() {
        long millis = this.millis % 3600000;
        return (int) (millis / 60000);
    }

    public int restSecs() {
        long millis = this.millis % 60000;
        return (int) (millis / 1000);
    }

    @Override
    public String toString() {
        StringBuilder str = new StringBuilder();
        if(restDays() > 0)
            str.append(restDays() + mContext.getString(R.string.symbol_time_days) + " ");
        if(restHours() > 0)
            str.append(restHours() + mContext.getString(R.string.symbol_time_hours) + " ");
        if(restMins() > 0)
            str.append(restMins() + mContext.getString(R.string.symbol_time_minutes) + " ");
        if(restSecs() > 0 || str.length() == 0)
            str.append(restSecs() + mContext.getString(R.string.symbol_time_seconds) + " ");
        str.deleteCharAt(str.length() - 1);
        return str.toString();
    }
}


================================================
FILE: app/src/main/res/anim/activity_enter.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <scale android:fromXScale="200%" android:fromYScale="400%" android:toXScale="100%" android:toYScale="100%" android:interpolator="@android:anim/decelerate_interpolator" android:pivotX="50%" android:pivotY="50%" android:startOffset="0" android:duration="@android:integer/config_shortAnimTime" android:fillAfter="false" android:fillEnabled="true"/>
    <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:interpolator="@android:anim/decelerate_interpolator" android:duration="@android:integer/config_shortAnimTime" android:startOffset="0" android:fillBefore="false" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/activity_exit.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <scale android:fromXScale="100%" android:fromYScale="100%" android:toXScale="200%" android:toYScale="400%" android:interpolator="@android:anim/accelerate_interpolator" android:pivotX="50%" android:pivotY="50%" android:startOffset="0" android:duration="@android:integer/config_shortAnimTime" android:fillAfter="false" android:fillEnabled="true" android:fillBefore="false"/>
    <alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:interpolator="@android:anim/accelerate_interpolator" android:duration="@android:integer/config_shortAnimTime" android:startOffset="0" android:fillBefore="false" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_enter_input_field.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate android:fromYDelta="150%" android:toYDelta="0%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="0" android:duration="500" android:fillAfter="false" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_enter_note_save_button.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate android:fromXDelta="150%" android:toXDelta="0%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="0" android:duration="500" android:fillAfter="false" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_enter_snooze_duration_button.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate android:fromXDelta="-150%" android:toXDelta="0%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="0" android:duration="500" android:fillAfter="false" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_exit_input_field.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate android:fromYDelta="0%" android:toYDelta="150%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="0" android:duration="500" android:fillAfter="false" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_exit_note_save_button.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate android:fromXDelta="0%" android:toXDelta="150%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="0" android:duration="500" android:fillAfter="false" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_exit_snooze_duration_button.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate android:fromXDelta="0%" android:toXDelta="-150%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="0" android:duration="500" android:fillAfter="false" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_input_field_empty.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate android:fromYDelta="0%" android:toYDelta="-3%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="0" android:duration="35" android:fillAfter="false" android:fillEnabled="true"/>
    <translate android:fromYDelta="-3%" android:toYDelta="3%" android:interpolator="@android:anim/accelerate_decelerate_interpolator" android:startOffset="35" android:duration="70" android:fillAfter="false" android:fillBefore="false" android:fillEnabled="true"/>
    <translate android:fromYDelta="3%" android:toYDelta="0%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="105" android:duration="35" android:fillBefore="false" android:fillEnabled="true"/>

    <translate android:fromYDelta="0%" android:toYDelta="-3%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="140" android:duration="35" android:fillAfter="false" android:fillEnabled="true"/>
    <translate android:fromYDelta="-3%" android:toYDelta="3%" android:interpolator="@android:anim/accelerate_decelerate_interpolator" android:startOffset="175" android:duration="70" android:fillAfter="false" android:fillBefore="false" android:fillEnabled="true"/>
    <translate android:fromYDelta="3%" android:toYDelta="0%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="245" android:duration="35" android:fillBefore="false" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_input_field_pin.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">
    <translate android:fromYDelta="0%" android:toYDelta="-200%" android:interpolator="@android:anim/accelerate_interpolator" android:startOffset="0" android:duration="175" android:fillAfter="false" android:fillEnabled="true"/>
    <alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:interpolator="@android:anim/accelerate_interpolator" android:startOffset="0" android:duration="175" android:fillAfter="false" android:fillEnabled="true"/>

    <translate android:fromYDelta="100%" android:toYDelta="0%" android:interpolator="@android:anim/decelerate_interpolator" android:startOffset="175" android:duration="500" android:fillBefore="false" android:fillEnabled="true"/>
    <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:interpolator="@android:anim/decelerate_interpolator" android:duration="500" android:startOffset="175" android:fillBefore="false" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_pop_in.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"  android:interpolator="@android:interpolator/bounce"
    android:duration="@android:integer/config_mediumAnimTime">
    <scale android:fromXScale="10%" android:fromYScale="10%" android:toXScale="100%" android:toYScale="100%" android:pivotX="50%" android:pivotY="50%"  android:fillAfter="true" android:fillEnabled="true"/>
    <alpha android:fromAlpha="0" android:toAlpha="1.0" android:fillAfter="true" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_pop_out.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"  android:interpolator="@android:interpolator/bounce"
    android:duration="@android:integer/config_mediumAnimTime" android:fillAfter="true" android:fillEnabled="true">
    <scale android:fromXScale="100%" android:fromYScale="100%" android:toXScale="10%" android:toYScale="10%" android:pivotX="50%" android:pivotY="50%" android:fillAfter="true" android:fillEnabled="true"/>
    <alpha android:fromAlpha="1.0" android:toAlpha="0" android:fillAfter="true" android:fillEnabled="true"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_rotary_control.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" android:duration="@android:integer/config_longAnimTime">
    <scale android:fromXScale="50%" android:fromYScale="50%" android:toXScale="100%" android:toYScale="100%" android:pivotX="50%" android:pivotY="50%" android:interpolator="@android:anim/overshoot_interpolator"/>
</set>

================================================
FILE: app/src/main/res/anim/anim_rotary_set.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <scale android:fromXScale="100%" android:fromYScale="100%" android:toXScale="125%" android:toYScale="125%" android:pivotX="50%" android:pivotY="50%" android:interpolator="@android:anim/accelerate_interpolator" android:duration="125" android:fillBefore="false" android:fillAfter="false" android:fillEnabled="true"/>
    <alpha android:fromAlpha="1" android:toAlpha="0"  android:interpolator="@android:anim/decelerate_interpolator" android:duration="125"  android:fillBefore="false" android:fillAfter="false" android:fillEnabled="true"/>

    <scale android:fromXScale="50%" android:fromYScale="50%" android:toXScale="100%" android:toYScale="100%" android:pivotX="50%" android:pivotY="50%" android:interpolator="@android:anim/overshoot_interpolator" android:duration="250" android:startOffset="125"  android:fillBefore="false" android:fillAfter="false" android:fillEnabled="true"/>
    <!--<alpha android:fromAlpha="0.25" android:toAlpha="1"  android:interpolator="@android:anim/accelerate_interpolator" android:duration="125" android:startOffset="125"  android:fillBefore="false" android:fillAfter="false" android:fillEnabled="true"/>-->
</set>

================================================
FILE: app/src/main/res/animator/state_anim_button.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true">
        <set>
            <objectAnimator android:propertyName="scaleX"
                android:duration="50"
                android:valueTo="0.95"
                android:valueType="floatType"/>
            <objectAnimator android:propertyName="scaleY"
                android:duration="50"
                android:valueTo="0.95"
                android:valueType="floatType"/>
        </set>
    </item>
    <!-- the default, non-pressed state; set x and y size to 100% -->
    <item android:state_pressed="false">
    <set>
        <objectAnimator android:propertyName="scaleX"
            android:duration="50"
            android:valueTo="1"
            android:valueType="floatType"/>
        <objectAnimator android:propertyName="scaleY"
            android:duration="50"
            android:valueTo="1"
            android:valueType="floatType"/>
    </set>
    </item>
</selector>

================================================
FILE: app/src/main/res/drawable/background_button_actionbutton.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true" android:drawable="@drawable/background_button_actionbutton_pressed"/>
    <item android:state_selected="true" android:drawable="@drawable/background_button_actionbutton_selected"/>
    <item android:state_focused="true" android:drawable="@drawable/background_button_actionbutton_selected"/>
    <item android:drawable="@drawable/background_button_actionbutton_default"/>
</selector>

================================================
FILE: app/src/main/res/drawable/background_button_actionbutton_default.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" >
    <solid android:color="@color/colorPrimary"/>
    <size android:width="56dp" android:height="56dp"/>
</shape>

================================================
FILE: app/src/main/res/drawable/background_button_actionbutton_pressed.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" >
    <solid android:color="@color/colorPrimaryDark"/>
    <size android:width="56dp" android:height="56dp"/>
</shape>

================================================
FILE: app/src/main/res/drawable/background_button_actionbutton_selected.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" >
    <solid android:color="@color/colorPrimaryLight"/>
    <size android:width="56dp" android:height="56dp"/>
</shape>

================================================
FILE: app/src/main/res/drawable/background_button_light.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true">
        <shape android:shape="oval">
            <solid android:color="@color/colorPrimaryLight"/>
            <size android:width="24dp" android:height="24dp"/>
        </shape>
    </item>

    <item android:state_selected="true">
        <shape android:shape="oval">
            <solid android:color="@color/colorPrimaryLight"/>
            <size android:width="24dp" android:height="24dp"/>
        </shape>
    </item>

    <item android:state_focused="true">
        <shape android:shape="oval">
            <solid android:color="@color/colorPrimaryLight"/>
            <size android:width="24dp" android:height="24dp"/>
        </shape>
    </item>

    <item>
        <shape android:shape="oval">
            <solid android:color="@color/colorPrimaryVeryLight"/>
            <size android:width="24dp" android:height="24dp"/>
        </shape>
    </item>
</selector>

================================================
FILE: app/src/main/res/drawable/background_rotary.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:insetBottom="24dp"
android:insetLeft="24dp"
android:insetRight="24dp"
android:insetTop="24dp">
    <shape android:shape="oval" >
        <solid android:color="#424242"/>
        <size android:width="88dp" android:height="88dp"/>
    </shape>
</inset>


================================================
FILE: app/src/main/res/drawable/background_textfield.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
    <solid android:color="@color/colorSecondary"/>
    <corners android:radius="2dp"/>
</shape>

================================================
FILE: app/src/main/res/drawable/bar.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="88dp"
    android:height="88dp"
    android:viewportWidth="23.283333"
    android:viewportHeight="23.283335">
  <path
      android:pathData="m3.2489,15.5553a9.2604,9.2604 0,0 1,2.6491 -11.1776,9.2604 9.2604,0 0,1 11.4873,0 9.2604,9.2604 0,0 1,2.6491 11.1776"
      android:strokeWidth="1.05833334"
      android:fillColor="#00000000"
      android:strokeColor="#ffffff"
      android:fillAlpha="1"
      android:strokeLineCap="butt"/>
</vector>


================================================
FILE: app/src/main/res/drawable/bar2.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="88dp"
    android:height="88dp"
    android:viewportWidth="23.283333"
    android:viewportHeight="23.283335">
  <path
      android:pathData="M11.6225,1.3229C5.9475,1.3339 1.3339,5.9475 1.3229,11.6225L1.3229,11.6629C1.3256,13.061 1.6082,14.3942 2.1167,15.6104L3.5652,15.6104C2.9774,14.4141 2.6464,13.0681 2.6464,11.6427C2.6464,6.6666 6.6666,2.6464 11.6427,2.6464C16.6188,2.6464 20.6365,6.6666 20.6365,11.6427C20.6365,13.0681 20.3057,14.4141 19.7182,15.6104L21.1672,15.6104C21.6755,14.3942 21.9577,13.061 21.9604,11.6629L21.9604,11.6225C21.9495,5.9475 17.3379,1.3339 11.6629,1.3229L11.6225,1.3229z"
      android:strokeAlpha="1"
      android:strokeLineJoin="miter"
      android:strokeWidth="5"
      android:fillColor="#ffffff"
      android:strokeColor="#00000000"
      android:fillType="nonZero"
      android:fillAlpha="1"
      android:strokeLineCap="butt"/>
</vector>


================================================
FILE: app/src/main/res/drawable/ic_launcher_background.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="108dp"
    android:height="108dp"
    android:viewportHeight="108"
    android:viewportWidth="108">
    <path
        android:fillColor="#26A69A"
        android:pathData="M0,0h108v108h-108z" />
    <path
        android:fillColor="#00000000"
        android:pathData="M9,0L9,108"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M19,0L19,108"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M29,0L29,108"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M39,0L39,108"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M49,0L49,108"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M59,0L59,108"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M69,0L69,108"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M79,0L79,108"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M89,0L89,108"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M99,0L99,108"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M0,9L108,9"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M0,19L108,19"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M0,29L108,29"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M0,39L108,39"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M0,49L108,49"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M0,59L108,59"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M0,69L108,69"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M0,79L108,79"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M0,89L108,89"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M0,99L108,99"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M19,29L89,29"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M19,39L89,39"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M19,49L89,49"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M19,59L89,59"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M19,69L89,69"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M19,79L89,79"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M29,19L29,89"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M39,19L39,89"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M49,19L49,89"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M59,19L59,89"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M69,19L69,89"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
    <path
        android:fillColor="#00000000"
        android:pathData="M79,19L79,89"
        android:strokeColor="#33FFFFFF"
        android:strokeWidth="0.8" />
</vector>


================================================
FILE: app/src/main/res/drawable/ic_launcher_foreground.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="108dp"
        android:height="108dp"
        android:viewportWidth="14.816666"
        android:viewportHeight="14.816667">
  <path
      android:pathData="m5.0271,6.6146a0.5613,0.5613 0,0 0,0.7937 0l1.1906,1.1906 -0.3969,0.3969a0.5613,0.5613 0,0 0,0 0.7937l0.3969,-0.3969 0.3969,-0.3969 0.1984,-0.1984 1.7859,1.7859 0.3969,-0 0,-0.3969 -1.7859,-1.7859 0.1984,-0.1984 0.3969,-0.3969 0.3969,-0.3969a0.5613,0.5613 0,0 0,-0.7938 0l-0.3969,0.3969 -1.1906,-1.1906a0.5613,0.5613 0,0 0,0 -0.7937l-0.3969,0.3969 -0.7938,0.7937z"
      android:strokeAlpha="1"
      android:strokeWidth="16.87502289"
      android:fillColor="#ffffff"
      android:strokeColor="#00000000"
      android:fillAlpha="1"
      android:strokeLineCap="square"/>
</vector>


================================================
FILE: app/src/main/res/drawable/ic_pin_icon_black.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="6.35"
    android:viewportHeight="6.3500004">
  <path
      android:pathData="m0.79375,2.38123a0.56127,0.56127 0,0 0,0.79375 0l1.19063,1.19062 -0.39688,0.39687a0.56127,0.56127 0,0 0,0 0.79375l0.39688,-0.39687 0.39688,-0.39687 0.19844,-0.19844 1.78594,1.78594 0.39687,-0.00001 0,-0.39687 -1.78594,-1.78594 0.19844,-0.19844 0.39688,-0.39686 0.39688,-0.39688a0.56127,0.56127 0,0 0,-0.79375 0l-0.39688,0.39687 -1.19063,-1.19063a0.56127,0.56127 0,0 0,0 -0.79374l-0.39688,0.39688 -0.79375,0.79374z"
      android:fillColor="#000000"/>
</vector>


================================================
FILE: app/src/main/res/drawable/ic_pin_icon_white.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="6.35"
    android:viewportHeight="6.3500004">
  <path
      android:pathData="m0.79375,2.38123a0.56127,0.56127 0,0 0,0.79375 0l1.19063,1.19062 -0.39688,0.39687a0.56127,0.56127 0,0 0,0 0.79375l0.39688,-0.39687 0.39688,-0.39687 0.19844,-0.19844 1.78594,1.78594 0.39687,-0.00001 0,-0.39687 -1.78594,-1.78594 0.19844,-0.19844 0.39688,-0.39686 0.39688,-0.39688a0.56127,0.56127 0,0 0,-0.79375 0l-0.39688,0.39687 -1.19063,-1.19063a0.56127,0.56127 0,0 0,0 -0.79374l-0.39688,0.39688 -0.79375,0.79374z"
      android:fillColor="#FFFFFF"/>
</vector>


================================================
FILE: app/src/main/res/drawable/ic_pin_notification.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:alpha="0.8"
    android:viewportWidth="6.35"
    android:viewportHeight="6.3500004">
  <path
      android:pathData="m0.79375,2.38123a0.56127,0.56127 0,0 0,0.79375 0l1.19063,1.19062 -0.39688,0.39687a0.56127,0.56127 0,0 0,0 0.79375l0.39688,-0.39687 0.39688,-0.39687 0.19844,-0.19844 1.78594,1.78594 0.39687,-0.00001 0,-0.39687 -1.78594,-1.78594 0.19844,-0.19844 0.39688,-0.39686 0.39688,-0.39688a0.56127,0.56127 0,0 0,-0.79375 0l-0.39688,0.39687 -1.19063,-1.19063a0.56127,0.56127 0,0 0,0 -0.79374l-0.39688,0.39688 -0.79375,0.79374z"
      android:fillColor="#FFFFFF"/>
</vector>


================================================
FILE: app/src/main/res/drawable/ic_pin_statusbar.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:alpha="1"
    android:viewportWidth="6.35"
    android:viewportHeight="6.3500004">
    <path
        android:pathData="m0.79375,2.38123a0.56127,0.56127 0,0 0,0.79375 0l1.19063,1.19062 -0.39688,0.39687a0.56127,0.56127 0,0 0,0 0.79375l0.39688,-0.39687 0.39688,-0.39687 0.19844,-0.19844 1.78594,1.78594 0.39687,-0.00001 0,-0.39687 -1.78594,-1.78594 0.19844,-0.19844 0.39688,-0.39686 0.39688,-0.39688a0.56127,0.56127 0,0 0,-0.79375 0l-0.39688,0.39687 -1.19063,-1.19063a0.56127,0.56127 0,0 0,0 -0.79374l-0.39688,0.39688 -0.79375,0.79374z"
        android:fillColor="#FFFFFF"/>
</vector>

================================================
FILE: app/src/main/res/drawable/ic_timespan.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="6.35"
    android:viewportHeight="6.3500004">
  <path
      android:pathData="m2.91042,3.17502v-1.58751h0.52917v1.58751z"
      android:strokeAlpha="1"
      android:strokeLineJoin="miter"
      android:strokeWidth="0.26458335"
      android:fillColor="#ffffff"
      android:strokeColor="#00000000"
      android:strokeLineCap="butt"/>
  <path
      android:pathData="m3.36209,2.98788 l1.49672,1.49672 -0.37419,0.37417 -1.4967,-1.4967z"
      android:strokeAlpha="1"
      android:strokeLineJoin="miter"
      android:strokeWidth="0.26458335"
      android:fillColor="#ffffff"
      android:strokeColor="#00000000"
      android:strokeLineCap="butt"/>
  <path
      android:pathData="M3.175,3.17499m-0.26458,0a0.26458,0.26458 0,1 1,0.52917 0a0.26458,0.26458 0,1 1,-0.52917 0"
      android:strokeWidth="1.32291675"
      android:fillColor="#ffffff"
      android:strokeColor="#00000000"
      android:fillAlpha="1"
      android:strokeLineCap="butt"/>
  <path
      android:pathData="M3.43958,0.01344L3.43958,3.06545L5.59914,5.225A3.175,3.175 135,0 0,6.35 3.175A3.175,3.175 0,0 0,3.43958 0.01344z"
      android:strokeAlpha="0.5"
      android:strokeWidth="5.00000048"
      android:fillColor="#ffffff"
      android:strokeColor="#00000000"
      android:fillAlpha="0.5"
      android:strokeLineCap="butt"/>
</vector>


================================================
FILE: app/src/main/res/drawable/ic_warn.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="6.35"
    android:viewportHeight="6.3500004">
  <path
      android:pathData="M0.79375,4.76245L5.55625,4.76245l-2.38125,-4.23333z"
      android:strokeAlpha="1"
      android:strokeLineJoin="round"
      android:strokeWidth="0.5291667"
      android:fillColor="#00000000"
      android:strokeColor="#ffffff"
      android:strokeLineCap="square"/>
  <path
      android:pathData="M2.91042,3.70416h0.52917v0.52917h-0.52917z"
      android:strokeLineJoin="round"
      android:strokeWidth="0.52916664"
      android:fillColor="#ffffff"
      android:fillAlpha="1"
      android:strokeLineCap="square"/>
  <path
      android:pathData="M2.91042,2.38129h0.52917v1.05833h-0.52917z"
      android:strokeLineJoin="round"
      android:strokeWidth="0.52916664"
      android:fillColor="#ffffff"
      android:fillAlpha="1"
      android:strokeLineCap="square"/>
</vector>


================================================
FILE: app/src/main/res/drawable/scale.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="88dp"
    android:height="88dp"
    android:viewportWidth="23.283333"
    android:viewportHeight="23.283335">
  <path
      android:pathData="m3.8484,15.2757a8.599,8.599 0,0 1,2.4599 -10.3792,8.599 8.599,0 0,1 10.6668,0 8.599,8.599 0,0 1,2.4599 10.3792"
      android:strokeWidth="0.26458335"
      android:fillColor="#00000000"
      android:strokeColor="#ffffff"
      android:fillAlpha="1"
      android:strokeLineCap="square"/>
  <path
      android:pathData="M2.2902,16.0023 L3.9688,15.2196"
      android:strokeAlpha="1"
      android:strokeLineJoin="miter"
      android:strokeWidth="0.26458335"
      android:fillColor="#00000000"
      android:strokeColor="#ffffff"
      android:strokeLineCap="butt"/>
  <path
      android:pathData="m21.1135,16.0584 l-1.6786,-0.7827"
      android:strokeAlpha="1"
      android:strokeLineJoin="miter"
      android:strokeWidth="0.26458335"
      android:fillColor="#00000000"
      android:strokeColor="#ffffff"
      android:strokeLineCap="butt"/>
</vector>


================================================
FILE: app/src/main/res/drawable/scale2.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="88dp"
    android:height="88dp"
    android:viewportWidth="23.283333"
    android:viewportHeight="23.283335">
  <path
      android:pathData="M11.6427,2.6464C6.676,2.6464 2.6464,6.676 2.6464,11.6427C2.6464,13.0671 2.9789,14.4134 3.5688,15.6104L3.8644,15.6104C3.2557,14.4198 2.9099,13.0722 2.9099,11.6427C2.9099,6.819 6.819,2.9099 11.6427,2.9099C16.4664,2.9099 20.3729,6.819 20.3729,11.6427C20.3729,13.0722 20.0279,14.4198 19.4195,15.6104L19.7146,15.6104C20.3042,14.4134 20.6365,13.0671 20.6365,11.6427C20.6365,6.676 16.6094,2.6464 11.6427,2.6464z"
      android:strokeAlpha="1"
      android:strokeLineJoin="miter"
      android:strokeWidth="1"
      android:fillColor="#ffffff"
      android:strokeColor="#00000000"
      android:fillType="nonZero"
      android:fillAlpha="1"
      android:strokeLineCap="butt"/>
</vector>


================================================
FILE: app/src/main/res/layout/activity_note.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clickable="true"
    android:focusable="false"
    android:onClick="onParentLayoutClicked"
    android:theme="@style/AppTheme"
    tools:context=".NoteActivity"
    tools:ignore="UsingOnClickInXml">

    <de.nproth.pin.RotaryControlView
        android:id="@+id/snooze_duration_slider"
        android:layout_width="136dp"
        android:layout_height="136dp"
        android:layout_above="@id/note_input_field"
        android:padding="24dp"
        android:layout_marginBottom="-56dp"
        android:layout_marginLeft="-16dp"
        android:layout_marginStart="-16dp"
        android:layout_marginRight="0dp"
        android:layout_marginEnd="0dp"
        android:background="@drawable/background_rotary"
        android:elevation="4dp"
        android:stateListAnimator="@animator/state_anim_button"
        app:barDrawable="@drawable/bar2"
        app:scaleDrawable="@drawable/scale2"
        app:value="100"
        app:startAngle="155"
        app:endAngle="25"
        android:alpha="0.9"/>

    <Button
        android:id="@+id/snooze_duration_button"
        android:layout_width="56dp"
        android:layout_height="56dp"
        android:layout_above="@id/note_input_field"
        android:layout_alignStart="@id/note_input_field"
        android:layout_alignLeft="@id/note_input_field"
        android:layout_marginStart="16dp"
        android:layout_marginLeft="16dp"
        android:layout_marginBottom="-16dp"
        android:background="@drawable/background_button_actionbutton"
        android:elevation="8dp"
        android:nextFocusForward="@id/note_input_field"
        android:onClick="onSetSnoozeDurationButtonClicked"
        android:stateListAnimator="@animator/state_anim_button"
        android:text="@string/text_default_button_snooze_duration"
        android:textAllCaps="false"
        android:textColor="@color/colorSecondary" />

    <EditText
        android:id="@+id/note_input_field"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_margin="8dp"
        android:background="@drawable/background_textfield"
        android:elevation="16dp"
        android:focusedByDefault="true"
        android:hint="@string/note_text_hint"
        android:imeOptions="actionDone"
        android:inputType="textCapSentences|textAutoCorrect"
        android:nextFocusForward="@id/note_save_button"
        android:paddingStart="8dp"
        android:paddingLeft="8dp"
        android:paddingTop="8dp"
        android:paddingEnd="72dp"
        android:paddingRight="72dp"
        android:paddingBottom="8dp">
        <requestFocus/>
    </EditText>

    <ImageButton
        android:id="@+id/note_pin_background"
        android:layout_width="24dp"
        android:layout_height="24dp"
        android:layout_above="@+id/note_save_button"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true"
        android:layout_marginRight="8dp"
        android:layout_marginEnd="8dp"
        android:onClick="onNotePinBackgroundButtonClicked"
        android:background="@drawable/background_button_light"
        android:src="@drawable/ic_timespan"
        android:elevation="16dp"/>

    <ImageButton
        android:id="@+id/note_save_button"
        android:layout_width="56dp"
        android:layout_height="56dp"
        android:layout_above="@id/note_input_field"
        android:layout_alignEnd="@id/note_input_field"
        android:layout_alignRight="@id/note_input_field"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:layout_marginBottom="-36dp"
        android:background="@drawable/background_button_actionbutton"
        android:elevation="24dp"
        android:nextFocusForward="@id/snooze_duration_button"
        android:onClick="onNoteSaveButtonClicked"
        android:padding="16dp"
        android:src="@drawable/ic_pin_icon_white"
        android:stateListAnimator="@animator/state_anim_button" />
</RelativeLayout>

================================================
FILE: app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@color/ic_launcher_background"/>
    <foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

================================================
FILE: app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@color/ic_launcher_background"/>
    <foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

================================================
FILE: app/src/main/res/values/attrs_rotary_control_view.xml
================================================
<resources>
    <declare-styleable name="RotaryControlView">
        <attr name="scaleDrawable" format="reference" />
        <attr name="barDrawable" format="reference" />
        <attr name="startAngle" format="float" />
        <attr name="endAngle" format="float" />
        <attr name="min" format="integer" />
        <attr name="max" format="integer" />
        <attr name="step" format="integer" />
        <attr name="value" format="integer" />
    </declare-styleable>
</resources>


================================================
FILE: app/src/main/res/values/colors.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="colorPrimary">#212121</color>
    <color name="colorPrimaryDark">#000000</color>
    <color name="colorPrimaryLight">#484848</color>
    <color name="colorPrimaryVeryLight">#737373</color>
    <color name="colorSecondary">#FFFFFF</color>
    <color name="activityBackground">#00FFFFFF</color>
</resources>


================================================
FILE: app/src/main/res/values/ic_launcher_background.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="ic_launcher_background">#212121</color>
</resources>

================================================
FILE: app/src/main/res/values/strings.xml
================================================
<resources>
    <string name="app_name" translatable="false">p!n</string>
    <string name="note_text_hint">Your note</string>

    <string name="channel_name_pin">Newly added notes</string>
    <string name="channel_description_pin">Newly created notes are pushed to this notification channel to be shown silently.</string>

    <string name="channel_name_wake">Wake up alert</string>
    <string name="channel_description_wake">Snoozed notes that wake up are pushed to this notification channel and issue an alert.</string>

    <plurals name="notification_summary_title">
        <item quantity="one">%d pin</item>
        <item quantity="other">%d pins</item>
    </plurals>

    <string name="text_default_button_snooze_duration" translatable="false">-:--</string>
    <string name="ftext_button_snooze_duration" translatable="false">%1$01d:%2$02d</string>
    <string name="ftext_button_zero_snooze" translatable="false">%1$2ds</string>

    <string name="action_delete">Done</string>
    <string name="action_snooze">Snooze %1$s</string>
    <string name="action_edit">Edit</string>

    <string name="toast_pin_dismissed">Snoozed for %1$s</string>
    <string name="toast_pin_background">Show in %1$s</string>

    <string name="symbol_time_seconds">s</string>
    <string name="symbol_time_minutes">min</string>
    <string name="symbol_time_hours">h</string>
    <string name="symbol_time_days">d</string>

    <string name="toast_show_all">Show All Notes</string>

    <string name="toast_fix_pins">Lock Pins</string>
    <string name="toast_unfix_pins">Unlock Pins</string>

    <string name="qstile_label">Open p!n</string>

</resources>


================================================
FILE: app/src/main/res/values/styles.xml
================================================
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorPrimaryLight</item>

        <item name="android:windowBackground">@color/activityBackground</item>
        <item name="android:windowIsTranslucent">true</item>
    </style>

    <style name="WindowAnimationStyle">
        <item name="android:windowEnterAnimation">@anim/activity_enter</item>
        <item name="android:windowExitAnimation">@anim/activity_exit</item>
    </style>

</resources>


================================================
FILE: app/src/main/res/values/values.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- in milliseconds -->
    <!--<integer name="zero_snooze_duration">10000</integer>-->

    <!-- Not currently in use -->
    <integer-array name="zero_snooze_durations">
        <!--<item>1000</item>--><!-- 10sec: 1sec -->
        <!--<item>5000</item>--><!-- 1min: 5sec -->
        <item>5000</item><!-- 0:30h: 5sec -->
        <item>10000</item><!-- 1:00h: 10sec -->
        <!--<item>30000</item><!- 1:30h: 30sec -->
        <!--<item>30000</item><!- 2:00h: 30sec -->
        <item>15000</item><!-- 3:00h: 30sec -->
        <item>30000</item><!-- 6:00h: 10sec -->
        <item>30000</item><!-- 12:00h: 30sec -->
        <item>30000</item><!-- 24:00h: 30sec -->
    </integer-array>

    <integer-array name="snooze_durations">
        <!--<item>10000</item>--><!-- 10sec -->
        <!--<item>60000</item>--><!-- 1min -->
        <item>1800000</item><!-- 0:30h -->
        <item>3600000</item><!-- 1:00h -->
        <!--<item>5400000</item><!- 1:30h -->
        <!--<item>7200000</item><!- 2:00h -->
        <item>10800000</item><!-- 3:00h -->
        <item>21600000</item><!-- 6:00h -->
        <item>43200000</item><!-- 12:00h -->
        <item>86400000</item><!-- 24:00h -->
    </integer-array>

    <integer-array name="snooze_duration_steps">
        <!--<item>1000</item>--><!-- 10sec: 1sec -->
        <!--<item>5000</item>--><!-- 1min: 5sec -->
        <item>60000</item><!-- 0:30h: 1min -->
        <item>300000</item><!-- 1:00h: 5min -->
        <!--<item>5400000</item><!- 1:30h -->
        <!--<item>600000</item><!- 2:00h: 10min -->
        <item>600000</item><!-- 3:00h: 10min -->
        <item>900000</item><!-- 6:00h: 15min -->
        <item>1800000</item><!-- 12:00h: 30min -->
        <item>3600000</item><!-- 24:00h: 1h -->
    </integer-array>
</resources>

================================================
FILE: app/src/main/res/values-de/strings.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="note_text_hint">Neue Notiz</string>

    <string name="channel_name_pin">Neu erstellte Notizen</string>
    <string name="channel_description_pin">Neu erstellte Notizen werden zu diesem stummen Benachrichtigungskanal hinzugefügt</string>

    <string name="channel_name_wake">Aufgeweckte Notizen</string>
    <string name="channel_description_wake">Wieder sichtbar gewordene Notizen werden in diesem Kanal angezeigt und machen je nach Systemkonfiguration mit Ton oder Vibration auf sich aufmerksam.</string>

    <plurals name="notification_summary_title">
        <item quantity="one">%d Notiz</item>
        <item quantity="other">%d Notizen</item>
    </plurals>

    <string name="action_delete">Löschen</string>
    <string name="action_snooze">%1$s Verbergen</string>
    <string name="action_edit">Bearbeiten</string>

    <string name="toast_pin_dismissed">Erinnerung in %1$s</string>
    <string name="toast_pin_background">Sichtbar in %1$s</string>

    <string name="symbol_time_seconds">s</string>
    <string name="symbol_time_minutes">min</string>
    <string name="symbol_time_hours">h</string>
    <string name="symbol_time_days">d</string>

    <string name="toast_show_all">Alle sichtbar</string>

    <string name="toast_fix_pins">Notizen fixiert</string>
    <string name="toast_unfix_pins">Notizen nicht fixiert</string>

    <string name="qstile_label">p!n öffnen</string>
</resources>

================================================
FILE: app/src/main/res/values-it/strings.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="note_text_hint">Nota</string>

    <string name="channel_name_pin">Note appena aggiunte</string>
    <string name="channel_description_pin">Le note appena create verrano inviate nell\'area di notifica senza avviso acustico.</string>

    <string name="channel_name_wake">Notifica di riattivazione</string>
    <string name="channel_description_wake">Le note posticipate che si riattivano verranno inviate nell\'area di notifica con un avviso acustico.</string>

    <plurals name="notification_summary_title">
        <item quantity="one">%d pin</item>
        <item quantity="other">%d pin</item>
    </plurals>

    <string name="action_delete">Fatto</string>
    <string name="action_snooze">Posticipa %1$s</string>
    <string name="action_edit">Modifica</string>

    <string name="toast_pin_dismissed">Posticipato di %1$s</string>
    <string name="toast_pin_background">Mostra tra %1$s</string>

    <string name="symbol_time_seconds">s</string>
    <string name="symbol_time_minutes">min</string>
    <string name="symbol_time_hours">h</string>
    <string name="symbol_time_days">g</string>

    <string name="toast_show_all">Mostra tutte le note</string>

    <string name="toast_fix_pins">Notifiche bloccate</string>
    <string name="toast_unfix_pins">Notifiche sbloccate</string>

    <string name="qstile_label">Apri p!n</string>
</resources>

================================================
FILE: app/src/main/res/values-ja/strings.xml
================================================
<resources>
    <string name="app_name" translatable="false">p!n</string>
    <string name="note_text_hint">メモを入力</string>

    <string name="channel_name_pin">新しく追加したメモ</string>
    <string name="channel_description_pin">新たに作成されたメモは、この通知チャネルにプッシュされ、サイレント表示されます。</string>

    <string name="channel_name_wake">Wake up alert</string>
    <string name="channel_description_wake">スヌーズされたメモは、この通知チャネルにプッシュされ、アラートがなります。</string>

    <plurals name="notification_summary_title">
        <item quantity="other">%d 個のメモ</item>
    </plurals>

    <string name="text_default_button_snooze_duration" translatable="false">-:--</string>
    <string name="ftext_button_snooze_duration" translatable="false">%1$01d:%2$02d</string>
    <string name="ftext_button_zero_snooze" translatable="false">%1$2ds</string>

    <string name="action_delete">完了</string>
    <string name="action_snooze">%1$s スヌーズ</string>
    <string name="action_edit">編集</string>

    <string name="toast_pin_dismissed">%1$s スヌーズされました</string>
    <string name="toast_pin_background">%1$s で表示されます</string>

    <string name="symbol_time_seconds">秒間</string>
    <string name="symbol_time_minutes">分間</string>
    <string name="symbol_time_hours">時間</string>
    <string name="symbol_time_days">日</string>

    <string name="toast_show_all">全てのノートを表示</string>

    <string name="toast_fix_pins">ピン留めをロック</string>
    <string name="toast_unfix_pins">ピン留めのロックを解除</string>

    <string name="qstile_label">p!nを開く</string>

</resources>


================================================
FILE: app/src/main/res/values-pl/strings.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="note_text_hint">Twoja notatka</string>

    <string name="channel_name_pin">Nowe notatki</string>
    <string name="channel_description_pin">Nowo utworzone notatki umieszczane w kanale cichych powiadomień.</string>

    <string name="channel_name_wake">Uśpione notatki</string>
    <string name="channel_description_wake">Notatki pojawiące się po określonym czasie.</string>

    <plurals name="notification_summary_title">
        <item quantity="one">%d Notatka</item>
        <item quantity="few">%d Notatki</item>
        <item quantity="many">%d Notatek</item>
    </plurals>

    <string name="action_delete">Usuń</string>
    <string name="action_snooze">Uśpij na %1$s</string>
    <string name="action_edit">Edytuj</string>

    <string name="toast_pin_dismissed">Uśpiono na %1$s</string>
    <string name="toast_pin_background">Pokaż za %1$s</string>

    <string name="symbol_time_seconds">s</string>
    <string name="symbol_time_minutes">min</string>
    <string name="symbol_time_hours">h</string>
    <string name="symbol_time_days">d</string>

    <string name="toast_show_all">Pokaż wszystkie notatki</string>

    <string name="toast_fix_pins">Notatki przypięte</string>
    <string name="toast_unfix_pins">Notatki nieprzypięte</string>

    <string name="qstile_label">Otwórz p!n</string>
</resources>

================================================
FILE: app/src/main/res/values-ru/strings.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="note_text_hint">Ваша записка</string>

    <string name="channel_name_pin">Новые записки</string>
    <string name="channel_description_pin">Новые записки тихо показываются тут.</string>

    <string name="channel_name_wake">Возвращающиеся записки</string>
    <string name="channel_description_wake">Отложенные записки возвращаются сюда.</string>

    <plurals name="notification_summary_title">
        <item quantity="one">%d Записка</item>
        <item quantity="few">%d Записки</item>
        <item quantity="other">%d Записок</item>
    </plurals>

    <string name="action_delete">Удалить</string>
    <string name="action_snooze">Отложить на %1$с</string>
    <string name="action_edit">Править</string>

    <string name="toast_pin_dismissed">Отложено на %1$с</string>
    <string name="toast_pin_background">Появится через %1$с</string>

    <string name="symbol_time_seconds">с</string>
    <string name="symbol_time_minutes">мин</string>
    <string name="symbol_time_hours">ч</string>
    <string name="symbol_time_days">д</string>

    <string name="toast_show_all">Показать все записки</string>

    <string name="toast_fix_pins">Закрепить записки</string>
    <string name="toast_unfix_pins">Разкрепить записки</string>

    <string name="qstile_label">Открыть p!n</string>

</resources>


================================================
FILE: app/src/main/res/values-sv/strings.xml
================================================
<resources>
    <string name="note_text_hint">Skriv en lapp</string>

    <string name="channel_name_pin">Nyss fästa lappar</string>
    <string name="channel_description_pin">Nyligen fästa lappar skickas till den här tysta aviseringskanalen.</string>

    <string name="channel_name_wake">Snoozeslut</string>
    <string name="channel_description_wake">Lappar vars snoozetid går ut skickas till den här aviseringskanalen och gör sig påminda med hjälp av ljud och/eller vibration.</string>

    <plurals name="notification_summary_title">
        <item quantity="one">%d lapp</item>
        <item quantity="other">%d lappar</item>
    </plurals>

    <string name="action_delete">Klart</string>
    <string name="action_snooze">Snooza i %1$s</string>
    <string name="action_edit">Redigera</string>

    <string name="toast_pin_dismissed">Snoozades i %1$s</string>
    <string name="toast_pin_background">Visas om %1$s</string>

    <string name="symbol_time_seconds">s</string>
    <string name="symbol_time_minutes">min</string>
    <string name="symbol_time_hours">h</string>
    <string name="symbol_time_days">d</string>

    <string name="toast_show_all">Alla lappar visas</string>

    <string name="toast_fix_pins">Lapparna låstes</string>
    <string name="toast_unfix_pins">Lapparna låstes upp</string>

    <string name="qstile_label">Öppna p!n</string>

</resources>


================================================
FILE: app/src/main/res/values-v21/styles.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorPrimaryLight</item>

        <item name="android:windowBackground">@color/activityBackground</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">@color/activityBackground</item>
    </style>

    <style name="WindowAnimationStyle">
        <item name="android:windowEnterAnimation">@anim/activity_enter</item>
        <item name="android:windowExitAnimation">@anim/activity_exit</item>
    </style>

</resources>


================================================
FILE: build.gradle
================================================
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.2'
        

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}


================================================
FILE: fastlane/metadata/android/de/changelogs/10.txt
================================================
* Quick Settings Tile zum Öffnen von p!n
* Übersetzung ins Schwedische
* Tastatur öffnet sich automatisch beim App-Start

================================================
FILE: fastlane/metadata/android/de/changelogs/11.txt
================================================
* Italienische Übersetzung
* Bugfix: Textauswahl ist nun sichtbar

================================================
FILE: fastlane/metadata/android/de/changelogs/12.txt
================================================
* Änderungen an italienischer Übersetzung

================================================
FILE: fastlane/metadata/android/de/changelogs/13.txt
================================================
* Japanische Übersetzung

================================================
FILE: fastlane/metadata/android/de/changelogs/16.txt
================================================
* Russische Übersetzung
* Mögliche Fehlerbehebung im Quick Settings Tile

================================================
FILE: fastlane/metadata/android/de/changelogs/17.txt
================================================
* Polnische Übersetzung

================================================
FILE: fastlane/metadata/android/de/changelogs/3.txt
================================================
Verbesserte Benachrichtigungen:

* Notizen werden bei langem Drücken des 'Pin'-Buttons in der Benachrichtigunsleiste fixiert
* Langes Drücken des 'Timer'-Buttons lässt alle verborgenen Notizen erscheinen
* Benachrichtigungston, wenn Notizen aufwachen

================================================
FILE: fastlane/metadata/android/de/changelogs/4.txt
================================================
* Dauer, um Notizen zu verbergen, lässt sich frei einstellen

================================================
FILE: fastlane/metadata/android/de/changelogs/5.txt
================================================
* Kurzes Zeitintervall zum Verbergen von Notizen hinzugefügt, wenn der Regler auf Null gesetzt ist
* Notizen können im Hintergrund hinzugefügt und direkt verborgen werden

================================================
FILE: fastlane/metadata/android/de/changelogs/6.txt
================================================
* Abstürze bei Systemstart behoben

================================================
FILE: fastlane/metadata/android/de/changelogs/8.txt
================================================
* Füge 3 und 12 Stunden als Zeitintervalle zum Verstecken von Notizen hinzu

================================================
FILE: fastlane/metadata/android/de/changelogs/9.txt
================================================
* Bugfix: Beim Verstecken von Pins bleiben andere Notizen in der Benachrichtigungsleiste fixiert
* Im Eingabefeld für Notizen werden Satzanfänge nun standardmäßig groß geschrieben

================================================
FILE: fastlane/metadata/android/de/full_description.txt
================================================
Eine minimalistische Notiz-App, die Erinnerungen in der Benachrichtigungsleiste speichert:

<ul>
<li>Pinne Notizen an die Benachrichtigungsleiste</li>
<li>Bereits geschriebene Erinnerungen lassen sich bearbeiten</li>
<li>Lösche nicht mehr benötigte Pins</li>
<li>Verstecke Notizen für eine bestimmte Zeit</li>
</ul>

Die App ist in <b>Material Design</b> gehalten.

Die Notizen werden zusätzlich in einer Datenbank gespeichert und bleiben nach einem Neustart erhalten.


================================================
FILE: fastlane/metadata/android/de/short_description.txt
================================================
Pinne Notizen an die Benachrichtigungsleiste.


================================================
FILE: fastlane/metadata/android/en-US/changelogs/10.txt
================================================
* Add Quick Settings Tile that opens p!n
* Add Swedish translation
* Automatically open keyboard when p!n launches

================================================
FILE: fastlane/metadata/android/en-US/changelogs/11.txt
================================================
* Add Italian translation
* Fix text selection color

================================================
FILE: fastlane/metadata/android/en-US/changelogs/12.txt
================================================
* Fix Italian translation

================================================
FILE: fastlane/metadata/android/en-US/changelogs/13.txt
================================================
* Japanese translation

================================================
FILE: fastlane/metadata/android/en-US/changelogs/14.txt
================================================
* Fix shifted text selection overflow menu

================================================
FILE: fastlane/metadata/android/en-US/changelogs/15.txt
================================================
* Fix F-Droid build

================================================
FILE: fastlane/metadata/android/en-US/changelogs/16.txt
================================================
* Add Russian translation
* Attempt to fix Quick Settings Tile

================================================
FILE: fastlane/metadata/android/en-US/changelogs/17.txt
================================================
* Add Polish translation

================================================
FILE: fastlane/metadata/android/en-US/changelogs/3.txt
================================================
Improved notification handling:

* Make notifications persistent by long pressing 'pin'-button
* Show hidden pins by long pressing 'timer'-button
* Alert when notes wake up

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4.txt
================================================
* Change pin sleep duration freely via slider

================================================
FILE: fastlane/metadata/android/en-US/changelogs/5.txt
================================================
* Added small snooze duration for pins when slider is set to zero
* Notes can be pinned in background and snoozed immediately

================================================
FILE: fastlane/metadata/android/en-US/changelogs/6.txt
================================================
* Fix app crashing on boot under some circumstances

================================================
FILE: fastlane/metadata/android/en-US/changelogs/7.txt
================================================
* Fix pin snooze duration not updating

================================================
FILE: fastlane/metadata/android/en-US/changelogs/8.txt
================================================
* Add 3 and 12 hours as snooze durations

================================================
FILE: fastlane/metadata/android/en-US/changelogs/9.txt
================================================
* Fix bug that causes snoozing a note to unlock all pins
* Autocapitalize sentences in note input field

================================================
FILE: fastlane/metadata/android/en-US/full_description.txt
================================================
A minimalistic note-taking app utilizing your phone's notification area:

<ul>
<li>Take notes and save them as notifications</li>
<li>Edit pinned notices</li>
<li>Delete pins</li>
<li>Hide notes for a specific period of time</li>
</ul>

The app was build with <b>Material Design</b> in mind.

All notes are stored in the app's database and survive reboots.


================================================
FILE: fastlane/metadata/android/en-US/short_description.txt
================================================
Pin notes to the notification area.


================================================
FILE: fastlane/metadata/android/en-US/title.txt
================================================
p!n


================================================
FILE: fastlane/metadata/android/it/full_description.txt
================================================
Un'app minimalista per scrivere note da mostrare come promemoria nell'area di notifica del telefono:

<ul>
<li>Scrivi le tue note e salvale come notifiche</li>
<li>Modifica le tue note</li>
<li>Elimina le tue note</li>
<li>Nascondi le tue note per un periodo di tempo specifico</li>
</ul>

L'app è stata progettata tenendo conto delle linee guida del <b>Material Design</b>.

Le note create vengono salvate nel database dell'app e verranno mostrate nuovamente anche dopo un riavvio del telefono. (Verificare che le impostazioni di risparmio energetico del sistema permettano all'app di funzionare in background)

================================================
FILE: fastlane/metadata/android/it/short_description.txt
================================================
Appunta le note nell'area di notifica.

================================================
FILE: fastlane/metadata/android/ja/full_description.txt
================================================
スマホの通知領域を活用したミニマルなメモ帳アプリ:

<ul>
<li>メモを取って、通知領域にピン留め</li>
<li>ピン留めしたメモを編集</li>
<li>ピン留めしたメモを削除</li>
<li>一定期間、メモをスヌーズ</li>
</ul>

このアプリは<b>マテリアルデザイン</b> に準拠しています

すべてのメモはアプリのデータベースに保存され、再起動しても保持されます。


================================================
FILE: fastlane/metadata/android/ja/short_description.txt
================================================
通知エリアにメモをピン留めします


================================================
FILE: fastlane/metadata/android/pl/full_description.txt
================================================
Minimalistyczna aplikacja do notatek wykorzystująca panel powiadomień twojego telefonu:

<ul>
<li>Dodawaj notatki do panelu powiadomień</li>
<li>Edytuj utworzone notatki</li>
<li>Usuwaj utworzone notatki</li>
<li>Ukrywaj notatki przez określony czas</li>
</ul>

Aplikacja została utworzona z myślą o <b>Material Design</b>.

Wszystkie notatki są zapisywane w bazie danych aplikacji i nie są usuwane po restarcie telefonu.


================================================
FILE: fastlane/metadata/android/pl/short_description.txt
================================================
Przypinaj notatki do panelu powiadomień.


================================================
FILE: gradle/wrapper/gradle-wrapper.properties
================================================
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists


================================================
FILE: gradle.properties
================================================
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true


================================================
FILE: gradlew
================================================
#!/bin/sh

#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

##############################################################################
#
#   Gradle start up script for POSIX generated by Gradle.
#
#   Important for running:
#
#   (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
#       noncompliant, but you have some other compliant shell such as ksh or
#       bash, then to run this script, type that shell name before the whole
#       command line, like:
#
#           ksh Gradle
#
#       Busybox and similar reduced shells will NOT work, because this script
#       requires all of these POSIX shell features:
#         * functions;
#         * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
#           «${var#prefix}», «${var%suffix}», and «$( cmd )»;
#         * compound commands having a testable exit status, especially «case»;
#         * various built-in commands including «command», «set», and «ulimit».
#
#   Important for patching:
#
#   (2) This script targets any POSIX shell, so it avoids extensions provided
#       by Bash, Ksh, etc; in particular arrays are avoided.
#
#       The "traditional" practice of packing multiple parameters into a
#       space-separated string is a well documented source of bugs and security
#       problems, so this is (mostly) avoided, by progressively accumulating
#       options in "$@", and eventually passing that to Java.
#
#       Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
#       and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
#       see the in-line comments for details.
#
#       There are tweaks for specific operating systems such as AIX, CygWin,
#       Darwin, MinGW, and NonStop.
#
#   (3) This script is generated from the Groovy template
#       https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
#       within the Gradle project.
#
#       You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################

# Attempt to set APP_HOME

# Resolve links: $0 may be a link
app_path=$0

# Need this for daisy-chained symlinks.
while
    APP_HOME=${app_path%"${app_path##*/}"}  # leaves a trailing /; empty if no leading path
    [ -h "$app_path" ]
do
    ls=$( ls -ld "$app_path" )
    link=${ls#*' -> '}
    case $link in             #(
      /*)   app_path=$link ;; #(
      *)    app_path=$APP_HOME$link ;;
    esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
APP_BASE_NAME=${0##*/}

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum

warn () {
    echo "$*"
} >&2

die () {
    echo
    echo "$*"
    echo
    exit 1
} >&2

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in                #(
  CYGWIN* )         cygwin=true  ;; #(
  Darwin* )         darwin=true  ;; #(
  MSYS* | MINGW* )  msys=true    ;; #(
  NONSTOP* )        nonstop=true ;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar


# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
        # IBM's JDK on AIX uses strange locations for the executables
        JAVACMD=$JAVA_HOME/jre/sh/java
    else
        JAVACMD=$JAVA_HOME/bin/java
    fi
    if [ ! -x "$JAVACMD" ] ; then
        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
    fi
else
    JAVACMD=java
    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
    case $MAX_FD in #(
      max*)
        MAX_FD=$( ulimit -H -n ) ||
            warn "Could not query maximum file descriptor limit"
    esac
    case $MAX_FD in  #(
      '' | soft) :;; #(
      *)
        ulimit -n "$MAX_FD" ||
            warn "Could not set maximum file descriptor limit to $MAX_FD"
    esac
fi

# Collect all arguments for the java command, stacking in reverse order:
#   * args from the command line
#   * the main class name
#   * -classpath
#   * -D...appname settings
#   * --module-path (only if needed)
#   * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.

# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
    APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
    CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )

    JAVACMD=$( cygpath --unix "$JAVACMD" )

    # Now convert the arguments - kludge to limit ourselves to /bin/sh
    for arg do
        if
            case $arg in                                #(
              -*)   false ;;                            # don't mess with options #(
              /?*)  t=${arg#/} t=/${t%%/*}              # looks like a POSIX filepath
                    [ -e "$t" ] ;;                      #(
              *)    false ;;
            esac
        then
            arg=$( cygpath --path --ignore --mixed "$arg" )
        fi
        # Roll the args list around exactly as many times as the number of
        # args, so each arg winds up back in the position where it started, but
        # possibly modified.
        #
        # NB: a `for` loop captures its iteration list before it begins, so
        # changing the positional parameters here affects neither the number of
        # iterations, nor the values presented in `arg`.
        shift                   # remove old arg
        set -- "$@" "$arg"      # push replacement arg
    done
fi

# Collect all arguments for the java command;
#   * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
#     shell script including quotes and variable substitutions, so put them in
#     double quotes to make sure that they get re-expanded; and
#   * put everything else in single quotes, so that it's not re-expanded.

set -- \
        "-Dorg.gradle.appname=$APP_BASE_NAME" \
        -classpath "$CLASSPATH" \
        org.gradle.wrapper.GradleWrapperMain \
        "$@"

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
#   readarray ARGS < <( xargs -n1 <<<"$var" ) &&
#   set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#

eval "set -- $(
        printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
        xargs -n1 |
        sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
        tr '\n' ' '
    )" '"$@"'

exec "$JAVACMD" "$@"


================================================
FILE: gradlew.bat
================================================
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem      https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem  Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega


================================================
FILE: settings.gradle
================================================
include ':app'
Download .txt
gitextract_9paejymc/

├── .gitignore
├── CHANGELOG.md
├── LICENSE
├── README.md
├── app/
│   ├── .gitignore
│   ├── build.gradle
│   ├── proguard-rules.pro
│   └── src/
│       ├── debug/
│       │   └── res/
│       │       ├── drawable/
│       │       │   └── ic_launcher_foreground.xml
│       │       ├── mipmap-anydpi-v26/
│       │       │   ├── ic_launcher.xml
│       │       │   └── ic_launcher_round.xml
│       │       └── values/
│       │           └── ic_launcher_background.xml
│       └── main/
│           ├── AndroidManifest.xml
│           ├── java/
│           │   └── de/
│           │       └── nproth/
│           │           └── pin/
│           │               ├── NoteActivity.java
│           │               ├── NotesProvider.java
│           │               ├── PinTileService.java
│           │               ├── RotaryControlView.java
│           │               ├── pinboard/
│           │               │   ├── Pinboard.java
│           │               │   └── PinboardService.java
│           │               ├── receiver/
│           │               │   ├── AlarmReceiver.java
│           │               │   ├── BootReceiver.java
│           │               │   ├── DeleteNoteReceiver.java
│           │               │   ├── NotificationJobService.java
│           │               │   └── SnoozeNoteReceiver.java
│           │               └── util/
│           │                   ├── LifecycleWatcher.java
│           │                   └── Timespan.java
│           └── res/
│               ├── anim/
│               │   ├── activity_enter.xml
│               │   ├── activity_exit.xml
│               │   ├── anim_enter_input_field.xml
│               │   ├── anim_enter_note_save_button.xml
│               │   ├── anim_enter_snooze_duration_button.xml
│               │   ├── anim_exit_input_field.xml
│               │   ├── anim_exit_note_save_button.xml
│               │   ├── anim_exit_snooze_duration_button.xml
│               │   ├── anim_input_field_empty.xml
│               │   ├── anim_input_field_pin.xml
│               │   ├── anim_pop_in.xml
│               │   ├── anim_pop_out.xml
│               │   ├── anim_rotary_control.xml
│               │   └── anim_rotary_set.xml
│               ├── animator/
│               │   └── state_anim_button.xml
│               ├── drawable/
│               │   ├── background_button_actionbutton.xml
│               │   ├── background_button_actionbutton_default.xml
│               │   ├── background_button_actionbutton_pressed.xml
│               │   ├── background_button_actionbutton_selected.xml
│               │   ├── background_button_light.xml
│               │   ├── background_rotary.xml
│               │   ├── background_textfield.xml
│               │   ├── bar.xml
│               │   ├── bar2.xml
│               │   ├── ic_launcher_background.xml
│               │   ├── ic_launcher_foreground.xml
│               │   ├── ic_pin_icon_black.xml
│               │   ├── ic_pin_icon_white.xml
│               │   ├── ic_pin_notification.xml
│               │   ├── ic_pin_statusbar.xml
│               │   ├── ic_timespan.xml
│               │   ├── ic_warn.xml
│               │   ├── scale.xml
│               │   └── scale2.xml
│               ├── layout/
│               │   └── activity_note.xml
│               ├── mipmap-anydpi-v26/
│               │   ├── ic_launcher.xml
│               │   └── ic_launcher_round.xml
│               ├── values/
│               │   ├── attrs_rotary_control_view.xml
│               │   ├── colors.xml
│               │   ├── ic_launcher_background.xml
│               │   ├── strings.xml
│               │   ├── styles.xml
│               │   └── values.xml
│               ├── values-de/
│               │   └── strings.xml
│               ├── values-it/
│               │   └── strings.xml
│               ├── values-ja/
│               │   └── strings.xml
│               ├── values-pl/
│               │   └── strings.xml
│               ├── values-ru/
│               │   └── strings.xml
│               ├── values-sv/
│               │   └── strings.xml
│               └── values-v21/
│                   └── styles.xml
├── build.gradle
├── fastlane/
│   └── metadata/
│       └── android/
│           ├── de/
│           │   ├── changelogs/
│           │   │   ├── 10.txt
│           │   │   ├── 11.txt
│           │   │   ├── 12.txt
│           │   │   ├── 13.txt
│           │   │   ├── 16.txt
│           │   │   ├── 17.txt
│           │   │   ├── 3.txt
│           │   │   ├── 4.txt
│           │   │   ├── 5.txt
│           │   │   ├── 6.txt
│           │   │   ├── 8.txt
│           │   │   └── 9.txt
│           │   ├── full_description.txt
│           │   └── short_description.txt
│           ├── en-US/
│           │   ├── changelogs/
│           │   │   ├── 10.txt
│           │   │   ├── 11.txt
│           │   │   ├── 12.txt
│           │   │   ├── 13.txt
│           │   │   ├── 14.txt
│           │   │   ├── 15.txt
│           │   │   ├── 16.txt
│           │   │   ├── 17.txt
│           │   │   ├── 3.txt
│           │   │   ├── 4.txt
│           │   │   ├── 5.txt
│           │   │   ├── 6.txt
│           │   │   ├── 7.txt
│           │   │   ├── 8.txt
│           │   │   └── 9.txt
│           │   ├── full_description.txt
│           │   ├── short_description.txt
│           │   └── title.txt
│           ├── it/
│           │   ├── full_description.txt
│           │   └── short_description.txt
│           ├── ja/
│           │   ├── full_description.txt
│           │   └── short_description.txt
│           └── pl/
│               ├── full_description.txt
│               └── short_description.txt
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
Download .txt
SYMBOL INDEX (111 symbols across 13 files)

FILE: app/src/main/java/de/nproth/pin/NoteActivity.java
  class NoteActivity (line 33) | public class NoteActivity extends AppCompatActivity implements ServiceCo...
    method onCreate (line 56) | @Override
    method onNewIntent (line 90) | @Override
    method onStart (line 97) | @Override
    method onStop (line 103) | @Override
    method onServiceConnected (line 109) | @Override
    method onServiceDisconnected (line 194) | @Override
    method loadSnoozeDuration (line 205) | private void loadSnoozeDuration() {
    method onNoteSaveButtonClicked (line 240) | public void onNoteSaveButtonClicked(View v) {
    method onNotePinBackgroundButtonClicked (line 248) | public void onNotePinBackgroundButtonClicked(View v) {
    method onParentLayoutClicked (line 257) | public void onParentLayoutClicked(View v) {
    method onSetSnoozeDurationButtonClicked (line 261) | public void onSetSnoozeDurationButtonClicked(View v) {
    method pinNote (line 285) | private boolean pinNote(long snooze) {
    method prepareEditPin (line 338) | private void prepareEditPin() {
    method finish (line 361) | @Override

FILE: app/src/main/java/de/nproth/pin/NotesProvider.java
  class NotesProvider (line 18) | public class NotesProvider extends ContentProvider {
    class Notes (line 23) | public static final class Notes implements BaseColumns {
    method NotesProvider (line 57) | public NotesProvider() {
    method onCreate (line 60) | @Override
    method delete (line 108) | @Override
    method getType (line 141) | @Override
    method insert (line 152) | @Override
    method query (line 175) | @Override
    method update (line 211) | @Override

FILE: app/src/main/java/de/nproth/pin/PinTileService.java
  class PinTileService (line 21) | @TargetApi(24)
    method onClick (line 27) | @Override

FILE: app/src/main/java/de/nproth/pin/RotaryControlView.java
  class RotaryControlView (line 20) | public class RotaryControlView extends View {
    type OnValueChangedListener (line 43) | public interface OnValueChangedListener {
      method onValueChanged (line 45) | public void onValueChanged(int val, int min, int max, int stepVal);
      method onUserChangeBegin (line 47) | public void onUserChangeBegin(int val);
      method onUserChange (line 49) | public void onUserChange(int val);
      method onUserChangeEnd (line 51) | public void onUserChangeEnd(int val);
    method RotaryControlView (line 54) | public RotaryControlView(Context context) {
    method RotaryControlView (line 59) | public RotaryControlView(Context context, AttributeSet attrs) {
    method RotaryControlView (line 64) | public RotaryControlView(Context context, AttributeSet attrs, int defS...
    method init (line 69) | private void init(AttributeSet attrs, int defStyle) {
    method onDraw (line 93) | @Override
    method onTouchEvent (line 141) | @Override
    method getScaleDrawable (line 234) | public Drawable getScaleDrawable() {
    method setScaleDrawable (line 238) | public void setScaleDrawable(Drawable mScaleDrawable) {
    method getBarDrawable (line 245) | public Drawable getBarDrawable() {
    method setBarDrawable (line 249) | public void setBarDrawable(Drawable mBarDrawable) {
    method getStartAngle (line 256) | public float getStartAngle() {
    method setStartAngle (line 260) | public void setStartAngle(float mStartAngle) {
    method getEndAngle (line 267) | public float getEndAngle() {
    method setEndAngle (line 271) | public void setEndAngle(float mEndAngle) {
    method getMinValue (line 278) | public int getMinValue() {
    method setMinValue (line 282) | public void setMinValue(int mMinValue) throws IllegalArgumentException {
    method getMaxValue (line 289) | public int getMaxValue() {
    method setMaxValue (line 293) | public void setMaxValue(int mMaxValue) throws IllegalArgumentException {
    method getStepValue (line 300) | public int getStepValue() {
    method setStepValue (line 304) | public void setStepValue(int mStepValue) {
    method getValue (line 310) | public int getValue() {
    method setValue (line 314) | public void setValue(int val) {
    method setOnValueChangedListener (line 324) | public void setOnValueChangedListener(OnValueChangedListener l) {
    method getOnValueChangedListener (line 328) | public OnValueChangedListener getOnValueChangedListener() {

FILE: app/src/main/java/de/nproth/pin/pinboard/Pinboard.java
  class Pinboard (line 40) | public final class Pinboard {
    method Pinboard (line 72) | private Pinboard(@NonNull Context ctx) {
    method update (line 112) | private void update(long timeNow, boolean silent, String where, String...
    method updateAll (line 287) | public void updateAll() {
    method updateAll (line 291) | public void updateAll(boolean silent) {
    method updateVisible (line 296) | public void updateVisible(boolean silent) {
    method updateVisible (line 303) | public void updateVisible() {
    method updateChanged (line 307) | public void updateChanged() {
    method getSnoozeDuration (line 315) | public long getSnoozeDuration() {
    method setSnoozeDuration (line 319) | public Pinboard setSnoozeDuration(long dur) {
    method getIsFixed (line 326) | public boolean getIsFixed() {
    method setIsFixed (line 330) | public void setIsFixed(boolean fix) {
    method destroy (line 339) | public void destroy() {
    method get (line 344) | public static Pinboard get(Context ctx) {

FILE: app/src/main/java/de/nproth/pin/pinboard/PinboardService.java
  class PinboardService (line 17) | public class PinboardService extends Service {
    class PinboardBinder (line 31) | public class PinboardBinder extends Binder {
      method update (line 33) | public void update() {
      method getSnoozeDuration (line 37) | public long getSnoozeDuration() {
      method setSnoozeDuration (line 41) | public void setSnoozeDuration(long dur) {
      method getIsFixed (line 46) | public boolean getIsFixed() {
      method setIsFixed (line 50) | public void setIsFixed(boolean fix) {
    method PinboardService (line 55) | public PinboardService() {
    method onStartCommand (line 58) | @Override
    method init (line 72) | private void init() {
    method onDestroy (line 85) | @Override
    method onBind (line 94) | @Override

FILE: app/src/main/java/de/nproth/pin/receiver/AlarmReceiver.java
  class AlarmReceiver (line 15) | public class AlarmReceiver extends BroadcastReceiver {
    method onReceive (line 17) | @Override

FILE: app/src/main/java/de/nproth/pin/receiver/BootReceiver.java
  class BootReceiver (line 20) | public class BootReceiver extends BroadcastReceiver {
    method onReceive (line 22) | @Override

FILE: app/src/main/java/de/nproth/pin/receiver/DeleteNoteReceiver.java
  class DeleteNoteReceiver (line 21) | public class DeleteNoteReceiver extends BroadcastReceiver {
    method onReceive (line 32) | @Override

FILE: app/src/main/java/de/nproth/pin/receiver/NotificationJobService.java
  class NotificationJobService (line 17) | @TargetApi(21)
    method onStartJob (line 20) | @Override
    method onStopJob (line 30) | @Override

FILE: app/src/main/java/de/nproth/pin/receiver/SnoozeNoteReceiver.java
  class SnoozeNoteReceiver (line 23) | public class SnoozeNoteReceiver extends BroadcastReceiver {
    method onReceive (line 36) | @Override
    method onSnoozePins (line 64) | public static int onSnoozePins(Context context, long snoozeDuration, U...

FILE: app/src/main/java/de/nproth/pin/util/LifecycleWatcher.java
  class LifecycleWatcher (line 7) | public final class LifecycleWatcher {
    method informBootReceived (line 12) | public static void informBootReceived() {
    method informUserWarned (line 16) | public static void informUserWarned() {
    method hasBootReceived (line 20) | public static boolean hasBootReceived() {
    method isUserWarned (line 24) | public static boolean isUserWarned() {
    method reset (line 31) | public static void reset() {

FILE: app/src/main/java/de/nproth/pin/util/Timespan.java
  class Timespan (line 10) | public final class Timespan {
    method Timespan (line 15) | public Timespan(Context c, long millis) {
    method inSecs (line 20) | public double inSecs() {
    method inMins (line 24) | public double inMins() {
    method inHours (line 28) | public double inHours() {
    method inDays (line 32) | public double inDays() {
    method restDays (line 36) | public int restDays() {
    method restHours (line 40) | public int restHours() {
    method restMins (line 45) | public int restMins() {
    method restSecs (line 50) | public int restSecs() {
    method toString (line 55) | @Override
Condensed preview — 120 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (195K chars).
[
  {
    "path": ".gitignore",
    "chars": 144,
    "preview": "*.iml\n.gradle\n/local.properties\n/.idea\n/.idea/libraries\n/.idea/modules.xml\n/.idea/workspace.xml\n.DS_Store\n/build\n/captur"
  },
  {
    "path": "CHANGELOG.md",
    "chars": 1284,
    "preview": "# CHANGELOG\n\n## v1.2.7\n- Add Italian translation\n- Fix text selection color\n\n## v1.2.6\n- Add Quick Settings Tile that op"
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 2155,
    "preview": "# ![App Icon](app/src/main/res/mipmap-mdpi/ic_launcher.png) p!n\n\nA minimalistic note-taking app utilizing your phone's n"
  },
  {
    "path": "app/.gitignore",
    "chars": 7,
    "preview": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "chars": 890,
    "preview": "apply plugin: 'com.android.application'\n\nandroid {\n    compileSdkVersion 30\n    defaultConfig {\n        applicationId \"d"
  },
  {
    "path": "app/proguard-rules.pro",
    "chars": 751,
    "preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
  },
  {
    "path": "app/src/debug/res/drawable/ic_launcher_foreground.xml",
    "chars": 844,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n        android:width=\"108dp\"\r\n        android:heigh"
  },
  {
    "path": "app/src/debug/res/mipmap-anydpi-v26/ic_launcher.xml",
    "chars": 267,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "app/src/debug/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "chars": 267,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "app/src/debug/res/values/ic_launcher_background.xml",
    "chars": 120,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"ic_launcher_background\">#A60000</color>\n</resources>"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "chars": 3085,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package="
  },
  {
    "path": "app/src/main/java/de/nproth/pin/NoteActivity.java",
    "chars": 14134,
    "preview": "package de.nproth.pin;\n\nimport android.content.ComponentName;\nimport android.content.ContentValues;\nimport android.conte"
  },
  {
    "path": "app/src/main/java/de/nproth/pin/NotesProvider.java",
    "chars": 10648,
    "preview": "package de.nproth.pin;\n\nimport android.content.ContentProvider;\nimport android.content.ContentValues;\nimport android.con"
  },
  {
    "path": "app/src/main/java/de/nproth/pin/PinTileService.java",
    "chars": 897,
    "preview": "/**\n * Changelog\n *\n * 2019-10-28 nproth\n *\n * * Implement PinTileService which provides a Quick Settings Tile to the us"
  },
  {
    "path": "app/src/main/java/de/nproth/pin/RotaryControlView.java",
    "chars": 9790,
    "preview": "package de.nproth.pin;\n\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.graphics.C"
  },
  {
    "path": "app/src/main/java/de/nproth/pin/pinboard/Pinboard.java",
    "chars": 16881,
    "preview": "package de.nproth.pin.pinboard;\n\nimport android.app.AlarmManager;\nimport android.app.Notification;\nimport android.app.No"
  },
  {
    "path": "app/src/main/java/de/nproth/pin/pinboard/PinboardService.java",
    "chars": 3314,
    "preview": "package de.nproth.pin.pinboard;\n\nimport android.app.Service;\nimport android.content.Intent;\nimport android.content.Share"
  },
  {
    "path": "app/src/main/java/de/nproth/pin/receiver/AlarmReceiver.java",
    "chars": 835,
    "preview": "package de.nproth.pin.receiver;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport androi"
  },
  {
    "path": "app/src/main/java/de/nproth/pin/receiver/BootReceiver.java",
    "chars": 1638,
    "preview": "package de.nproth.pin.receiver;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport androi"
  },
  {
    "path": "app/src/main/java/de/nproth/pin/receiver/DeleteNoteReceiver.java",
    "chars": 3139,
    "preview": "package de.nproth.pin.receiver;\n\nimport android.content.BroadcastReceiver;\nimport android.content.ContentValues;\nimport "
  },
  {
    "path": "app/src/main/java/de/nproth/pin/receiver/NotificationJobService.java",
    "chars": 1024,
    "preview": "package de.nproth.pin.receiver;\n\nimport android.annotation.TargetApi;\nimport android.app.job.JobParameters;\nimport andro"
  },
  {
    "path": "app/src/main/java/de/nproth/pin/receiver/SnoozeNoteReceiver.java",
    "chars": 3979,
    "preview": "package de.nproth.pin.receiver;\n\nimport android.content.BroadcastReceiver;\nimport android.content.ContentValues;\nimport "
  },
  {
    "path": "app/src/main/java/de/nproth/pin/util/LifecycleWatcher.java",
    "chars": 843,
    "preview": "package de.nproth.pin.util;\n\n/**\n * Provides a static interface to check whether the boot completed broadcast was receiv"
  },
  {
    "path": "app/src/main/java/de/nproth/pin/util/Timespan.java",
    "chars": 1764,
    "preview": "package de.nproth.pin.util;\n\nimport android.content.Context;\n\nimport de.nproth.pin.R;\n\n/**\n * Utility class that convert"
  },
  {
    "path": "app/src/main/res/anim/activity_enter.xml",
    "chars": 715,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <scale andro"
  },
  {
    "path": "app/src/main/res/anim/activity_exit.xml",
    "chars": 742,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <scale andro"
  },
  {
    "path": "app/src/main/res/anim/anim_enter_input_field.xml",
    "chars": 336,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <translate a"
  },
  {
    "path": "app/src/main/res/anim/anim_enter_note_save_button.xml",
    "chars": 336,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <translate a"
  },
  {
    "path": "app/src/main/res/anim/anim_enter_snooze_duration_button.xml",
    "chars": 337,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <translate a"
  },
  {
    "path": "app/src/main/res/anim/anim_exit_input_field.xml",
    "chars": 336,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <translate a"
  },
  {
    "path": "app/src/main/res/anim/anim_exit_note_save_button.xml",
    "chars": 336,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <translate a"
  },
  {
    "path": "app/src/main/res/anim/anim_exit_snooze_duration_button.xml",
    "chars": 337,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <translate a"
  },
  {
    "path": "app/src/main/res/anim/anim_input_field_empty.xml",
    "chars": 1540,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <translate a"
  },
  {
    "path": "app/src/main/res/anim/anim_input_field_pin.xml",
    "chars": 1044,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\" android:shareInte"
  },
  {
    "path": "app/src/main/res/anim/anim_pop_in.xml",
    "chars": 540,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\"  android:interpol"
  },
  {
    "path": "app/src/main/res/anim/anim_pop_out.xml",
    "chars": 591,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\"  android:interpol"
  },
  {
    "path": "app/src/main/res/anim/anim_rotary_control.xml",
    "chars": 379,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\" android:duration="
  },
  {
    "path": "app/src/main/res/anim/anim_rotary_set.xml",
    "chars": 1251,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <scale andro"
  },
  {
    "path": "app/src/main/res/animator/state_anim_button.xml",
    "chars": 1039,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item a"
  },
  {
    "path": "app/src/main/res/drawable/background_button_actionbutton.xml",
    "chars": 530,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item a"
  },
  {
    "path": "app/src/main/res/drawable/background_button_actionbutton_default.xml",
    "chars": 240,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\" android:shape=\""
  },
  {
    "path": "app/src/main/res/drawable/background_button_actionbutton_pressed.xml",
    "chars": 244,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\" android:shape=\""
  },
  {
    "path": "app/src/main/res/drawable/background_button_actionbutton_selected.xml",
    "chars": 245,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\" android:shape=\""
  },
  {
    "path": "app/src/main/res/drawable/background_button_light.xml",
    "chars": 1023,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item a"
  },
  {
    "path": "app/src/main/res/drawable/background_rotary.xml",
    "chars": 364,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<inset xmlns:android=\"http://schemas.android.com/apk/res/android\"\nandroid:insetBo"
  },
  {
    "path": "app/src/main/res/drawable/background_textfield.xml",
    "chars": 227,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\" android:shape=\""
  },
  {
    "path": "app/src/main/res/drawable/bar.xml",
    "chars": 532,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"88dp\"\n    android:height=\"88dp\"\n  "
  },
  {
    "path": "app/src/main/res/drawable/bar2.xml",
    "chars": 961,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"88dp\"\n    android:height=\"88dp\"\n  "
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_background.xml",
    "chars": 5606,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:wi"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_foreground.xml",
    "chars": 830,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"108dp\"\n        android:height="
  },
  {
    "path": "app/src/main/res/drawable/ic_pin_icon_black.xml",
    "chars": 684,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n  "
  },
  {
    "path": "app/src/main/res/drawable/ic_pin_icon_white.xml",
    "chars": 684,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n  "
  },
  {
    "path": "app/src/main/res/drawable/ic_pin_notification.xml",
    "chars": 708,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n  "
  },
  {
    "path": "app/src/main/res/drawable/ic_pin_statusbar.xml",
    "chars": 711,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n  "
  },
  {
    "path": "app/src/main/res/drawable/ic_timespan.xml",
    "chars": 1464,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n  "
  },
  {
    "path": "app/src/main/res/drawable/ic_warn.xml",
    "chars": 1008,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n  "
  },
  {
    "path": "app/src/main/res/drawable/scale.xml",
    "chars": 1090,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"88dp\"\n    android:height=\"88dp\"\n  "
  },
  {
    "path": "app/src/main/res/drawable/scale2.xml",
    "chars": 911,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"88dp\"\n    android:height=\"88dp\"\n  "
  },
  {
    "path": "app/src/main/res/layout/activity_note.xml",
    "chars": 4360,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xm"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "chars": 267,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "chars": 267,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "app/src/main/res/values/attrs_rotary_control_view.xml",
    "chars": 492,
    "preview": "<resources>\n    <declare-styleable name=\"RotaryControlView\">\n        <attr name=\"scaleDrawable\" format=\"reference\" />\n  "
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "chars": 374,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"colorPrimary\">#212121</color>\n    <color name=\"color"
  },
  {
    "path": "app/src/main/res/values/ic_launcher_background.xml",
    "chars": 120,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"ic_launcher_background\">#212121</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "chars": 1651,
    "preview": "<resources>\n    <string name=\"app_name\" translatable=\"false\">p!n</string>\n    <string name=\"note_text_hint\">Your note</s"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "chars": 736,
    "preview": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.NoActionBar\">"
  },
  {
    "path": "app/src/main/res/values/values.xml",
    "chars": 1839,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <!-- in milliseconds -->\n    <!--<integer name=\"zero_snooze_durat"
  },
  {
    "path": "app/src/main/res/values-de/strings.xml",
    "chars": 1476,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <string name=\"note_text_hint\">Neue Notiz</string>\n\n    <string na"
  },
  {
    "path": "app/src/main/res/values-it/strings.xml",
    "chars": 1425,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <string name=\"note_text_hint\">Nota</string>\n\n    <string name=\"ch"
  },
  {
    "path": "app/src/main/res/values-ja/strings.xml",
    "chars": 1491,
    "preview": "<resources>\n    <string name=\"app_name\" translatable=\"false\">p!n</string>\n    <string name=\"note_text_hint\">メモを入力</strin"
  },
  {
    "path": "app/src/main/res/values-pl/strings.xml",
    "chars": 1388,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <string name=\"note_text_hint\">Twoja notatka</string>\n\n    <string"
  },
  {
    "path": "app/src/main/res/values-ru/strings.xml",
    "chars": 1374,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <string name=\"note_text_hint\">Ваша записка</string>\n\n    <string "
  },
  {
    "path": "app/src/main/res/values-sv/strings.xml",
    "chars": 1380,
    "preview": "<resources>\n    <string name=\"note_text_hint\">Skriv en lapp</string>\n\n    <string name=\"channel_name_pin\">Nyss fästa lap"
  },
  {
    "path": "app/src/main/res/values-v21/styles.xml",
    "chars": 925,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" pare"
  },
  {
    "path": "build.gradle",
    "chars": 556,
    "preview": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    \n"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/10.txt",
    "chars": 120,
    "preview": "* Quick Settings Tile zum Öffnen von p!n\n* Übersetzung ins Schwedische\n* Tastatur öffnet sich automatisch beim App-Start"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/11.txt",
    "chars": 65,
    "preview": "* Italienische Übersetzung\n* Bugfix: Textauswahl ist nun sichtbar"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/12.txt",
    "chars": 41,
    "preview": "* Änderungen an italienischer Übersetzung"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/13.txt",
    "chars": 24,
    "preview": "* Japanische Übersetzung"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/16.txt",
    "chars": 72,
    "preview": "* Russische Übersetzung\n* Mögliche Fehlerbehebung im Quick Settings Tile"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/17.txt",
    "chars": 23,
    "preview": "* Polnische Übersetzung"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/3.txt",
    "chars": 250,
    "preview": "Verbesserte Benachrichtigungen:\n\n* Notizen werden bei langem Drücken des 'Pin'-Buttons in der Benachrichtigunsleiste fix"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/4.txt",
    "chars": 60,
    "preview": "* Dauer, um Notizen zu verbergen, lässt sich frei einstellen"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/5.txt",
    "chars": 170,
    "preview": "* Kurzes Zeitintervall zum Verbergen von Notizen hinzugefügt, wenn der Regler auf Null gesetzt ist\n* Notizen können im H"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/6.txt",
    "chars": 34,
    "preview": "* Abstürze bei Systemstart behoben"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/8.txt",
    "chars": 75,
    "preview": "* Füge 3 und 12 Stunden als Zeitintervalle zum Verstecken von Notizen hinzu"
  },
  {
    "path": "fastlane/metadata/android/de/changelogs/9.txt",
    "chars": 179,
    "preview": "* Bugfix: Beim Verstecken von Pins bleiben andere Notizen in der Benachrichtigungsleiste fixiert\n* Im Eingabefeld für No"
  },
  {
    "path": "fastlane/metadata/android/de/full_description.txt",
    "chars": 470,
    "preview": "Eine minimalistische Notiz-App, die Erinnerungen in der Benachrichtigungsleiste speichert:\n\n<ul>\n<li>Pinne Notizen an d"
  },
  {
    "path": "fastlane/metadata/android/de/short_description.txt",
    "chars": 46,
    "preview": "Pinne Notizen an die Benachrichtigungsleiste.\n"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/10.txt",
    "chars": 114,
    "preview": "* Add Quick Settings Tile that opens p!n\n* Add Swedish translation\n* Automatically open keyboard when p!n launches"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/11.txt",
    "chars": 52,
    "preview": "* Add Italian translation\n* Fix text selection color"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/12.txt",
    "chars": 25,
    "preview": "* Fix Italian translation"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/13.txt",
    "chars": 22,
    "preview": "* Japanese translation"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/14.txt",
    "chars": 42,
    "preview": "* Fix shifted text selection overflow menu"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/15.txt",
    "chars": 19,
    "preview": "* Fix F-Droid build"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/16.txt",
    "chars": 62,
    "preview": "* Add Russian translation\n* Attempt to fix Quick Settings Tile"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/17.txt",
    "chars": 24,
    "preview": "* Add Polish translation"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/3.txt",
    "chars": 172,
    "preview": "Improved notification handling:\n\n* Make notifications persistent by long pressing 'pin'-button\n* Show hidden pins by lon"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4.txt",
    "chars": 45,
    "preview": "* Change pin sleep duration freely via slider"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/5.txt",
    "chars": 125,
    "preview": "* Added small snooze duration for pins when slider is set to zero\n* Notes can be pinned in background and snoozed immedi"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/6.txt",
    "chars": 51,
    "preview": "* Fix app crashing on boot under some circumstances"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/7.txt",
    "chars": 38,
    "preview": "* Fix pin snooze duration not updating"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/8.txt",
    "chars": 40,
    "preview": "* Add 3 and 12 hours as snooze durations"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/9.txt",
    "chars": 103,
    "preview": "* Fix bug that causes snoozing a note to unlock all pins\n* Autocapitalize sentences in note input field"
  },
  {
    "path": "fastlane/metadata/android/en-US/full_description.txt",
    "chars": 357,
    "preview": "A minimalistic note-taking app utilizing your phone's notification area:\n\n<ul>\n<li>Take notes and save them as notificat"
  },
  {
    "path": "fastlane/metadata/android/en-US/short_description.txt",
    "chars": 36,
    "preview": "Pin notes to the notification area.\n"
  },
  {
    "path": "fastlane/metadata/android/en-US/title.txt",
    "chars": 4,
    "preview": "p!n\n"
  },
  {
    "path": "fastlane/metadata/android/it/full_description.txt",
    "chars": 611,
    "preview": "Un'app minimalista per scrivere note da mostrare come promemoria nell'area di notifica del telefono:\n\n<ul>\n<li>Scrivi le"
  },
  {
    "path": "fastlane/metadata/android/it/short_description.txt",
    "chars": 38,
    "preview": "Appunta le note nell'area di notifica."
  },
  {
    "path": "fastlane/metadata/android/ja/full_description.txt",
    "chars": 199,
    "preview": "スマホの通知領域を活用したミニマルなメモ帳アプリ:\n\n<ul>\n<li>メモを取って、通知領域にピン留め</li>\n<li>ピン留めしたメモを編集</li>\n<li>ピン留めしたメモを削除</li>\n<li>一定期間、メモをスヌーズ</li"
  },
  {
    "path": "fastlane/metadata/android/ja/short_description.txt",
    "chars": 17,
    "preview": "通知エリアにメモをピン留めします\n"
  },
  {
    "path": "fastlane/metadata/android/pl/full_description.txt",
    "chars": 422,
    "preview": "Minimalistyczna aplikacja do notatek wykorzystująca panel powiadomień twojego telefonu:\n\n<ul>\n<li>Dodawaj notatki do pan"
  },
  {
    "path": "fastlane/metadata/android/pl/short_description.txt",
    "chars": 41,
    "preview": "Przypinaj notatki do panelu powiadomień.\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "chars": 202,
    "preview": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributi"
  },
  {
    "path": "gradle.properties",
    "chars": 779,
    "preview": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will ov"
  },
  {
    "path": "gradlew",
    "chars": 8047,
    "preview": "#!/bin/sh\n\n#\n# Copyright © 2015-2021 the original authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"Lice"
  },
  {
    "path": "gradlew.bat",
    "chars": 2763,
    "preview": "@rem\r\n@rem Copyright 2015 the original author or authors.\r\n@rem\r\n@rem Licensed under the Apache License, Version 2.0 (th"
  },
  {
    "path": "settings.gradle",
    "chars": 15,
    "preview": "include ':app'\n"
  }
]

// ... and 1 more files (download for full content)

About this extraction

This page contains the full source code of the nproth/pin GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 120 files (173.8 KB), approximately 47.2k tokens, and a symbol index with 111 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!