Skip to content

Commit

Permalink
fix(pheno): disable notification bubble on aware activation
Browse files Browse the repository at this point in the history
  • Loading branch information
nuKs committed Dec 26, 2019
1 parent 751c185 commit eeee268
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions android/aware-core/src/main/java/com/aware/Aware.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,13 @@ public void onCreate() {
NotificationManager not_manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
NotificationChannel aware_channel = new NotificationChannel(AWARE_NOTIFICATION_ID, getResources().getString(R.string.app_name), NotificationManager.IMPORTANCE_DEFAULT);
aware_channel.setDescription(getResources().getString(R.string.aware_description));
aware_channel.enableLights(true);
aware_channel.setLightColor(Color.BLUE);
aware_channel.enableVibration(true);
// ** pnplab edit **
// disable vibration, lights and badges as this is stressful to
// some schizophrenic patients.
aware_channel.enableLights(false);
aware_channel.enableVibration(false);
aware_channel.setShowBadge(false);
// ** pnplab edit **
not_manager.createNotificationChannel(aware_channel);
}

Expand Down

0 comments on commit eeee268

Please sign in to comment.