@@ -196,7 +196,7 @@ private void sendNotification(PayloadPOJO payload, Boolean isSponsored) {
196
196
notificationBuilder .addAction (iconResourceId , ab .getL (), actionButtonsPendingIntent );
197
197
}
198
198
} catch (JSONException e ) {
199
- e .printStackTrace ();
199
+ // e.printStackTrace();
200
200
}
201
201
}
202
202
@@ -219,7 +219,7 @@ private void sendNotification(PayloadPOJO payload, Boolean isSponsored) {
219
219
} catch (Exception e ) {
220
220
notificationBuilder .setSmallIcon (R .drawable .ic_stat_notification_default );
221
221
notificationBuilder .setSmallIcon (R .drawable .ic_stat_notification_default );
222
- e .printStackTrace ();
222
+ // e.printStackTrace();
223
223
}
224
224
} else {
225
225
try {
@@ -231,7 +231,7 @@ private void sendNotification(PayloadPOJO payload, Boolean isSponsored) {
231
231
} catch (Exception e ) {
232
232
notificationBuilder .setSmallIcon (R .drawable .ic_stat_notification_default );
233
233
notificationBuilder .setSmallIcon (R .drawable .ic_stat_notification_default );
234
- e .printStackTrace ();
234
+ // e.printStackTrace();
235
235
}
236
236
}
237
237
@@ -265,14 +265,14 @@ private void sendNotification(PayloadPOJO payload, Boolean isSponsored) {
265
265
}
266
266
267
267
} catch (Exception e ) {
268
- e .printStackTrace ();
268
+ // e.printStackTrace();
269
269
}
270
270
271
271
// Method to Create channel
272
272
try {
273
273
setChannelInfo (ci , notificationManager , notificationBuilder , payload , false );
274
274
} catch (Exception e ) {
275
- e .printStackTrace ();
275
+ // e.printStackTrace();
276
276
}
277
277
278
278
}
@@ -308,7 +308,7 @@ public void onLoadCleared(@Nullable Drawable placeholder) {
308
308
});
309
309
310
310
} catch (Exception e ) {
311
- Log .e (TAG , "Payload Image Exception" );
311
+ // Log.d (TAG, "Payload Image Exception");
312
312
}
313
313
}
314
314
// Setting notification Large Icon.
@@ -330,7 +330,7 @@ public void onLoadCleared(@Nullable Drawable placeholder) {
330
330
});
331
331
332
332
} catch (Exception e ) {
333
- Log .e (TAG , "Payload Large Image Exception" );
333
+ // Log.d (TAG, "Payload Large Image Exception");
334
334
}
335
335
}
336
336
@@ -354,7 +354,7 @@ public void onLoadCleared(@Nullable Drawable placeholder) {
354
354
}
355
355
});
356
356
} catch (Exception e ) {
357
- e .printStackTrace ();
357
+ // e.printStackTrace();
358
358
}
359
359
}
360
360
@@ -476,7 +476,7 @@ private void setChannelInfo(String channelId, NotificationManager notificationMa
476
476
notificationBuilder .setSound (soundUri );
477
477
}
478
478
} catch (Exception e ) {
479
- e .printStackTrace ();
479
+ // e.printStackTrace();
480
480
}
481
481
482
482
// Setting notification vibration for Devices older than Android O.
@@ -496,7 +496,7 @@ private void setChannelInfo(String channelId, NotificationManager notificationMa
496
496
notificationBuilder .setVibrate (array );
497
497
}
498
498
} catch (Exception e ) {
499
- e .printStackTrace ();
499
+ // e.printStackTrace();
500
500
}
501
501
}
502
502
// Publish Notification
@@ -529,7 +529,7 @@ public void onResponse(@NonNull Call<FetchResponse> call, @NonNull Response<Fetc
529
529
}
530
530
sendNotification (payloadPOJO , true );
531
531
} else if (response .code () != 404 ) {
532
- Log .e (TAG , "API Failure" );
532
+ // Log.d (TAG, "API Failure");
533
533
if (!isRetry ) {
534
534
new Timer ().schedule (new TimerTask () {
535
535
@ Override
@@ -551,7 +551,7 @@ public void run() {
551
551
552
552
@ Override
553
553
public void onFailure (@ NonNull Call <FetchResponse > call , @ NonNull Throwable t ) {
554
- Log .e (TAG , "API Failure" );
554
+ // Log.d (TAG, "API Failure");
555
555
if (!isRetry ) {
556
556
new Timer ().schedule (new TimerTask () {
557
557
@ Override
@@ -626,7 +626,7 @@ private NotificationChannel setChannelVibration(NotificationChannel channel, Str
626
626
channel .setVibrationPattern (array );
627
627
}
628
628
} catch (Exception e ) {
629
- e .printStackTrace ();
629
+ // e.printStackTrace();
630
630
}
631
631
return channel ;
632
632
}
@@ -651,7 +651,7 @@ private NotificationChannel setChannelLedColor(NotificationChannel channel, Stri
651
651
channel .setLightColor (Color .parseColor ("#" + colorCode ));
652
652
}
653
653
} catch (Exception e ) {
654
- e .printStackTrace ();
654
+ // e.printStackTrace();
655
655
}
656
656
return channel ;
657
657
}
@@ -678,7 +678,7 @@ public void notificationView(String tag, boolean isRetry) {
678
678
public void onResponse (@ NonNull Call <GenricResponse > call , @ NonNull Response <GenricResponse > response ) {
679
679
if (response .isSuccessful ()) {
680
680
GenricResponse genricResponse = response .body ();
681
- Log .e (TAG , "API Success" );
681
+ // Log.d (TAG, "API Success");
682
682
} else {
683
683
if (!isRetry ) {
684
684
new Timer ().schedule (new TimerTask () {
@@ -696,7 +696,7 @@ public void run() {
696
696
errorLogRequest .setName (PEConstants .VIEW_COUNT_TRACKING_FAILED );
697
697
errorLogRequest .setData (data );
698
698
PEUtilities .addLogs (getApplicationContext (), TAG , errorLogRequest );
699
- Log .e (TAG , "API Failure" );
699
+ // Log.d (TAG, "API Failure");
700
700
}
701
701
}
702
702
}
@@ -718,7 +718,7 @@ public void run() {
718
718
errorLogRequest .setName (PEConstants .VIEW_COUNT_TRACKING_FAILED );
719
719
errorLogRequest .setData (data );
720
720
PEUtilities .addLogs (getApplicationContext (), TAG , errorLogRequest );
721
- Log .e (TAG , "API Failure" );
721
+ // Log.d (TAG, "API Failure");
722
722
}
723
723
}
724
724
});
@@ -752,17 +752,17 @@ public void onResponse(@NonNull Call<ChannelResponse> call, @NonNull Response<Ch
752
752
channelResponse .getData ().getOptions ().getBadges (), channelResponse .getData ().getOptions ().getLockScreen ());
753
753
daoInterface .insert (channelEntity );
754
754
setChannelInfo (channelId , notificationManager , notificationBuilder , payload , false );
755
- Log .d (TAG , "API Success" );
755
+ // Log.d(TAG, "API Success");
756
756
} else {
757
757
setChannelInfo (channelId , notificationManager , notificationBuilder , payload , true );
758
- Log .e (TAG , "API Failure" );
758
+ // Log.d (TAG, "API Failure");
759
759
}
760
760
}
761
761
762
762
@ Override
763
763
public void onFailure (@ NonNull Call <ChannelResponse > call , @ NonNull Throwable t ) {
764
764
setChannelInfo (channelId , notificationManager , notificationBuilder , payload , true );
765
- Log .e (TAG , "API Failure" );
765
+ // Log.d (TAG, "API Failure");
766
766
}
767
767
});
768
768
}
@@ -782,15 +782,15 @@ private void upgradeToken(String token) {
782
782
@ Override
783
783
public void onResponse (@ NonNull Call <ResponseBody > call , @ NonNull Response <ResponseBody > response ) {
784
784
if (response .code () < 400 ) {
785
- Log .d (TAG , "Error Logged" );
785
+ // Log.d(TAG, "Error Logged");
786
786
} else {
787
- Log .e (TAG , "API Failure" );
787
+ // Log.d (TAG, "API Failure");
788
788
}
789
789
}
790
790
791
791
@ Override
792
792
public void onFailure (@ NonNull Call <ResponseBody > call , @ NonNull Throwable t ) {
793
- Log .e (TAG , "API Failure" );
793
+ // Log.d (TAG, "API Failure");
794
794
}
795
795
});
796
796
}
@@ -810,13 +810,13 @@ public void onResponse(@NonNull Call<GenricResponse> call, @NonNull Response<Gen
810
810
GenricResponse genricResponse = response .body ();
811
811
prefs .setIsNotificationDisabled (updateSubscriberStatusRequest .getIsUnSubscribed ());
812
812
} else {
813
- Log .e (TAG , "API Failure" );
813
+ // Log.d (TAG, "API Failure");
814
814
}
815
815
}
816
816
817
817
@ Override
818
818
public void onFailure (@ NonNull Call <GenricResponse > call , @ NonNull Throwable t ) {
819
- Log .e (TAG , "API Failure" );
819
+ // Log.d (TAG, "API Failure");
820
820
}
821
821
});
822
822
}
0 commit comments