[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/dev_gradle] using compat builder for notifications



commit 9de4f54e6be978580bdc175d2c7fd599056a4760
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date:   Wed Oct 12 16:58:56 2016 -0400

    using compat builder for notifications
---
 .../src/main/java/org/torproject/android/service/TorService.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/orbotservice/src/main/java/org/torproject/android/service/TorService.java b/orbotservice/src/main/java/org/torproject/android/service/TorService.java
index fc06e2e..dbc6f81 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/TorService.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/TorService.java
@@ -28,6 +28,7 @@ import android.net.NetworkInfo;
 import android.os.Build;
 import android.os.IBinder;
 import android.os.RemoteException;
+import android.support.v4.app.NotificationCompat;
 import android.support.v4.content.LocalBroadcastManager;
 import android.text.TextUtils;
 import android.util.Log;
@@ -102,7 +103,7 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
     private int mNetworkType = -1;
 
     private NotificationManager mNotificationManager = null;
-    private Notification.Builder mNotifyBuilder;
+    private NotificationCompat.Builder mNotifyBuilder;
     private Notification mNotification;
     private boolean mNotificationShowing = false;
 
@@ -203,7 +204,7 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
                 
             if (mNotifyBuilder == null)
             {
-                mNotifyBuilder = new Notification.Builder(this)
+                mNotifyBuilder = new NotificationCompat.Builder(this)
                     .setContentTitle(getString(R.string.app_name))
                     .setSmallIcon(R.drawable.ic_stat_tor);
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits