Skip to content

Commit

Permalink
- Added notification logic to mix panel push
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Torres committed Feb 23, 2016
1 parent 0ea6d9a commit 8d236ff
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import com.bentonow.bentonow.Utils.DebugUtils;
import com.bentonow.bentonow.Utils.NotificationUtils;
import com.bentonow.bentonow.Utils.SharedPreferencesUtil;


public class GcmBroadcastReceiver extends WakefulBroadcastReceiver {
Expand All @@ -24,7 +25,8 @@ public void onReceive(Context context, final Intent intent) {
new Thread(new Runnable() {
public void run() {
try {
NotificationUtils.displayNotification(intent.getExtras().getString("mp_message"));
if (SharedPreferencesUtil.getBooleanPreference(SharedPreferencesUtil.SHOW_NOTIFICATIONS))
NotificationUtils.displayNotification(intent.getExtras().getString("mp_message"));
} catch (Exception e) {
DebugUtils.logError("GcmBroadcastReceiver", e);
}
Expand Down

0 comments on commit 8d236ff

Please sign in to comment.