Skip to content

Commit

Permalink
Follow upstream (#1083)
Browse files Browse the repository at this point in the history
* Update build-syncthing.py

* Update NotificationHandler.java

ref https://github.com/syncthing/syncthing-android/pull/2040/files
  • Loading branch information
Catfriend1 authored Feb 8, 2024
1 parent d11e35d commit 533f479
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public NotificationHandler(Context context) {
mInfoChannel = new NotificationChannel(
CHANNEL_INFO, mContext.getString(R.string.notifications_other_channel),
NotificationManager.IMPORTANCE_LOW);
mPersistentChannel.enableVibration(false);
mPersistentChannel.setSound(null, null);
mPersistentChannel.setShowBadge(true);
mInfoChannel.enableVibration(false);
mInfoChannel.setSound(null, null);
mInfoChannel.setShowBadge(true);
mNotificationManager.createNotificationChannel(mInfoChannel);
} else {
mPersistentChannel = null;
Expand Down
6 changes: 6 additions & 0 deletions syncthing/build-syncthing.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,12 @@ def install_ndk():
})

subprocess.check_call([go_bin, 'mod', 'download'], cwd=syncthing_dir)
subprocess.check_call(
[go_bin, 'version'],
env=environ, cwd=syncthing_dir)
subprocess.check_call(
[go_bin, 'run', 'build.go', 'version'],
env=environ, cwd=syncthing_dir)
subprocess.check_call([
go_bin, 'run', 'build.go', '-goos', 'android',
'-goarch', target['goarch'],
Expand Down

0 comments on commit 533f479

Please sign in to comment.