├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
└── workflows
│ ├── build.yml
│ ├── deploy-apk.yml
│ └── stale.yml
├── .gitignore
├── .idea
├── .gitignore
├── .name
├── AndroidProjectSystem.xml
├── codeStyles
│ ├── Project.xml
│ └── codeStyleConfig.xml
├── compiler.xml
├── gradle.xml
├── jarRepositories.xml
├── kotlinc.xml
├── migrations.xml
├── runConfigurations.xml
└── vcs.xml
├── LICENSE
├── README.md
├── SECURITY.md
├── app
├── .editorconfig
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── github
│ │ └── muellerma
│ │ └── mute_reminder
│ │ ├── App.kt
│ │ ├── ForegroundService.kt
│ │ ├── InvisibleActivity.kt
│ │ ├── MainActivity.kt
│ │ ├── MediaAudioManager.kt
│ │ ├── PreferenceActivity.kt
│ │ ├── Prefs.kt
│ │ ├── RestartReceiver.kt
│ │ └── Utils.kt
│ └── res
│ ├── drawable
│ ├── ic_baseline_volume_mute_24.xml
│ ├── ic_baseline_volume_up_24.xml
│ ├── ic_launcher_foreground.xml
│ ├── ic_outline_volume_up_120.xml
│ └── ic_shortcut_mute_foreground.xml
│ ├── layout
│ ├── activity_main.xml
│ ├── activity_preference.xml
│ └── bottom_sheet_permissions.xml
│ ├── mipmap-anydpi-v26
│ ├── ic_launcher.xml
│ └── ic_shortcut_mute.xml
│ ├── mipmap-hdpi
│ ├── ic_launcher.png
│ └── ic_shortcut_mute.png
│ ├── mipmap-mdpi
│ ├── ic_launcher.png
│ └── ic_shortcut_mute.png
│ ├── mipmap-xhdpi
│ ├── ic_launcher.png
│ └── ic_shortcut_mute.png
│ ├── mipmap-xxhdpi
│ ├── ic_launcher.png
│ └── ic_shortcut_mute.png
│ ├── mipmap-xxxhdpi
│ ├── ic_launcher.png
│ └── ic_shortcut_mute.png
│ ├── resources.properties
│ ├── values-af
│ └── strings.xml
│ ├── values-ar
│ └── strings.xml
│ ├── values-ca
│ └── strings.xml
│ ├── values-cs
│ └── strings.xml
│ ├── values-da
│ └── strings.xml
│ ├── values-de
│ └── strings.xml
│ ├── values-el
│ └── strings.xml
│ ├── values-en
│ └── strings.xml
│ ├── values-es
│ └── strings.xml
│ ├── values-fa
│ └── strings.xml
│ ├── values-fi
│ └── strings.xml
│ ├── values-fr
│ └── strings.xml
│ ├── values-hu
│ └── strings.xml
│ ├── values-in
│ └── strings.xml
│ ├── values-it
│ └── strings.xml
│ ├── values-iw
│ └── strings.xml
│ ├── values-ja
│ └── strings.xml
│ ├── values-ji
│ └── strings.xml
│ ├── values-ko
│ └── strings.xml
│ ├── values-nb
│ └── strings.xml
│ ├── values-night
│ └── themes.xml
│ ├── values-nl
│ └── strings.xml
│ ├── values-no
│ └── strings.xml
│ ├── values-pl
│ └── strings.xml
│ ├── values-pt-rBR
│ └── strings.xml
│ ├── values-pt
│ └── strings.xml
│ ├── values-ro
│ └── strings.xml
│ ├── values-ru
│ └── strings.xml
│ ├── values-sr
│ └── strings.xml
│ ├── values-sv
│ └── strings.xml
│ ├── values-tr
│ └── strings.xml
│ ├── values-uk
│ └── strings.xml
│ ├── values-vi
│ └── strings.xml
│ ├── values-zh-rCN
│ └── strings.xml
│ ├── values-zh
│ └── strings.xml
│ ├── values
│ ├── colors.xml
│ ├── strings.xml
│ └── themes.xml
│ └── xml
│ └── pref_main.xml
├── build.gradle
├── crowdin.yml
├── fastlane
└── metadata
│ └── android
│ ├── af-ZA
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── ar-SA
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── ca-ES
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── cs-CZ
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── da-DK
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── de-DE
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── el-GR
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── en-US
│ ├── changelogs
│ │ ├── 1.txt
│ │ ├── 10.txt
│ │ ├── 11.txt
│ │ ├── 12.txt
│ │ ├── 13.txt
│ │ ├── 14.txt
│ │ ├── 15.txt
│ │ ├── 16.txt
│ │ ├── 17.txt
│ │ ├── 18.txt
│ │ ├── 19.txt
│ │ ├── 2.txt
│ │ ├── 20.txt
│ │ ├── 22.txt
│ │ ├── 23.txt
│ │ ├── 3.txt
│ │ ├── 4.txt
│ │ ├── 5.txt
│ │ ├── 6.txt
│ │ ├── 7.txt
│ │ ├── 8.txt
│ │ └── 9.txt
│ ├── full_description.txt
│ ├── images
│ │ ├── featureGraphic.png
│ │ ├── icon.png
│ │ └── phoneScreenshots
│ │ │ └── 1.png
│ ├── short_description.txt
│ └── title.txt
│ ├── es-ES
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── fa-IR
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── fi-FI
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── fr-FR
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── he-IL
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── hu-HU
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── id-ID
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── it-IT
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── ja-JP
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── ko-KR
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── nb-NO
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── nl-NL
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── no-NO
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── pl-PL
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── pt-BR
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── pt-PT
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── ro-RO
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── ru-RU
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── sr-SP
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── sv-SE
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── tr-TR
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── uk-UA
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── vi-VN
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── yi-DE
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ ├── zh-CN
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
│ └── zh-TW
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── renovate.json
└── settings.gradle
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: bug
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Device (please complete the following information):**
27 | - Device: [e.g. Pixel 3]
28 | - Android version: [e.g. 11]
29 |
30 | **Additional context**
31 | Add any other context about the problem here.
32 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: enhancement
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
1 | name: Build App
2 |
3 | on: [push, pull_request]
4 |
5 | permissions: {}
6 |
7 | jobs:
8 | build:
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - uses: actions/checkout@v4
13 |
14 | - name: Setup Java
15 | uses: actions/setup-java@v4
16 | with:
17 | distribution: 'adopt'
18 | java-version: 17
19 |
20 | - name: Validate Gradle Wrapper
21 | uses: gradle/wrapper-validation-action@v3.5.0
22 |
23 | - name: Build
24 | run: bash gradlew build
25 |
--------------------------------------------------------------------------------
/.github/workflows/deploy-apk.yml:
--------------------------------------------------------------------------------
1 | name: Deploy APK on GitHub
2 |
3 | on:
4 | release:
5 | types:
6 | - created
7 |
8 | permissions:
9 | contents: write
10 |
11 | jobs:
12 | build:
13 | runs-on: ubuntu-latest
14 |
15 | steps:
16 | - uses: actions/checkout@v4
17 |
18 | - name: Setup Java
19 | uses: actions/setup-java@v4
20 | with:
21 | distribution: 'adopt'
22 | java-version: 17
23 |
24 | - name: Validate Gradle Wrapper
25 | uses: gradle/wrapper-validation-action@v3.5.0
26 |
27 | - name: Build APK
28 | run: bash gradlew app:assembleRelease
29 |
30 | - uses: r0adkll/sign-android-release@v1.0.4
31 | name: Sign APK
32 | id: sign_app
33 | with:
34 | releaseDirectory: app/build/outputs/apk/release
35 | signingKeyBase64: ${{ secrets.SIGNING_KEY }}
36 | alias: "key0"
37 | keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
38 | keyPassword: ${{ secrets.KEY_PASSWORD }}
39 | env:
40 | BUILD_TOOLS_VERSION: "34.0.0"
41 |
42 | - uses: svenstaro/upload-release-action@v2
43 | name: Upload APK
44 | with:
45 | file: ${{steps.sign_app.outputs.signedReleaseFile}}
46 | asset_name: mute_reminder.apk
47 | tag: ${{ github.ref }}
48 | repo_token: ${{ secrets.GITHUB_TOKEN }}
49 |
--------------------------------------------------------------------------------
/.github/workflows/stale.yml:
--------------------------------------------------------------------------------
1 | name: 'Close stale issues and PRs'
2 | on:
3 | schedule:
4 | - cron: '30 1 * * *'
5 | workflow_dispatch:
6 |
7 | permissions:
8 | issues: write
9 |
10 | jobs:
11 | stale:
12 | runs-on: ubuntu-latest
13 | steps:
14 | - uses: actions/stale@v9
15 | with:
16 | days-before-stale: 360
17 | days-before-close: 7
18 | exempt-issue-labels: 'acknowledged'
19 | stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Also see https://github.com/mueller-ma/MuteReminder#maintenance-notice'
20 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/assetWizardSettings.xml
5 | /.idea/caches
6 | /.idea/deploymentTargetDropDown.xml
7 | /.idea/deploymentTargetSelector.xml
8 | /.idea/libraries
9 | /.idea/misc.xml
10 | /.idea/modules.xml
11 | /.idea/navEditor.xml
12 | /.idea/other.xml
13 | /.idea/workspace.xml
14 | .DS_Store
15 | /build
16 | /captures
17 | .externalNativeBuild
18 | .cxx
19 |
--------------------------------------------------------------------------------
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/.idea/.name:
--------------------------------------------------------------------------------
1 | Mute Reminder
--------------------------------------------------------------------------------
/.idea/AndroidProjectSystem.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/codeStyles/Project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/codeStyles/codeStyleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
--------------------------------------------------------------------------------
/.idea/jarRepositories.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/.idea/kotlinc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/migrations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Mute Reminder
2 |
3 | [](https://github.com/mueller-ma/MuteReminder/actions/workflows/build.yml)
4 | [](https://www.codefactor.io/repository/github/mueller-ma/mutereminder)
5 | [](https://crowdin.com/project/mutereminder)
6 |
7 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
8 |
9 | [
](https://f-droid.org/de/packages/com.github.muellerma.mute_reminder/)[
](https://github.com/mueller-ma/MuteReminder/releases)
10 |
11 |
12 |
13 | ## Maintenance notice
14 |
15 | From my point of view this app is feature complete. I probably won't add new major features on my own, but I will:
16 | * Keep dependencies up-to-date
17 | * Merge new translations
18 | * Fix bugs
19 | * Review and merge PRs, even for new features
20 |
21 | ## Translations
22 |
23 | App strings and the app store description can be translated via Crowdin: https://crowdin.com/project/mutereminder
24 |
25 | Translations have to be approved before being merged into the app. To become a translator with approval rights or to request a new language, please [poke me on Crowdin](https://crowdin.com/profile/mueller-ma) or open an issue here on GitHub.
26 |
27 | ## Credits
28 |
29 | * Feature graphic by https://unsplash.com/@mbaumi
30 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | Since this is an Android app, only the latest version is supported.
6 |
7 | ## Reporting a Vulnerability
8 |
9 | Please open an issue on GitHub to report a vulnerability.
10 |
--------------------------------------------------------------------------------
/app/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = crlf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = false
9 | max_line_length = 120
10 | tab_width = 4
11 |
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id "com.android.application"
3 | id "kotlin-android"
4 | id "kotlin-parcelize"
5 | id "com.mikepenz.aboutlibraries.plugin"
6 | }
7 |
8 | android {
9 | compileSdk 35
10 |
11 | defaultConfig {
12 | applicationId "com.github.muellerma.mute_reminder"
13 | minSdk 21
14 | targetSdk 34
15 | versionCode 23
16 | versionName "2.15"
17 | }
18 |
19 | buildTypes {
20 | release {
21 | minifyEnabled true
22 | shrinkResources true
23 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
24 | }
25 | debug {
26 | minifyEnabled true
27 | shrinkResources true
28 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
29 | }
30 | }
31 | compileOptions {
32 | sourceCompatibility JavaVersion.VERSION_17
33 | targetCompatibility JavaVersion.VERSION_17
34 | encoding "UTF-8"
35 | }
36 | kotlinOptions {
37 | jvmTarget = JavaVersion.VERSION_17.toString()
38 | allWarningsAsErrors = true
39 | }
40 | buildFeatures {
41 | viewBinding true
42 | buildConfig true
43 | }
44 | lint {
45 | abortOnError false
46 | }
47 | androidResources {
48 | generateLocaleConfig = true
49 | }
50 |
51 |
52 | namespace 'com.github.muellerma.mute_reminder'
53 | }
54 |
55 | dependencies {
56 | implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
57 | implementation "androidx.core:core-ktx:1.16.0"
58 | implementation "androidx.appcompat:appcompat:1.7.1"
59 | implementation "androidx.preference:preference-ktx:1.2.1"
60 | implementation "com.google.android.material:material:1.12.0"
61 | implementation "com.mikepenz:aboutlibraries:$about_libraries_version"
62 | }
63 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 | -dontobfuscate
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
30 |
31 |
36 |
37 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/app/src/main/java/com/github/muellerma/mute_reminder/App.kt:
--------------------------------------------------------------------------------
1 | package com.github.muellerma.mute_reminder
2 |
3 | import android.app.Application
4 | import com.google.android.material.color.DynamicColors
5 |
6 | class App : Application() {
7 | override fun onCreate() {
8 | super.onCreate()
9 | DynamicColors.applyToActivitiesIfAvailable(this)
10 | }
11 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/github/muellerma/mute_reminder/ForegroundService.kt:
--------------------------------------------------------------------------------
1 | package com.github.muellerma.mute_reminder
2 |
3 |
4 | import android.app.Notification
5 | import android.app.NotificationChannel
6 | import android.app.NotificationManager
7 | import android.app.PendingIntent
8 | import android.app.Service
9 | import android.bluetooth.BluetoothDevice
10 | import android.content.BroadcastReceiver
11 | import android.content.Context
12 | import android.content.Intent
13 | import android.content.IntentFilter
14 | import android.content.SharedPreferences
15 | import android.database.ContentObserver
16 | import android.media.AudioManager
17 | import android.os.Build
18 | import android.os.Handler
19 | import android.os.IBinder
20 | import android.os.Looper
21 | import android.provider.Settings
22 | import android.telephony.TelephonyCallback
23 | import android.telephony.TelephonyManager
24 | import android.util.Log
25 | import androidx.core.app.NotificationCompat
26 | import androidx.core.content.ContextCompat
27 | import androidx.core.content.getSystemService
28 |
29 |
30 | class ForegroundService : Service() {
31 | private lateinit var mediaAudioManager: MediaAudioManager
32 | private lateinit var prefs: Prefs
33 | private val volumeObserver = object : ContentObserver(Handler(Looper.getMainLooper())) {
34 | override fun deliverSelfNotifications() = false
35 |
36 | override fun onChange(selfChange: Boolean) {
37 | Log.d(TAG, "volumeObserver onChange()")
38 | handleVolumeChanged()
39 | }
40 | }
41 | private val muteListener = object : BroadcastReceiver() {
42 | override fun onReceive(context: Context, intent: Intent) {
43 | Log.d(TAG, "muteListener onReceive(intent=${intent.action})")
44 |
45 | val bluetoothActions = listOf(
46 | BluetoothDevice.ACTION_ACL_CONNECTED,
47 | BluetoothDevice.ACTION_ACL_DISCONNECTED,
48 | BluetoothDevice.ACTION_ACL_DISCONNECT_REQUESTED
49 | )
50 | if (intent.action in bluetoothActions) {
51 | // audioManager.getDevices() may still return the bluetooth device
52 | // when ACTION_ACL_DISCONNECTED is received here
53 | Thread.sleep(1_000)
54 | }
55 | handleVolumeChanged()
56 | }
57 | }
58 | private val callListener = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
59 | object : TelephonyCallback(), TelephonyCallback.CallStateListener
60 | {
61 | override fun onCallStateChanged(state: Int) {
62 | handleVolumeChanged()
63 | }
64 | }
65 | } else {
66 | null
67 | }
68 |
69 | private val prefsListener = SharedPreferences.OnSharedPreferenceChangeListener { _, key ->
70 | if (key == Prefs.NOTIFY_ONLY_WHEN_MUTED || key == Prefs.AUTO_MUTE) handleVolumeChanged()
71 | }
72 |
73 | private fun handleVolumeChanged() {
74 | Log.d(TAG, "handleVolumeChanged()")
75 | val nm = getSystemService()!!
76 | val shouldNotify = mediaAudioManager.shouldNotify()
77 | when {
78 | shouldNotify && isNotificationShown(nm) -> {
79 | Log.d(TAG, "Should notify, notification is already shown")
80 | }
81 | shouldNotify -> {
82 | if (prefs.autoMute) {
83 | Log.d(TAG, "Should notify, auto mute enabled, muting media")
84 | mediaAudioManager.muteMedia()
85 | } else {
86 | Log.d(TAG, "Should notify, show notification")
87 | nm.notify(NOTIFICATION_ALERT_ID, getNotification())
88 | }
89 | }
90 | else -> {
91 | Log.d(TAG, "Should not notify, hide notification")
92 | nm.cancel(NOTIFICATION_ALERT_ID)
93 | }
94 | }
95 | }
96 |
97 | private fun getNotification(): Notification {
98 | val intent = Intent(this, ForegroundService::class.java)
99 | intent.action = ACTION_MUTE_MEDIA
100 | val pendingIntent = PendingIntent.getService(
101 | this,
102 | 0,
103 | intent,
104 | PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent_Immutable
105 | )
106 | val muteAction = NotificationCompat.Action(
107 | R.drawable.ic_baseline_volume_mute_24,
108 | getString(R.string.mute_media),
109 | pendingIntent
110 | )
111 | return NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ALERT_ID)
112 | .setContentTitle(getString(R.string.notification_reminder_text))
113 | .setTicker(getString(R.string.notification_reminder_text))
114 | .setSmallIcon(R.drawable.ic_baseline_volume_up_24)
115 | .setOngoing(true)
116 | .setShowWhen(true)
117 | .setWhen(System.currentTimeMillis())
118 | .setColor(ContextCompat.getColor(applicationContext, R.color.md_theme_light_primary))
119 | .setCategory(NotificationCompat.CATEGORY_SERVICE)
120 | .addAction(muteAction)
121 | .build()
122 | }
123 |
124 | private fun isNotificationShown(nm: NotificationManager): Boolean {
125 | if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
126 | return false
127 | }
128 | return nm.activeNotifications.any { it.id == NOTIFICATION_ALERT_ID }
129 | }
130 |
131 | override fun onBind(intent: Intent?): IBinder? = null
132 |
133 | override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
134 | Log.d(TAG, "onStartCommand()")
135 | if (intent?.action == ACTION_MUTE_MEDIA) {
136 | //already running
137 | mediaAudioManager.muteMedia()
138 | return START_STICKY
139 | }
140 | mediaAudioManager = MediaAudioManager(this)
141 | prefs = Prefs(this)
142 | // Register for volume changes
143 | applicationContext.contentResolver.registerContentObserver(
144 | Settings.System.CONTENT_URI,
145 | true,
146 | volumeObserver
147 | )
148 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S &&
149 | applicationContext.hasPermission(android.Manifest.permission.READ_PHONE_STATE)
150 | ) {
151 | Log.d(TAG, "Start TelephonyManager listener")
152 | val telephonyManager = getSystemService()
153 | callListener?.let { telephonyManager?.registerTelephonyCallback(mainExecutor, it) }
154 | }
155 |
156 | val intentFilter = IntentFilter().apply {
157 | addAction(AudioManager.ACTION_AUDIO_BECOMING_NOISY)
158 | addAction(AudioManager.ACTION_SCO_AUDIO_STATE_UPDATED)
159 | addAction(AudioManager.RINGER_MODE_CHANGED_ACTION)
160 | addAction(BluetoothDevice.ACTION_ACL_CONNECTED)
161 | addAction(BluetoothDevice.ACTION_ACL_DISCONNECTED)
162 | addAction(BluetoothDevice.ACTION_ACL_DISCONNECT_REQUESTED)
163 | addAction(AudioManager.ACTION_HDMI_AUDIO_PLUG)
164 | addAction(AudioManager.ACTION_HEADSET_PLUG)
165 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
166 | addAction(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED)
167 | }
168 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
169 | addAction(AudioManager.ACTION_SPEAKERPHONE_STATE_CHANGED)
170 | }
171 | }
172 | // Register for DND and bluetooth changes
173 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
174 | registerReceiver(muteListener, intentFilter, RECEIVER_EXPORTED)
175 | } else {
176 | registerReceiver(muteListener, intentFilter)
177 | }
178 | prefs.sharedPrefs.registerOnSharedPreferenceChangeListener(prefsListener)
179 | handleVolumeChanged()
180 |
181 | return START_STICKY
182 | }
183 |
184 | private fun createNotificationChannels() {
185 | if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
186 | return
187 | }
188 |
189 | val nm = getSystemService()!!
190 |
191 | with(
192 | NotificationChannel(
193 | NOTIFICATION_CHANNEL_SERVICE_ID,
194 | getString(R.string.notification_background_title),
195 | NotificationManager.IMPORTANCE_MIN
196 | )
197 | ) {
198 | setShowBadge(false)
199 | enableVibration(false)
200 | enableLights(false)
201 | setSound(null, null)
202 | description = getString(R.string.notification_background_summary)
203 | nm.createNotificationChannel(this)
204 | }
205 |
206 | with(
207 | NotificationChannel(
208 | NOTIFICATION_CHANNEL_ALERT_ID,
209 | getString(R.string.notification_reminder_title),
210 | NotificationManager.IMPORTANCE_HIGH
211 | )
212 | ) {
213 | setShowBadge(true)
214 | enableVibration(false)
215 | enableLights(true)
216 | lightColor = ContextCompat.getColor(this@ForegroundService, R.color.md_theme_light_primary)
217 | setSound(null, null)
218 | nm.createNotificationChannel(this)
219 | }
220 | }
221 |
222 | override fun onCreate() {
223 | Log.d(TAG, "onCreate()")
224 | super.onCreate()
225 |
226 | createNotificationChannels()
227 |
228 | val notificationBuilder = NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_SERVICE_ID)
229 | .setContentTitle(getString(R.string.notification_background_title))
230 | .setTicker(getString(R.string.notification_background_title))
231 | .setContentText(getString(R.string.notification_background_summary))
232 | .setSmallIcon(R.drawable.ic_baseline_volume_mute_24)
233 | .setOngoing(true)
234 | .setShowWhen(true)
235 | .setWhen(System.currentTimeMillis())
236 | .setCategory(NotificationCompat.CATEGORY_SERVICE)
237 |
238 | startForeground(NOTIFICATION_SERVICE_ID, notificationBuilder.build())
239 | }
240 |
241 | override fun onDestroy() {
242 | Log.d(TAG, "onDestroy()")
243 | super.onDestroy()
244 | applicationContext.contentResolver.unregisterContentObserver(volumeObserver)
245 | prefs.sharedPrefs.unregisterOnSharedPreferenceChangeListener(prefsListener)
246 | unregisterReceiver(muteListener)
247 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
248 | val telephonyManager = getSystemService()
249 | callListener?.let { telephonyManager?.unregisterTelephonyCallback(it) }
250 | }
251 | }
252 |
253 | companion object {
254 | private val TAG = ForegroundService::class.java.simpleName
255 | private const val NOTIFICATION_SERVICE_ID = 1
256 | private const val NOTIFICATION_ALERT_ID = 2
257 | private const val NOTIFICATION_CHANNEL_SERVICE_ID = "service"
258 | private const val NOTIFICATION_CHANNEL_ALERT_ID = "alert"
259 |
260 | private const val ACTION_MUTE_MEDIA = "ACTION_MUTE_MEDIA"
261 |
262 | fun changeState(context: Context, start: Boolean) {
263 | Log.d(TAG, "changeState($start)")
264 | val intent = Intent(context, ForegroundService::class.java)
265 | if (start) {
266 | ContextCompat.startForegroundService(context, intent)
267 | } else {
268 | context.stopService(intent)
269 | }
270 | }
271 | }
272 | }
273 |
--------------------------------------------------------------------------------
/app/src/main/java/com/github/muellerma/mute_reminder/InvisibleActivity.kt:
--------------------------------------------------------------------------------
1 | package com.github.muellerma.mute_reminder
2 |
3 | import android.app.Activity
4 | import android.os.Bundle
5 | import android.util.Log
6 |
7 | class InvisibleActivity : Activity() {
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 |
11 | if (intent?.action == ACTION_MUTE) {
12 | Log.d(TAG, "Received mute action")
13 | MediaAudioManager(this).muteMedia()
14 | }
15 |
16 | finishAndRemoveTask()
17 | }
18 |
19 | companion object {
20 | private val TAG = InvisibleActivity::class.java.simpleName
21 | const val ACTION_MUTE = "mute"
22 | }
23 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/github/muellerma/mute_reminder/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.github.muellerma.mute_reminder
2 |
3 | import android.Manifest
4 | import android.content.Intent
5 | import android.os.Build
6 | import android.os.Bundle
7 | import android.util.Log
8 | import androidx.activity.result.contract.ActivityResultContracts
9 | import androidx.appcompat.app.AppCompatActivity
10 | import androidx.core.content.pm.ShortcutInfoCompat
11 | import androidx.core.content.pm.ShortcutManagerCompat
12 | import androidx.core.graphics.drawable.IconCompat
13 | import androidx.core.view.isGone
14 | import com.github.muellerma.mute_reminder.databinding.ActivityMainBinding
15 | import com.github.muellerma.mute_reminder.databinding.BottomSheetPermissionsBinding
16 | import com.google.android.material.bottomsheet.BottomSheetDialog
17 |
18 | class MainActivity : AppCompatActivity() {
19 | private lateinit var mediaAudioManager: MediaAudioManager
20 | private lateinit var binding: ActivityMainBinding
21 | private val permissionLauncher = registerForActivityResult(
22 | ActivityResultContracts.RequestMultiplePermissions()
23 | ) {
24 | Log.d(TAG, "permissionLauncherCallback")
25 | ForegroundService.changeState(this, true)
26 | updatePermissionButton()
27 | }
28 |
29 | override fun onCreate(savedInstanceState: Bundle?) {
30 | Log.d(TAG, "onCreate()")
31 | super.onCreate(savedInstanceState)
32 | binding = ActivityMainBinding.inflate(layoutInflater)
33 | setContentView(binding.root)
34 | supportActionBar?.hide()
35 | mediaAudioManager = MediaAudioManager(this)
36 | setupOnClickListeners()
37 | showPermissionsDialogIfRequired()
38 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1) {
39 | ShortcutManagerCompat.addDynamicShortcuts(this, listOf(getShortcutInfo()))
40 | }
41 | ForegroundService.changeState(this, true)
42 | }
43 |
44 | override fun onResume() {
45 | Log.d(TAG, "onResume()")
46 | super.onResume()
47 | updatePermissionButton()
48 | }
49 |
50 | private fun updatePermissionButton() {
51 | Log.d(TAG, "checkPermissions()")
52 | binding.permissions.isGone = getMissingPermissions().isEmpty()
53 | }
54 |
55 | private fun getMissingPermissions(): Array {
56 | val requiredPermissions = mutableListOf(
57 | Manifest.permission.READ_PHONE_STATE,
58 | Manifest.permission.BLUETOOTH
59 | )
60 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
61 | requiredPermissions.add(Manifest.permission.POST_NOTIFICATIONS)
62 | }
63 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
64 | requiredPermissions.add(Manifest.permission.BLUETOOTH_CONNECT)
65 | }
66 | return requiredPermissions
67 | .filter { !hasPermission(it) }
68 | .toTypedArray()
69 | }
70 |
71 | private fun showPermissionsDialogIfRequired() {
72 | Log.d(TAG, "showPermissionsDialogIfRequired()")
73 |
74 | if (getMissingPermissions().isEmpty()) {
75 | Log.d(TAG, "No permissions missing, don't show dialog")
76 | return
77 | }
78 |
79 | val dialog = BottomSheetDialog(this)
80 | val bottomSheet = BottomSheetPermissionsBinding.inflate(layoutInflater)
81 | bottomSheet.button.setOnClickListener {
82 | dialog.dismiss()
83 | val requestPermissions = getMissingPermissions()
84 | Log.d(TAG, "Request permissions: ${requestPermissions.joinToString()}")
85 | permissionLauncher.launch(requestPermissions)
86 | }
87 | dialog.setContentView(bottomSheet.root)
88 | dialog.show()
89 | }
90 |
91 | private fun setupOnClickListeners() = with(binding) {
92 | settings.setOnClickListener {
93 | Intent(this@MainActivity, PreferenceActivity::class.java).apply {
94 | startActivity(this)
95 | }
96 | }
97 | permissions.setOnClickListener {
98 | showPermissionsDialogIfRequired()
99 | }
100 | muteMedia.setOnClickListener {
101 | mediaAudioManager.muteMedia()
102 | }
103 | }
104 |
105 | private fun getShortcutInfo(): ShortcutInfoCompat {
106 | Log.d(TAG, "getShortcutInfo()")
107 | val intent = Intent(this, InvisibleActivity::class.java)
108 | .setAction(InvisibleActivity.ACTION_MUTE)
109 | return ShortcutInfoCompat.Builder(this, "mute")
110 | .setIntent(intent)
111 | .setShortLabel(getString(R.string.mute_media_short))
112 | .setLongLabel(getString(R.string.mute_media))
113 | .setIcon(IconCompat.createWithResource(this, R.mipmap.ic_shortcut_mute))
114 | .setAlwaysBadged()
115 | .build()
116 | }
117 |
118 | companion object {
119 | private val TAG = MainActivity::class.java.simpleName
120 | }
121 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/github/muellerma/mute_reminder/MediaAudioManager.kt:
--------------------------------------------------------------------------------
1 | package com.github.muellerma.mute_reminder
2 |
3 | import android.content.Context
4 | import android.media.AudioDeviceInfo
5 | import android.media.AudioManager
6 | import android.os.Build
7 | import android.util.Log
8 | import androidx.core.content.getSystemService
9 |
10 | class MediaAudioManager(private val context: Context) {
11 | private val audioManager: AudioManager = context.getSystemService()!!
12 | private val prefs = Prefs(context)
13 |
14 | fun shouldNotify(): Boolean {
15 | return (!prefs.notifyOnlyWhenMuted || isRingToneMuted()) && !isMediaMuted() && !usesRemoteOutput()
16 | }
17 |
18 | fun muteMedia() {
19 | try {
20 | audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 0, AudioManager.FLAG_SHOW_UI)
21 | } catch (e: SecurityException) {
22 | // setStreamVolume may fail at don't-disturb Mode
23 | context.showToast(R.string.mute_media_failed)
24 | }
25 | }
26 |
27 | private fun isMediaMuted(): Boolean {
28 | val mediaVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC)
29 | Log.d(TAG, "mediaVolume=$mediaVolume")
30 | return mediaVolume == 0
31 | }
32 |
33 | private fun isRingToneMuted(): Boolean {
34 | val ringVolume = audioManager.getStreamVolume(AudioManager.STREAM_RING)
35 | Log.d(TAG, "ringVolume=$ringVolume")
36 | return ringVolume == 0
37 | }
38 |
39 | private fun usesRemoteOutput(): Boolean {
40 | return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
41 | val ignoreOutputs = mutableListOf(
42 | AudioDeviceInfo.TYPE_BLUETOOTH_A2DP,
43 | AudioDeviceInfo.TYPE_WIRED_HEADPHONES,
44 | AudioDeviceInfo.TYPE_WIRED_HEADSET
45 | )
46 |
47 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
48 | ignoreOutputs.add(AudioDeviceInfo.TYPE_USB_HEADSET)
49 | }
50 |
51 | val outputs = audioManager
52 | .getDevices(AudioManager.GET_DEVICES_OUTPUTS)
53 | .filter { device -> device.isSink }
54 |
55 | Log.d(TAG, "Connected to sinks: ${outputs.joinToString("|") { "${it.productName}, ${it.type}" }}")
56 |
57 | val remoteOutputs = outputs
58 | .filter { device -> device.type in ignoreOutputs }
59 |
60 | Log.d(TAG, "Connected to remote sinks: ${remoteOutputs.joinToString("|") { "${it.productName}, ${it.type}" }}")
61 | remoteOutputs.isNotEmpty()
62 | } else {
63 | @Suppress("DEPRECATION")
64 | audioManager.isWiredHeadsetOn || audioManager.isBluetoothA2dpOn
65 | }
66 | }
67 |
68 | companion object {
69 | private val TAG = MediaAudioManager::class.java.simpleName
70 | }
71 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/github/muellerma/mute_reminder/PreferenceActivity.kt:
--------------------------------------------------------------------------------
1 | package com.github.muellerma.mute_reminder
2 |
3 | import android.app.usage.UsageStatsManager
4 | import android.os.Build
5 | import android.os.Bundle
6 | import android.os.PowerManager
7 | import android.view.MenuItem
8 | import android.view.View
9 | import androidx.appcompat.app.AppCompatActivity
10 | import androidx.core.content.getSystemService
11 | import androidx.fragment.app.commit
12 | import androidx.preference.Preference
13 | import androidx.preference.PreferenceFragmentCompat
14 | import com.github.muellerma.mute_reminder.databinding.ActivityPreferenceBinding
15 | import com.mikepenz.aboutlibraries.LibsBuilder
16 | import com.mikepenz.aboutlibraries.LibsConfiguration
17 | import com.mikepenz.aboutlibraries.entity.Library
18 | import com.mikepenz.aboutlibraries.util.SpecialButton
19 |
20 |
21 | class PreferenceActivity : AppCompatActivity() {
22 | private lateinit var binding: ActivityPreferenceBinding
23 |
24 | override fun onCreate(savedInstanceState: Bundle?) {
25 | super.onCreate(savedInstanceState)
26 | binding = ActivityPreferenceBinding.inflate(layoutInflater)
27 | setContentView(binding.root)
28 |
29 | supportActionBar?.setDisplayHomeAsUpEnabled(true)
30 |
31 | if (savedInstanceState == null) {
32 | supportFragmentManager.commit {
33 | add(binding.activityContent.id, MainSettingsFragment())
34 | }
35 | }
36 | }
37 |
38 | override fun onOptionsItemSelected(item: MenuItem): Boolean {
39 | return when (item.itemId) {
40 | android.R.id.home -> {
41 | onBackPressedDispatcher.onBackPressed()
42 | true
43 | }
44 | else -> super.onOptionsItemSelected(item)
45 | }
46 | }
47 |
48 | class MainSettingsFragment : PreferenceFragmentCompat() {
49 | override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
50 | addPreferencesFromResource(R.xml.pref_main)
51 |
52 | getPreference("about").setOnPreferenceClickListener {
53 | val fragment = LibsBuilder()
54 | .withAboutIconShown(true)
55 | .withAboutVersionShownName(true)
56 | .withSortEnabled(true)
57 | .withListener(AboutButtonsListener())
58 | .supportFragment()
59 |
60 | parentFragmentManager.commit {
61 | addToBackStack("about")
62 | val prefActivity = requireActivity() as PreferenceActivity
63 | replace(prefActivity.binding.activityContent.id, fragment, "about")
64 | }
65 | true
66 | }
67 |
68 | var debugInfo = ""
69 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
70 | val isIgnoringBatteryOptimizations = requireContext()
71 | .getSystemService()!!
72 | .isIgnoringBatteryOptimizations(BuildConfig.APPLICATION_ID)
73 | debugInfo += "isIgnoringBatteryOptimizations = $isIgnoringBatteryOptimizations\n"
74 | }
75 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
76 | val appStandbyBucket = requireContext()
77 | .getSystemService()!!
78 | .appStandbyBucket
79 | debugInfo += "appStandbyBucket = $appStandbyBucket\n"
80 | }
81 | getPreference("debug").summary = debugInfo
82 | if (debugInfo.isEmpty()) {
83 | preferenceScreen.removePreferenceRecursively("debug")
84 | }
85 | }
86 | }
87 | }
88 |
89 | class AboutButtonsListener : LibsConfiguration.LibsListener {
90 | override fun onExtraClicked(v: View, specialButton: SpecialButton): Boolean {
91 | val link = when (specialButton) {
92 | SpecialButton.SPECIAL1 -> "https://github.com/mueller-ma/MuteReminder"
93 | SpecialButton.SPECIAL2 -> "https://f-droid.org/de/packages/com.github.muellerma.mute_reminder/"
94 | SpecialButton.SPECIAL3 -> "https://crowdin.com/project/mutereminder"
95 | }
96 | link.openInBrowser(v.context)
97 | return true
98 | }
99 |
100 | override fun onIconClicked(v: View) {
101 | // no-op
102 | }
103 |
104 | override fun onIconLongClicked(v: View): Boolean {
105 | return false
106 | }
107 |
108 | override fun onLibraryAuthorClicked(v: View, library: Library): Boolean {
109 | return false
110 | }
111 |
112 | override fun onLibraryAuthorLongClicked(v: View, library: Library): Boolean {
113 | return false
114 | }
115 |
116 | override fun onLibraryBottomClicked(v: View, library: Library): Boolean {
117 | return false
118 | }
119 |
120 | override fun onLibraryBottomLongClicked(v: View, library: Library): Boolean {
121 | return false
122 | }
123 |
124 | override fun onLibraryContentClicked(v: View, library: Library): Boolean {
125 | return false
126 | }
127 |
128 | override fun onLibraryContentLongClicked(v: View, library: Library): Boolean {
129 | return false
130 | }
131 | }
132 |
133 | fun PreferenceFragmentCompat.getPreference(key: String) =
134 | preferenceManager.findPreference(key)!!
135 |
--------------------------------------------------------------------------------
/app/src/main/java/com/github/muellerma/mute_reminder/Prefs.kt:
--------------------------------------------------------------------------------
1 | package com.github.muellerma.mute_reminder
2 |
3 | import android.content.Context
4 | import android.content.SharedPreferences
5 | import androidx.core.content.edit
6 | import androidx.preference.PreferenceManager
7 |
8 | class Prefs(context: Context) {
9 | var sharedPrefs: SharedPreferences = PreferenceManager.getDefaultSharedPreferences(context)
10 | private set
11 |
12 | var notifyOnlyWhenMuted: Boolean
13 | get() = sharedPrefs.getBoolean(NOTIFY_ONLY_WHEN_MUTED, true)
14 | set(value) = sharedPrefs.edit { putBoolean(NOTIFY_ONLY_WHEN_MUTED, value) }
15 |
16 | var autoMute: Boolean
17 | get() = sharedPrefs.getBoolean(AUTO_MUTE, false)
18 | set(value) = sharedPrefs.edit { putBoolean(AUTO_MUTE, value) }
19 |
20 | companion object {
21 | const val NOTIFY_ONLY_WHEN_MUTED = "notify_only_when_muted"
22 | const val AUTO_MUTE = "auto_mute"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/app/src/main/java/com/github/muellerma/mute_reminder/RestartReceiver.kt:
--------------------------------------------------------------------------------
1 | package com.github.muellerma.mute_reminder
2 |
3 | import android.content.BroadcastReceiver
4 | import android.content.Context
5 | import android.content.Intent
6 |
7 | /**
8 | * Restart MuteReminder after boot or app update.
9 | */
10 | class RestartReceiver : BroadcastReceiver() {
11 | override fun onReceive(context: Context, intent: Intent) {
12 | if (intent.action !in validActions) {
13 | return
14 | }
15 |
16 | ForegroundService.changeState(context, true)
17 | }
18 |
19 | companion object {
20 | private val validActions = listOf(
21 | Intent.ACTION_MY_PACKAGE_REPLACED,
22 | Intent.ACTION_BOOT_COMPLETED
23 | )
24 | }
25 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/github/muellerma/mute_reminder/Utils.kt:
--------------------------------------------------------------------------------
1 | package com.github.muellerma.mute_reminder
2 |
3 | import android.app.PendingIntent
4 | import android.content.ActivityNotFoundException
5 | import android.content.Context
6 | import android.content.Intent
7 | import android.content.pm.PackageManager
8 | import android.net.Uri
9 | import android.os.Build
10 | import android.util.Log
11 | import android.widget.Toast
12 | import androidx.annotation.StringRes
13 | import androidx.core.content.ContextCompat
14 |
15 | private const val TAG = "Utils"
16 |
17 | fun String.openInBrowser(context: Context) {
18 | val intent = Intent(Intent.ACTION_VIEW, Uri.parse(this))
19 | try {
20 | context.startActivity(intent)
21 | } catch (e: ActivityNotFoundException) {
22 | Log.d(TAG, "Unable to open url in browser: $intent")
23 | context.showToast(R.string.error_no_browser_found)
24 | }
25 | }
26 |
27 | fun Context.hasPermission(string: String): Boolean {
28 | return ContextCompat.checkSelfPermission(
29 | this,
30 | string
31 | ) == PackageManager.PERMISSION_GRANTED
32 | }
33 |
34 | fun Context.showToast(@StringRes msg: Int) {
35 | Toast
36 | .makeText(this, msg, Toast.LENGTH_SHORT)
37 | .show()
38 | }
39 |
40 | val PendingIntent_Immutable = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
41 | PendingIntent.FLAG_IMMUTABLE
42 | } else {
43 | 0
44 | }
45 |
46 | val PendingIntent_Mutable = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
47 | PendingIntent.FLAG_MUTABLE
48 | } else {
49 | 0
50 | }
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_baseline_volume_mute_24.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_baseline_volume_up_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
11 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_outline_volume_up_120.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_shortcut_mute_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
11 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
15 |
16 |
25 |
26 |
36 |
37 |
46 |
47 |
57 |
58 |
68 |
69 |
79 |
80 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_preference.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/bottom_sheet_permissions.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
13 |
14 |
19 |
20 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_shortcut_mute.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_shortcut_mute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/app/src/main/res/mipmap-hdpi/ic_shortcut_mute.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_shortcut_mute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/app/src/main/res/mipmap-mdpi/ic_shortcut_mute.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_shortcut_mute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/app/src/main/res/mipmap-xhdpi/ic_shortcut_mute.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_shortcut_mute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/app/src/main/res/mipmap-xxhdpi/ic_shortcut_mute.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_shortcut_mute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/app/src/main/res/mipmap-xxxhdpi/ic_shortcut_mute.png
--------------------------------------------------------------------------------
/app/src/main/res/resources.properties:
--------------------------------------------------------------------------------
1 | unqualifiedResLocale=en-US
2 |
--------------------------------------------------------------------------------
/app/src/main/res/values-af/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ar/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | كتم تذكير
7 |
8 | يتم إظهار إشعار إذا تم كتم نغمة الرنين ، ولكن الوسائط غير موجودة والوسائط سيتم تشغيلها على المتحدثين المحليين. يمكنك تغيير هذا السلوك في الإعدادات.
9 | لم يتم العثور على متصفح
10 | منح الإذن مفقود
11 | كتم التذكير يتطلب أذونات لإظهار الإشعارات والتفاعل على الأحداث، مثل سماعة البلوتوث المتصلة
12 | كتم صوت الوسائط
13 | كتم
14 | فشل في كتم الصوت
15 |
16 | لم يتم كتم الوسائط
17 | تذكير
18 | خدمة الخلفية
19 | يمكنك إخفاء فئة الإشعارات هذه
20 |
21 | الإعدادات
22 | عام
23 | إعلام فقط عندما يتم كتم نغمة الرنين
24 | كتم تلقائي
25 | حول
26 | معلومات عن استكشاف الأخطاء
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ca/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | No s\'ha trobat cap navegador
8 |
9 |
10 | Configuració
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/values-cs/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Ztlumit připomenutí
7 |
8 | Upozornění se zobrazí pokud je vyzvánění ztlumeno, ale média nejsou a média budou přehrána přes místní reproduktory. Toto chování můžete změnit v nastavení.
9 | Nebyl nalezen žádný prohlížeč
10 | Udělit chybějící oprávnění
11 | Ztlumit připomenutí vyžaduje oprávnění k zobrazování oznámení a reakci na události, např. připojená Bluetooth sluchátka
12 | Ztlumit hlasitost médií
13 | Ztlumit
14 | Nepodařilo se ztlumit hlasitost
15 |
16 | Média nejsou ztlumena
17 | Připomenutí
18 | Služba na pozadí
19 | Tuto kategorii oznámení můžete skrýt
20 |
21 | Nastavení
22 | Obecná ustanovení
23 | Upozornit pouze při ztlumeném vyzvánění
24 | Automaticky ztlumit
25 | O aplikaci
26 | Informace pro řešení problémů
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-da/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Lydløs påmindelse
7 |
8 | En meddelelse vises, hvis ringetone er muted, men medier er ikke, og medier vil blive spillet over lokale højttalere. Du kan ændre denne adfærd i indstillingerne.
9 | Ingen browser fundet
10 | Tildel manglende tilladelse
11 | Lydløs påmindelse kræver tilladelser til at vise notifikationer og reagere på begivenheder, f.eks. bluetooth headset tilsluttet
12 | Lydløs medielydstyrke
13 | Lydløs
14 | Lydstyrken kunne ikke slås fra
15 |
16 | Medier ikke dæmpet
17 | Påmindelse
18 | Baggrunds tjeneste
19 | Du kan skjule denne notifikationskategori
20 |
21 | Indstillinger
22 | Generelt
23 | Giv kun besked, når ringetone er slået fra
24 | Automatisk lydløs
25 | Om
26 | Oplysninger om fejlfinding
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-de/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Mute Reminder
7 |
8 | Eine Benachrichtigung wird angezeigt, wenn der Klingelton stummgeschaltet ist und Medien über lokale Lautsprecher abgespielt werden würden. Du kannst dieses Verhalten in den Einstellungen ändern.
9 | Kein Browser gefunden
10 | Fehlende Berechtigung gewähren
11 | Mute Reminder benötigt Berechtigungen, um Benachrichtigungen anzuzeigen und auf Ereignisse zu reagieren, z.B. Bluetooth-Headset verbunden
12 | Medien stumm schalten
13 | Stumm
14 | Fehler beim Stummschalten
15 |
16 | Medien nicht stummgeschaltet
17 | Erinnerung
18 | Hintergrunddienst
19 | Du kannst diese Benachrichtigungskategorie ausblenden
20 |
21 | Einstellungen
22 | Allgemein
23 | Nur benachrichtigen, wenn Klingelton stumm ist
24 | Automatisch stumm schalten
25 | Über
26 | Informationen zur Fehlerbehebung
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-el/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Σίγαση υπενθύμισης
7 |
8 | Εμφανίζεται μια ειδοποίηση αν ο ήχος κλήσης είναι σε σίγαση, αλλά τα πολυμέσα δεν είναι και τα πολυμέσα θα αναπαράγονται μέσω τοπικών ομιλητών. Μπορείτε να αλλάξετε αυτή τη συμπεριφορά στις ρυθμίσεις.
9 | Δεν βρέθηκε πρόγραμμα περιήγησης
10 | Χορήγηση δικαιωμάτων που λείπουν
11 | Η σίγαση υπενθύμισης απαιτεί δικαιώματα για εμφάνιση ειδοποιήσεων και αντίδραση σε συμβάντα, π.χ. συνδεδεμένα ακουστικά bluetooth
12 | Σίγαση έντασης πολυμέσων
13 | Σίγαση
14 | Αποτυχία σίγασης έντασης
15 |
16 | Μη σίγαση πολυμέσων
17 | Υπενθύμιση
18 | Υπηρεσία παρασκηνίου
19 | Μπορείτε να αποκρύψετε αυτή την κατηγορία ειδοποιήσεων
20 |
21 | Ρυθμίσεις
22 | Γενικά
23 | Ειδοποίηση μόνο όταν ο ήχος κλήσης είναι σε σίγαση
24 | Αυτόματη σίγαση
25 | Σχετικά
26 | Πληροφορίες για την αντιμετώπιση προβλημάτων
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-en/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/values-es/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Recordatorio de silencio
7 |
8 | Se muestra una notificación si el tono de llamada está silenciado, pero los medios no y los medios se reproducirían sobre los altavoces locales. Puede cambiar este comportamiento en la configuración.
9 | No se encontró ningún navegador
10 | Otorgar permiso perdido
11 | Recordatorio de silencio requiere permisos para mostrar notificaciones y reaccionar en eventos, por ejemplo, auriculares bluetooth conectados
12 | Silenciar volumen multimedia
13 | Silenciar
14 | Error al silenciar el volumen
15 |
16 | Medios no silenciados
17 | Recordatorio
18 | Servicio de fondo
19 | Puede ocultar esta categoría de notificación
20 |
21 | Ajustes
22 | General
23 | Notificar solo cuando el tono de llamada está silenciado
24 | Auto silenciar
25 | Acerca de
26 | Información para la solución de problemas
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-fa/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values-fi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Mykistä muistutus
7 |
8 | Ilmoitus näytetään, jos soittoääni on mykistetty, mutta mediaa ei ja mediaa soitettaisiin paikallisissa puhujissa. Voit muuttaa tätä käyttäytymistä asetuksissa.
9 | Selainta ei löytynyt
10 | Myönnä puuttuva lupa
11 | Mykistä muistutus vaatii käyttöoikeudet ilmoitusten näyttämiseen ja tapahtumiin reagointiin, esim. Bluetooth-kuulokkeet yhdistetty
12 | Mykistä median äänenvoimakkuus
13 | Mykistä
14 | Äänenvoimakkuuden mykistäminen epäonnistui
15 |
16 | Mediaa ei mykistetty
17 | Muistutus
18 | Taustan palvelu
19 | Voit piilottaa tämän ilmoituskategorian
20 |
21 | Asetukset
22 | Yleiset
23 | Ilmoita vain kun soittoääni on mykistetty
24 | Automaattinen mykistys
25 | Tietoja
26 | Vianmäärityksen tiedot
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-fr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Rappel de silencieux
7 |
8 | Une notification s\'affiche si la sonnerie est mise en sourdine, mais que le média n\'est pas affiché et que le média est lu sur les haut-parleurs locaux. Vous pouvez modifier ce comportement dans les paramètres.
9 | Aucun navigateur trouvé
10 | Accorder les autorisations manquantes
11 | Le rappel de mise en sourdine nécessite des autorisations pour afficher les notifications et réagir lors d\'événements, par exemple le casque Bluetooth connecté
12 | Mettre en sourdine le volume des médias
13 | Couper le son
14 | Impossible de couper le volume
15 |
16 | Média non mis en sourdine
17 | Rappel
18 | Service en arrière-plan
19 | Vous pouvez masquer cette catégorie de notification
20 |
21 | Paramètres
22 | Général
23 | Notifier uniquement lorsque la sonnerie est mise en sourdine
24 | Coupure automatique
25 | À propos
26 | Informations pour le dépannage
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-hu/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Nem található böngésző
8 |
9 |
10 | Beállítások
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/values-in/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values-it/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Mute reminder
7 |
8 | Viene mostrata una notifica se la suoneria è disattivata mentre l\'audio è attivo e verrebbe riprodotto con gli altoparlanti locali. È possibile modificare questo comportamento nelle impostazioni.
9 | Nessun browser trovato
10 | Concedere l\'autorizzazione mancante
11 | Mute reminder necessita queste autorizzazioni per mostrare notifiche e reagire agli eventi come cuffie bluetooth collegate
12 | Silenzia volume multimediale
13 | Silenzia
14 | Impossibile disattivare il volume
15 |
16 | Audio non silenziato
17 | Promemoria
18 | Servizio in background
19 | Puoi nascondere questa categoria di notifica
20 |
21 | Impostazioni
22 | Generali
23 | Notifica solo quando la suoneria è in silenzioso
24 | Silenzia automaticamente
25 | Informazioni
26 | Informazioni per la risoluzione di problemi
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-iw/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | לא נמצא דפדפן
8 |
9 |
10 | הגדרות
11 | כללי
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ja/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Mute Reminder
7 |
8 | 着信音がミュートされているがメディアはミュートされていない場合、ワンタッチでメディアをミュートできる通知を表示します。 着信音がミュートされていない場合に通知を表示するかは、設定で変更できます。
9 | ブラウザが見つかりませんでした
10 | 不足している権限を許可
11 | 通知の表示やBluetoothデバイスに接続するなどのイベントに反応するには、権限の許可が必要です。
12 | メディアをミュート
13 | ミュート
14 | メディアのミュートに失敗しました。
15 |
16 | メディアはミュートされていません。
17 | リマインダー
18 | バックグラウンドでの音量などの監視
19 | この通知を非表示にすることができます。
20 |
21 | 設定
22 | 全般
23 | 着信音がミュートされているときにのみ通知を表示
24 | 自動ミュート
25 | このアプリケーションについて
26 | トラブルシューティングのための情報
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ji/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ko/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values-nb/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Demp påminnelse
7 |
8 | En varsling vises hvis ringetonen er dempet, men mediet er ikke og vil bli avspilt over lokale høyttalere. Du kan endre denne oppførselen i innstillingene.
9 | Ingen nettleser funnet
10 | Gi manglende tillatelse
11 | Mute påminnelse krever tillatelse til å vise varsler og reagere på hendelser, f.eks bluetooth headset tilkoblet
12 | Demp medievolum
13 | Demp
14 | Kunne ikke dempe volumet
15 |
16 | Media ikke dempet
17 | Påminnelse
18 | Bakgrunns tjeneste
19 | Du kan skjule denne varslingskategorien
20 |
21 | Innstillinger
22 | Generelt
23 | Varsle kun når ringetonen er dempet
24 | Automatisk demping
25 | Om
26 | Informasjon for feilsøking
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
--------------------------------------------------------------------------------
/app/src/main/res/values-nl/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Notificatie dempen
7 |
8 | Er wordt een melding getoond als beltoon is gedempt, maar media is niet en media zouden worden afgespeeld over lokale sprekers. U kunt dit gedrag wijzigen in de instellingen.
9 | Geen browser gevonden
10 | Ontbrekende toestemming verlenen
11 | Dempen herinnering vereist machtigingen om meldingen te tonen en te reageren op gebeurtenissen, bijvoorbeeld bluetooth headset verbonden
12 | Mediavolume uitschakelen
13 | Dempen
14 | Kan volume niet dempen
15 |
16 | Media niet gedempt
17 | Herinnering
18 | Achtergrond service
19 | U kunt deze meldingscategorie verbergen
20 |
21 | Instellingen
22 | Algemeen
23 | Waarschuw alleen wanneer beltoon is gedempt
24 | Automatisch dempen
25 | Informatie
26 | Informatie voor het oplossen van problemen
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-no/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values-pl/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Wycisz przypomnienie
7 |
8 | Powiadomienie jest wyświetlane, jeśli dzwonek jest wyciszony, ale media nie są i media będą odtwarzane przez lokalne głośniki. Możesz zmienić to zachowanie w ustawieniach.
9 | Nie znaleziono przeglądarki
10 | Udziel brakujących uprawnień
11 | Wyciszenie przypomnienia wymaga uprawnień do wyświetlania powiadomień i reagowania na wydarzenia, np. podłączony zestaw słuchawkowy bluetooth
12 | Wycisz głośność multimediów
13 | Wycisz
14 | Wyciszenie głośności nie powiodło się
15 |
16 | Multimedia nie wyciszone
17 | Przypomnienie
18 | Usługa w tle
19 | Możesz ukryć tę kategorię powiadomień
20 |
21 | Ustawienia
22 | Ogólne
23 | Powiadamiaj tylko, gdy dzwonek jest wyciszony
24 | Automatyczne wyciszenie
25 | Informacje
26 | Informacje o rozwiązywaniu problemów
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-pt-rBR/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Silenciar lembrete
7 |
8 | Uma notificação é exibida se o toque for silenciado, mas os meios de comunicação não e os meios de comunicação serão reproduzidos pelos alto-falantes locais. Você pode alterar esse comportamento nas configurações.
9 | Nenhum navegador encontrado
10 | Conceder permissão faltando
11 | Silenciar lembrete requer permissões para mostrar notificações e reagir em eventos, por exemplo, fone de ouvido bluetooth conectado
12 | Silenciar volume de mídia
13 | Silenciar
14 | Falha ao silenciar o volume
15 |
16 | Mídia não silenciada
17 | Lembrete
18 | Serviço de fundo
19 | Você pode ocultar esta categoria de notificação
20 |
21 | Configurações
22 | Gerar
23 | Notificar apenas quando o toque de toque for silenciado
24 | Silenciar automaticamente
25 | &Sobre
26 | Informações para solução de problemas
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-pt/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Silenciar lembrete
7 |
8 | Uma notificação é exibida se o toque for silenciado, mas os meios de comunicação não e os meios de comunicação serão reproduzidos pelos alto-falantes locais. Você pode alterar esse comportamento nas configurações.
9 | Nenhum navegador encontrado
10 | Conceder permissão faltando
11 | Silenciar lembrete requer permissões para mostrar notificações e reagir em eventos, por exemplo, fone de ouvido bluetooth conectado
12 | Silenciar volume de mídia
13 | Silenciar
14 | Falha ao silenciar o volume
15 |
16 | Mídia não silenciada
17 | Lembrete
18 | Serviço de fundo
19 | Você pode ocultar esta categoria de notificação
20 |
21 | Definições
22 | Gerais
23 | Notificar apenas quando o toque de toque for silenciado
24 | Silenciar automaticamente
25 | SOBRE
26 | Informações para solução de problemas
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ro/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Memento mut mut
7 |
8 | O notificare este afișată dacă tonul de apel este dezactivat, dar mass-media nu este și mass-media va fi redată peste difuzoarele locale. Puteți schimba acest comportament în setări.
9 | Nici un browser găsit
10 | Acordă permisiunea lipsă
11 | Memento-ul mute necesită permisiuni pentru a afișa notificări și a reacționa la evenimente, de ex. set căști bluetooth conectat
12 | Dezactivează volumul media
13 | Amuțit
14 | Esuare mut volum
15 |
16 | Media nu este dezactivată
17 | Memento
18 | Serviciu de fundal
19 | Puteți ascunde această categorie de notificări
20 |
21 | Setări
22 | Generalități
23 | Notifică numai când sunetul de sunet este dezactivat
24 | Oprire automată
25 | Despre
26 | Informaţii pentru depanare
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ru/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Отключить напоминание
7 |
8 | Уведомление отображается, если звук выключен, но медиа не и медиа будут воспроизводиться на локальных динамиках. Вы можете изменить это поведение в настройках.
9 | Браузер не найден
10 | Не хватает разрешения
11 | Отключить напоминание требует разрешения для отображения уведомлений и реагирования на события, например Bluetooth гарнитуры подключены
12 | Отключить звук мультимедиа
13 | Заглушить
14 | Не удалось отключить звук
15 |
16 | Медиафайл не заглушен
17 | Напоминание
18 | Справочная служба
19 | Вы можете скрыть эту категорию уведомлений
20 |
21 | Настройки
22 | Общие
23 | Уведомлять только при отключении звука
24 | Автоотключение звука
25 | О нас
26 | Информация для устранения неполадок
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-sr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values-sv/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Tysta påminnelse
7 |
8 | En avisering visas om ringsignalen är dämpad, men media är inte och media skulle spelas över lokala talare. Du kan ändra detta beteende i inställningarna.
9 | Ingen webbläsare hittades
10 | Bevilja saknad behörighet
11 | Tysta påminnelse kräver behörigheter för att visa aviseringar och reagera på händelser, t.ex. Bluetooth-headset ansluten
12 | Tysta media-volym
13 | Tysta
14 | Det gick inte att tysta volymen
15 |
16 | Media är inte tystad
17 | Påminnelse
18 | Bakgrundstjänsten
19 | Du kan dölja denna aviseringskategori
20 |
21 | Inställningar
22 | Allmänt
23 | Notifiera endast när ringsignalen är tystad
24 | Tysta automatiskt
25 | Om
26 | Information för felsökning
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-tr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Susturma hatırlatıcısı
7 |
8 | Zil sesi kapatılmış ancak medya kapatılmamışsa ve medya yerel hoparlörler üzerinden çalınıyorsa bir bildirim gösterilir.
9 | Tarayıcı bulunamadı
10 | Eksik izni ver
11 | Susturma hatırlatıcısı, bildirimleri göstermek ve olaylara tepki vermek için izinler gerektirir, örneğin bluetooth kulaklık bağlı
12 | Medya sesini kapat
13 | Sustur
14 | Ses kapatılamadı
15 |
16 | Medya sessize alınmamış
17 | Hatırlatıcı
18 | Arka plan hizmeti
19 | Bu bildirim kategorisini gizleyebilirsiniz
20 |
21 | Ayarlar
22 | Genel
23 | Yalnızca zil sesi kapatıldığında bildir
24 | Hakkında
25 | Sorun gidermeye yönelik bilgiler
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/values-uk/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Цить
7 |
8 | Сповіщення показує, якщо звук буде приглушений, але медіа та медіа не відтворюватимуться над місцевими доповідачами. Ти можеш змінити таку поведінку в налаштуваннях.
9 | Вебпереглядача не знайдено
10 | Надати відсутні дозволи
11 | Для звукового нагадування потрібні дозволи на відображення сповіщень і реагування на події, наприклад, підключена гарнітура bluetooth
12 | Вимкнути звук мультимедіа
13 | Вимкнути звук
14 | Не вдалося вимкнути гучність
15 |
16 | Мультимедіа не заглушено
17 | Нагадування
18 | Фонова служба
19 | Можете сховати цю категорію сповіщень
20 |
21 | Налаштування
22 | Основне
23 | Сповіщати лише коли звук дзвінка вимкнено
24 | Вимкнути звук
25 | Про програму
26 | Інформація щодо усунення несправностей
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/values-vi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values-zh-rCN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 静音提示器
7 |
8 | 当铃声音量设置为静音、媒体音量未静音时,
9 | 您将在媒体从本地扬声器播放时收到通知提醒。
10 | 您可以在设置中更改此行为。
11 | 未找到可用的浏览器
12 | 授予缺少的权限
13 | 静音提示器需要权限以显示通知与响应事件(例如“蓝牙耳机已连接”)
14 | 静音媒体音量
15 | 静音
16 | 静音失败
17 |
18 | 没有静音媒体音量
19 | 提示
20 | 后台服务
21 | 您可以隐藏此通知类别
22 |
23 | 设置
24 | 通用
25 | 仅在铃声静音时弹出通知
26 | 自动静音
27 | 关于
28 | 故障排除信息
29 |
30 |
31 |
--------------------------------------------------------------------------------
/app/src/main/res/values-zh/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #6200EE
4 | #6D23F9
5 | #FFFFFF
6 | #E8DDFF
7 | #22005D
8 | #5E42D8
9 | #FFFFFF
10 | #E5DEFF
11 | #1A0063
12 | #5E42D8
13 | #FFFFFF
14 | #E5DEFF
15 | #1A0063
16 | #BA1A1A
17 | #FFDAD6
18 | #FFFFFF
19 | #410002
20 | #FFFBFF
21 | #1C1B1E
22 | #FFFBFF
23 | #1C1B1E
24 | #E7E0EC
25 | #49454E
26 | #7A757F
27 | #F4EFF4
28 | #313033
29 | #CFBDFF
30 | #000000
31 | #6D23F9
32 | #6D23F9
33 | #CFBDFF
34 | #3A0093
35 | #5300CD
36 | #E8DDFF
37 | #C9BFFF
38 | #2F009C
39 | #4622C0
40 | #E5DEFF
41 | #C9BFFF
42 | #2F009C
43 | #4622C0
44 | #E5DEFF
45 | #FFB4AB
46 | #93000A
47 | #690005
48 | #FFDAD6
49 | #1C1B1E
50 | #E6E1E6
51 | #1C1B1E
52 | #E6E1E6
53 | #49454E
54 | #CAC4CF
55 | #948F99
56 | #1C1B1E
57 | #E6E1E6
58 | #6D23F9
59 | #000000
60 | #CFBDFF
61 | #CFBDFF
62 |
63 | #3F51B5
64 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 | Mute reminder
9 |
10 |
11 | A notification is shown if ringtone is muted, but media isn\'t and media would be played over local speakers. You can change this behavior in the settings.
12 | No browser found
13 | Grant missing permission
14 | Mute reminder requires permissions to show notifications and react on events, e.g. bluetooth headset connected
15 | Mute media volume
16 | Mute
17 | Failed to mute volume
18 |
19 | Media not muted
20 | Reminder
21 | Background service
22 | You can hide this notification category
23 |
24 |
25 | Settings
26 | General
27 | Notify only when ring tone is muted
28 | Auto mute
29 | About
30 | Information for troubleshooting
31 |
32 |
33 | GitHub
34 | F-Droid
35 | Crowdin
36 |
--------------------------------------------------------------------------------
/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/pref_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
15 |
16 |
17 |
20 |
25 |
26 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | ext.kotlin_version = "2.1.21"
4 | ext.about_libraries_version = "11.2.3"
5 | repositories {
6 | google()
7 | mavenCentral()
8 | maven {
9 | url "https://plugins.gradle.org/m2/"
10 | }
11 | }
12 | dependencies {
13 | classpath 'com.android.tools.build:gradle:8.11.1'
14 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
15 | classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:$about_libraries_version"
16 | // NOTE: Do not place your application dependencies here; they belong
17 | // in the individual module build.gradle files
18 | }
19 | }
20 |
21 | allprojects {
22 | repositories {
23 | google()
24 | mavenCentral()
25 | }
26 | }
27 |
28 | task clean(type: Delete) {
29 | delete rootProject.buildDir
30 | }
--------------------------------------------------------------------------------
/crowdin.yml:
--------------------------------------------------------------------------------
1 | files:
2 | - source: /app/src/main/res/values/strings.xml
3 | translation: /app/src/main/res/values-%two_letters_code%/strings.xml
4 | translate_attributes: 0
5 | content_segmentation: 0
6 | languages_mapping:
7 | two_letters_code:
8 | pt-BR: pt-rBR
9 | zh-CN: zh-rCN
10 | he: iw
11 | id: in
12 | yi: ji
13 | - source: /fastlane/metadata/android/en-US/*.txt
14 | translation: /fastlane/metadata/android/%locale%/%original_file_name%
15 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/af-ZA/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/af-ZA/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/af-ZA/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/ar-SA/full_description.txt:
--------------------------------------------------------------------------------
1 | يتم إظهار إشعار إذا تم كتم نغمة الرنين ، ولكن الوسائط غير موجودة والوسائط سيتم تشغيلها على المتحدثين المحليين.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/ar-SA/short_description.txt:
--------------------------------------------------------------------------------
1 | ذكرك بكتم صوت الوسائط
--------------------------------------------------------------------------------
/fastlane/metadata/android/ar-SA/title.txt:
--------------------------------------------------------------------------------
1 | كتم تذكير
--------------------------------------------------------------------------------
/fastlane/metadata/android/ca-ES/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/ca-ES/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/ca-ES/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/cs-CZ/full_description.txt:
--------------------------------------------------------------------------------
1 | Upozornění se zobrazí pokud je vyzvánění ztlumeno, ale média nejsou a média budou přehrána přes místní reproduktory.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/cs-CZ/short_description.txt:
--------------------------------------------------------------------------------
1 | Připomeňte si ztlumit média
--------------------------------------------------------------------------------
/fastlane/metadata/android/cs-CZ/title.txt:
--------------------------------------------------------------------------------
1 | Ztlumit připomenutí
--------------------------------------------------------------------------------
/fastlane/metadata/android/da-DK/full_description.txt:
--------------------------------------------------------------------------------
1 | En meddelelse vises, hvis ringetone er muted, men medier er ikke, og medier vil blive spillet over lokale højttalere.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/da-DK/short_description.txt:
--------------------------------------------------------------------------------
1 | Påmind dig om at slå medier fra
--------------------------------------------------------------------------------
/fastlane/metadata/android/da-DK/title.txt:
--------------------------------------------------------------------------------
1 | Lydløs påmindelse
--------------------------------------------------------------------------------
/fastlane/metadata/android/de-DE/full_description.txt:
--------------------------------------------------------------------------------
1 | Eine Benachrichtigung wird angezeigt, wenn der Klingelton stummgeschaltet ist und Medien über lokale Lautsprecher abgespielt werden würden.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/de-DE/short_description.txt:
--------------------------------------------------------------------------------
1 | Werde daran erinnert, Medien stummzuschalten
--------------------------------------------------------------------------------
/fastlane/metadata/android/de-DE/title.txt:
--------------------------------------------------------------------------------
1 | Mute Reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/el-GR/full_description.txt:
--------------------------------------------------------------------------------
1 | Εμφανίζεται μια ειδοποίηση αν ο ήχος κλήσης είναι σε σίγαση, αλλά τα πολυμέσα δεν είναι και τα πολυμέσα θα αναπαράγονται μέσω τοπικών ομιλητών.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/el-GR/short_description.txt:
--------------------------------------------------------------------------------
1 | Υπενθύμιση για σίγαση πολυμέσων
--------------------------------------------------------------------------------
/fastlane/metadata/android/el-GR/title.txt:
--------------------------------------------------------------------------------
1 | Σίγαση υπενθύμισης
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/1.txt:
--------------------------------------------------------------------------------
1 | Initial release
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/10.txt:
--------------------------------------------------------------------------------
1 | Update translations
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/11.txt:
--------------------------------------------------------------------------------
1 | Add a mute button to notification
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/12.txt:
--------------------------------------------------------------------------------
1 | Update translations
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/13.txt:
--------------------------------------------------------------------------------
1 | Request required permissions
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/14.txt:
--------------------------------------------------------------------------------
1 | Update translations
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/15.txt:
--------------------------------------------------------------------------------
1 | * Add launcher shortcut
2 | * Ignore USB output
3 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/16.txt:
--------------------------------------------------------------------------------
1 | Update translations
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/17.txt:
--------------------------------------------------------------------------------
1 | Show debug info in settings
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/18.txt:
--------------------------------------------------------------------------------
1 | Update dependencies
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/19.txt:
--------------------------------------------------------------------------------
1 | Update dependencies
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/2.txt:
--------------------------------------------------------------------------------
1 | * Lower minimum API
2 | * Add Translations
3 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/20.txt:
--------------------------------------------------------------------------------
1 | Update dependencies
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/22.txt:
--------------------------------------------------------------------------------
1 | Add auto mute feature
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/23.txt:
--------------------------------------------------------------------------------
1 | Fix build on GitHub
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/3.txt:
--------------------------------------------------------------------------------
1 | Fix crash on some Android versions
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/4.txt:
--------------------------------------------------------------------------------
1 | Update translations
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/5.txt:
--------------------------------------------------------------------------------
1 | Don't show notification when earphones are connected
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/6.txt:
--------------------------------------------------------------------------------
1 | Make notification persistent
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/7.txt:
--------------------------------------------------------------------------------
1 | * Add settings
2 | * Redesign app
3 | * Support Android 13
4 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/8.txt:
--------------------------------------------------------------------------------
1 | Request notification permission on Android 13
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/changelogs/9.txt:
--------------------------------------------------------------------------------
1 | Fix crash during start
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/images/featureGraphic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/fastlane/metadata/android/en-US/images/featureGraphic.png
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/images/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/fastlane/metadata/android/en-US/images/icon.png
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/en-US/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/es-ES/full_description.txt:
--------------------------------------------------------------------------------
1 | Se muestra una notificación si el tono de llamada está silenciado, pero los medios no y los medios se reproducirían sobre los altavoces locales.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/es-ES/short_description.txt:
--------------------------------------------------------------------------------
1 | Recordarte silenciar medios
--------------------------------------------------------------------------------
/fastlane/metadata/android/es-ES/title.txt:
--------------------------------------------------------------------------------
1 | Recordatorio de silencio
--------------------------------------------------------------------------------
/fastlane/metadata/android/fa-IR/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/fa-IR/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/fa-IR/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/fi-FI/full_description.txt:
--------------------------------------------------------------------------------
1 | Ilmoitus näytetään, jos soittoääni on mykistetty, mutta mediaa ei ja mediaa soitettaisiin paikallisissa puhujissa.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/fi-FI/short_description.txt:
--------------------------------------------------------------------------------
1 | Muistuta sinua mykistämään mediaa
--------------------------------------------------------------------------------
/fastlane/metadata/android/fi-FI/title.txt:
--------------------------------------------------------------------------------
1 | Mykistä muistutus
--------------------------------------------------------------------------------
/fastlane/metadata/android/fr-FR/full_description.txt:
--------------------------------------------------------------------------------
1 | Une notification s'affiche si la sonnerie du téléphone est mise en sourdine mais que les médias ne le sont pas, et que le média serait lu sur le haut-parleur du téléphone.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/fr-FR/short_description.txt:
--------------------------------------------------------------------------------
1 | Vous rappeler de mettre des médias en silencieux
--------------------------------------------------------------------------------
/fastlane/metadata/android/fr-FR/title.txt:
--------------------------------------------------------------------------------
1 | Rappel de silencieux
--------------------------------------------------------------------------------
/fastlane/metadata/android/he-IL/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/he-IL/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/he-IL/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/hu-HU/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/hu-HU/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/hu-HU/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/id-ID/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/id-ID/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/id-ID/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/it-IT/full_description.txt:
--------------------------------------------------------------------------------
1 | Viene mostrata una notifica se la suoneria è disattivata mentre l'audio è attivo e verrebbe riprodotto con gli altoparlanti locali.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/it-IT/short_description.txt:
--------------------------------------------------------------------------------
1 | Ti ricorda di disattivare l'audio
--------------------------------------------------------------------------------
/fastlane/metadata/android/it-IT/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/ja-JP/full_description.txt:
--------------------------------------------------------------------------------
1 | メディアがミュートされていない場合、ワンタッチでメディアをミュートできる通知を着信音の設定に構わず表示します。
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/ja-JP/short_description.txt:
--------------------------------------------------------------------------------
1 | ワンタッチでメディアをミュートできる通知を表示します。
--------------------------------------------------------------------------------
/fastlane/metadata/android/ja-JP/title.txt:
--------------------------------------------------------------------------------
1 | Mute Reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/ko-KR/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/ko-KR/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/ko-KR/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/nb-NO/full_description.txt:
--------------------------------------------------------------------------------
1 | En varsling vises hvis ringetonen er dempet, men mediet er ikke og vil bli avspilt over lokale høyttalere.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/nb-NO/short_description.txt:
--------------------------------------------------------------------------------
1 | Påminn deg om å dempe media
--------------------------------------------------------------------------------
/fastlane/metadata/android/nb-NO/title.txt:
--------------------------------------------------------------------------------
1 | Demp påminnelse
--------------------------------------------------------------------------------
/fastlane/metadata/android/nl-NL/full_description.txt:
--------------------------------------------------------------------------------
1 | Er wordt een melding getoond als beltoon is gedempt, maar media is niet en media zouden worden afgespeeld over lokale sprekers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/nl-NL/short_description.txt:
--------------------------------------------------------------------------------
1 | Herinner je eraan om media te dempen
--------------------------------------------------------------------------------
/fastlane/metadata/android/nl-NL/title.txt:
--------------------------------------------------------------------------------
1 | Notificatie dempen
--------------------------------------------------------------------------------
/fastlane/metadata/android/no-NO/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/no-NO/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/no-NO/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/pl-PL/full_description.txt:
--------------------------------------------------------------------------------
1 | Wyświetla powiadomienie, jeśli dzwonek jest wyciszony, ale multimedia nie są i mogą być odtwarzane przez lokalne głośniki.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/pl-PL/short_description.txt:
--------------------------------------------------------------------------------
1 | Przypomnienie o wyciszeniu multimediów
--------------------------------------------------------------------------------
/fastlane/metadata/android/pl-PL/title.txt:
--------------------------------------------------------------------------------
1 | Wycisz przypomnienie
--------------------------------------------------------------------------------
/fastlane/metadata/android/pt-BR/full_description.txt:
--------------------------------------------------------------------------------
1 | Uma notificação é exibida se o toque for silenciado, mas os meios de comunicação não e os meios de comunicação serão reproduzidos pelos alto-falantes locais.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/pt-BR/short_description.txt:
--------------------------------------------------------------------------------
1 | Lembrar você de silenciar a mídia
--------------------------------------------------------------------------------
/fastlane/metadata/android/pt-BR/title.txt:
--------------------------------------------------------------------------------
1 | Silenciar lembrete
--------------------------------------------------------------------------------
/fastlane/metadata/android/pt-PT/full_description.txt:
--------------------------------------------------------------------------------
1 | Uma notificação é exibida se o toque for silenciado, mas os meios de comunicação não e os meios de comunicação serão reproduzidos pelos alto-falantes locais.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/pt-PT/short_description.txt:
--------------------------------------------------------------------------------
1 | Lembrar você de silenciar a mídia
--------------------------------------------------------------------------------
/fastlane/metadata/android/pt-PT/title.txt:
--------------------------------------------------------------------------------
1 | Silenciar lembrete
--------------------------------------------------------------------------------
/fastlane/metadata/android/ro-RO/full_description.txt:
--------------------------------------------------------------------------------
1 | O notificare este afișată dacă tonul de apel este dezactivat, dar mass-media nu este și mass-media va fi redată peste difuzoarele locale.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/ro-RO/short_description.txt:
--------------------------------------------------------------------------------
1 | Amintește-ți să dezactivezi media
--------------------------------------------------------------------------------
/fastlane/metadata/android/ro-RO/title.txt:
--------------------------------------------------------------------------------
1 | Memento mut mut
--------------------------------------------------------------------------------
/fastlane/metadata/android/ru-RU/full_description.txt:
--------------------------------------------------------------------------------
1 | Уведомление отображается, если звук выключен, но медиа не и медиа будут воспроизводиться на локальных динамиках.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/ru-RU/short_description.txt:
--------------------------------------------------------------------------------
1 | Напомнить вам о отключении мультимедиа
--------------------------------------------------------------------------------
/fastlane/metadata/android/ru-RU/title.txt:
--------------------------------------------------------------------------------
1 | Отключить напоминание
--------------------------------------------------------------------------------
/fastlane/metadata/android/sr-SP/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/sr-SP/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/sr-SP/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/sv-SE/full_description.txt:
--------------------------------------------------------------------------------
1 | En avisering visas om ringsignalen är dämpad, men media är inte och media skulle spelas över lokala talare.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/sv-SE/short_description.txt:
--------------------------------------------------------------------------------
1 | Påminn dig om att tysta media
--------------------------------------------------------------------------------
/fastlane/metadata/android/sv-SE/title.txt:
--------------------------------------------------------------------------------
1 | Tysta påminnelse
--------------------------------------------------------------------------------
/fastlane/metadata/android/tr-TR/full_description.txt:
--------------------------------------------------------------------------------
1 | Zil sesi kapatılmış ancak medya kapatılmamışsa ve medya yerel hoparlörler üzerinden çalınıyorsa bir bildirim gösterilir.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/tr-TR/short_description.txt:
--------------------------------------------------------------------------------
1 | Medya sesini kapatmanızı hatırlatır
--------------------------------------------------------------------------------
/fastlane/metadata/android/tr-TR/title.txt:
--------------------------------------------------------------------------------
1 | Susturma hatırlatıcısı
--------------------------------------------------------------------------------
/fastlane/metadata/android/uk-UA/full_description.txt:
--------------------------------------------------------------------------------
1 | Показує сповіщення, коли режим без звуку ввімкнено для викликів, але не для мультимедіа, через що ваш динамік може несподівано почати гучне відтворення.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/uk-UA/short_description.txt:
--------------------------------------------------------------------------------
1 | Нагадує, що звук мультимедіа не вимкнено
--------------------------------------------------------------------------------
/fastlane/metadata/android/uk-UA/title.txt:
--------------------------------------------------------------------------------
1 | Цить
--------------------------------------------------------------------------------
/fastlane/metadata/android/vi-VN/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/vi-VN/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/vi-VN/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/yi-DE/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/yi-DE/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/yi-DE/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/fastlane/metadata/android/zh-CN/full_description.txt:
--------------------------------------------------------------------------------
1 | 当铃声音量设置为静音、媒体音量未静音时,
2 | 您将在媒体从本地扬声器播放时收到通知提醒。
3 | 您可以在设置中更改此行为。
4 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/zh-CN/short_description.txt:
--------------------------------------------------------------------------------
1 | 提醒您静音媒体音量
--------------------------------------------------------------------------------
/fastlane/metadata/android/zh-CN/title.txt:
--------------------------------------------------------------------------------
1 | 静音提示器
--------------------------------------------------------------------------------
/fastlane/metadata/android/zh-TW/full_description.txt:
--------------------------------------------------------------------------------
1 | A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.
2 |
--------------------------------------------------------------------------------
/fastlane/metadata/android/zh-TW/short_description.txt:
--------------------------------------------------------------------------------
1 | Remind you to mute media
--------------------------------------------------------------------------------
/fastlane/metadata/android/zh-TW/title.txt:
--------------------------------------------------------------------------------
1 | Mute reminder
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app"s APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Kotlin code style for this project: "official" or "obsolete":
19 | kotlin.code.style=official
20 | # Enables namespacing of each library's R class so that its R class includes only the
21 | # resources declared in the library itself and none from the library's dependencies,
22 | # thereby reducing the size of the R class for that library
23 | android.nonTransitiveRClass=true
24 | android.nonFinalResIds=false
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mueller-ma/MuteReminder/f676cc53b46ced49e2e91616032218780a614304/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4 | networkTimeout=10000
5 | validateDistributionUrl=true
6 | zipStoreBase=GRADLE_USER_HOME
7 | zipStorePath=wrapper/dists
8 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright © 2015-2021 the original authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | #
21 | # Gradle start up script for POSIX generated by Gradle.
22 | #
23 | # Important for running:
24 | #
25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26 | # noncompliant, but you have some other compliant shell such as ksh or
27 | # bash, then to run this script, type that shell name before the whole
28 | # command line, like:
29 | #
30 | # ksh Gradle
31 | #
32 | # Busybox and similar reduced shells will NOT work, because this script
33 | # requires all of these POSIX shell features:
34 | # * functions;
35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37 | # * compound commands having a testable exit status, especially «case»;
38 | # * various built-in commands including «command», «set», and «ulimit».
39 | #
40 | # Important for patching:
41 | #
42 | # (2) This script targets any POSIX shell, so it avoids extensions provided
43 | # by Bash, Ksh, etc; in particular arrays are avoided.
44 | #
45 | # The "traditional" practice of packing multiple parameters into a
46 | # space-separated string is a well documented source of bugs and security
47 | # problems, so this is (mostly) avoided, by progressively accumulating
48 | # options in "$@", and eventually passing that to Java.
49 | #
50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52 | # see the in-line comments for details.
53 | #
54 | # There are tweaks for specific operating systems such as AIX, CygWin,
55 | # Darwin, MinGW, and NonStop.
56 | #
57 | # (3) This script is generated from the Groovy template
58 | # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59 | # within the Gradle project.
60 | #
61 | # You can find Gradle at https://github.com/gradle/gradle/.
62 | #
63 | ##############################################################################
64 |
65 | # Attempt to set APP_HOME
66 |
67 | # Resolve links: $0 may be a link
68 | app_path=$0
69 |
70 | # Need this for daisy-chained symlinks.
71 | while
72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73 | [ -h "$app_path" ]
74 | do
75 | ls=$( ls -ld "$app_path" )
76 | link=${ls#*' -> '}
77 | case $link in #(
78 | /*) app_path=$link ;; #(
79 | *) app_path=$APP_HOME$link ;;
80 | esac
81 | done
82 |
83 | # This is normally unused
84 | # shellcheck disable=SC2034
85 | APP_BASE_NAME=${0##*/}
86 | # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87 | APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
88 |
89 | # Use the maximum available, or set MAX_FD != -1 to use that value.
90 | MAX_FD=maximum
91 |
92 | warn () {
93 | echo "$*"
94 | } >&2
95 |
96 | die () {
97 | echo
98 | echo "$*"
99 | echo
100 | exit 1
101 | } >&2
102 |
103 | # OS specific support (must be 'true' or 'false').
104 | cygwin=false
105 | msys=false
106 | darwin=false
107 | nonstop=false
108 | case "$( uname )" in #(
109 | CYGWIN* ) cygwin=true ;; #(
110 | Darwin* ) darwin=true ;; #(
111 | MSYS* | MINGW* ) msys=true ;; #(
112 | NONSTOP* ) nonstop=true ;;
113 | esac
114 |
115 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
116 |
117 |
118 | # Determine the Java command to use to start the JVM.
119 | if [ -n "$JAVA_HOME" ] ; then
120 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
121 | # IBM's JDK on AIX uses strange locations for the executables
122 | JAVACMD=$JAVA_HOME/jre/sh/java
123 | else
124 | JAVACMD=$JAVA_HOME/bin/java
125 | fi
126 | if [ ! -x "$JAVACMD" ] ; then
127 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
128 |
129 | Please set the JAVA_HOME variable in your environment to match the
130 | location of your Java installation."
131 | fi
132 | else
133 | JAVACMD=java
134 | if ! command -v java >/dev/null 2>&1
135 | then
136 | die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137 |
138 | Please set the JAVA_HOME variable in your environment to match the
139 | location of your Java installation."
140 | fi
141 | fi
142 |
143 | # Increase the maximum file descriptors if we can.
144 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145 | case $MAX_FD in #(
146 | max*)
147 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148 | # shellcheck disable=SC2039,SC3045
149 | MAX_FD=$( ulimit -H -n ) ||
150 | warn "Could not query maximum file descriptor limit"
151 | esac
152 | case $MAX_FD in #(
153 | '' | soft) :;; #(
154 | *)
155 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156 | # shellcheck disable=SC2039,SC3045
157 | ulimit -n "$MAX_FD" ||
158 | warn "Could not set maximum file descriptor limit to $MAX_FD"
159 | esac
160 | fi
161 |
162 | # Collect all arguments for the java command, stacking in reverse order:
163 | # * args from the command line
164 | # * the main class name
165 | # * -classpath
166 | # * -D...appname settings
167 | # * --module-path (only if needed)
168 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
169 |
170 | # For Cygwin or MSYS, switch paths to Windows format before running java
171 | if "$cygwin" || "$msys" ; then
172 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
173 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
174 |
175 | JAVACMD=$( cygpath --unix "$JAVACMD" )
176 |
177 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
178 | for arg do
179 | if
180 | case $arg in #(
181 | -*) false ;; # don't mess with options #(
182 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
183 | [ -e "$t" ] ;; #(
184 | *) false ;;
185 | esac
186 | then
187 | arg=$( cygpath --path --ignore --mixed "$arg" )
188 | fi
189 | # Roll the args list around exactly as many times as the number of
190 | # args, so each arg winds up back in the position where it started, but
191 | # possibly modified.
192 | #
193 | # NB: a `for` loop captures its iteration list before it begins, so
194 | # changing the positional parameters here affects neither the number of
195 | # iterations, nor the values presented in `arg`.
196 | shift # remove old arg
197 | set -- "$@" "$arg" # push replacement arg
198 | done
199 | fi
200 |
201 |
202 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204 |
205 | # Collect all arguments for the java command:
206 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207 | # and any embedded shellness will be escaped.
208 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209 | # treated as '${Hostname}' itself on the command line.
210 |
211 | set -- \
212 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
213 | -classpath "$CLASSPATH" \
214 | org.gradle.wrapper.GradleWrapperMain \
215 | "$@"
216 |
217 | # Stop when "xargs" is not available.
218 | if ! command -v xargs >/dev/null 2>&1
219 | then
220 | die "xargs is not available"
221 | fi
222 |
223 | # Use "xargs" to parse quoted args.
224 | #
225 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
226 | #
227 | # In Bash we could simply go:
228 | #
229 | # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
230 | # set -- "${ARGS[@]}" "$@"
231 | #
232 | # but POSIX shell has neither arrays nor command substitution, so instead we
233 | # post-process each arg (as a line of input to sed) to backslash-escape any
234 | # character that might be a shell metacharacter, then use eval to reverse
235 | # that process (while maintaining the separation between arguments), and wrap
236 | # the whole thing up as a single "set" statement.
237 | #
238 | # This will of course break if any of these variables contains a newline or
239 | # an unmatched quote.
240 | #
241 |
242 | eval "set -- $(
243 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
244 | xargs -n1 |
245 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
246 | tr '\n' ' '
247 | )" '"$@"'
248 |
249 | exec "$JAVACMD" "$@"
250 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%"=="" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%"=="" set DIRNAME=.
29 | @rem This is normally unused
30 | set APP_BASE_NAME=%~n0
31 | set APP_HOME=%DIRNAME%
32 |
33 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35 |
36 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38 |
39 | @rem Find java.exe
40 | if defined JAVA_HOME goto findJavaFromJavaHome
41 |
42 | set JAVA_EXE=java.exe
43 | %JAVA_EXE% -version >NUL 2>&1
44 | if %ERRORLEVEL% equ 0 goto execute
45 |
46 | echo. 1>&2
47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48 | echo. 1>&2
49 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50 | echo location of your Java installation. 1>&2
51 |
52 | goto fail
53 |
54 | :findJavaFromJavaHome
55 | set JAVA_HOME=%JAVA_HOME:"=%
56 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57 |
58 | if exist "%JAVA_EXE%" goto execute
59 |
60 | echo. 1>&2
61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62 | echo. 1>&2
63 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64 | echo location of your Java installation. 1>&2
65 |
66 | goto fail
67 |
68 | :execute
69 | @rem Setup the command line
70 |
71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72 |
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if %ERRORLEVEL% equ 0 goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | set EXIT_CODE=%ERRORLEVEL%
85 | if %EXIT_CODE% equ 0 set EXIT_CODE=1
86 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87 | exit /b %EXIT_CODE%
88 |
89 | :mainEnd
90 | if "%OS%"=="Windows_NT" endlocal
91 |
92 | :omega
93 |
--------------------------------------------------------------------------------
/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3 | "extends": [
4 | "config:recommended",
5 | ":dependencyDashboardApproval"
6 | ],
7 | "configMigration": true,
8 | "minimumReleaseAge": "7 days",
9 | "addLabels": [
10 | "renovate"
11 | ],
12 | "dependencyDashboardLabels": [
13 | "renovate"
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name = "Mute Reminder"
--------------------------------------------------------------------------------