Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

新しい通知方法の設定画面を追加し、Android 7.x以下で通知音をユーザーが指定できるようにする #313

Merged
merged 2 commits into from
Aug 20, 2022

Conversation

shibafu528
Copy link
Owner

@shibafu528 shibafu528 commented Aug 20, 2022

通知チャンネルが導入される前のAndroidとポップアップ通知を使用する際、今までは通知音をユーザーが設定することはできませんでした。
このPRでは、通知設定画面を従来のダイアログから、通知音の設定をサポートした新しい画面に置き換えます。

ステータス通知使用時 ポップアップ通知使用時
image image
※ Android 7.1以下の場合、音とバイブレーションの項目は右図と同様になる。

また、ライセンス上の問題があるため、今までバンドルしていた通知音は削除します。

@shibafu528
Copy link
Owner Author

#12 (comment) にあるように /sdcard/Android/data/shibafu.yukari/ に特定の名前で音声ファイルを置くと再生する音声を上書きできる機能があるが、これは互換性のために引き続き最優先で機能する。

優先順位をまとめると、

  1. /sdcard/Android/data/shibafu.yukari/ に置かれた音声ファイル
  2. About画面で隠しコマンドを使った時に再生されるようになる通知音
  3. 今回追加した画面で指定した通知音
  4. Androidのシステム設定で指定した通知音

@shibafu528 shibafu528 merged commit c6b615d into master Aug 20, 2022
@shibafu528 shibafu528 deleted the feature/new-notification-pref branch August 20, 2022 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

通知音を廃止したい 通知サウンドの自由指定
1 participant