Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/android/ABPEngine.java

Issue 6002714978811904: Line endings, whitespace, imports and casts cleanup (Closed)
Patch Set: Created March 31, 2014, 1:52 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/org/adblockplus/ChunkedOutputStream.java ('k') | src/org/adblockplus/android/AdblockPlus.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/org/adblockplus/android/ABPEngine.java
diff --git a/src/org/adblockplus/android/ABPEngine.java b/src/org/adblockplus/android/ABPEngine.java
index 2dda6b047e01d462b62428c8d151fc339acbfea2..19928039acb9389296d36c4f7284e797a385ec67 100644
--- a/src/org/adblockplus/android/ABPEngine.java
+++ b/src/org/adblockplus/android/ABPEngine.java
@@ -60,7 +60,7 @@ public class ABPEngine
{
context.sendBroadcast(new Intent(AdblockPlus.BROADCAST_SUBSCRIPTION_STATUS).putExtra("url", url).putExtra("status", status).putExtra("time", time));
}
-
+
/**
* Called when update event occurred.
* @param url Update download address
@@ -71,11 +71,11 @@ public class ABPEngine
NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(NOTIFICATION_ID, notification);
}
-
+
private native void initialize(String basePath, String version, String sdkVersion, String locale, boolean developmentBuild);
public native void release();
-
+
public native boolean isFirstRun();
public native Subscription[] getListedSubscriptions();
@@ -89,7 +89,7 @@ public class ABPEngine
public native void refreshSubscription(String url);
public native void actualizeSubscriptionStatus(String url);
-
+
public native void setAcceptableAdsEnabled(boolean enabled);
public native String getDocumentationLink();
@@ -99,7 +99,7 @@ public class ABPEngine
public native String[] getSelectorsForDomain(String domain);
public native void checkUpdates();
-
+
private Notification getNotification(String url, String error)
{
final PendingIntent emptyIntent = PendingIntent.getActivity(context, 0, new Intent(), 0);
@@ -111,12 +111,12 @@ public class ABPEngine
builder.setAutoCancel(true);
builder.setOnlyAlertOnce(true);
builder.setContentIntent(emptyIntent);
-
+
if (url != null)
{
builder.setSmallIcon(R.drawable.ic_stat_download);
-
+
Intent intent = new Intent(context, UpdaterActivity.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setAction("download");
intent.putExtra("url", url);
« no previous file with comments | « src/org/adblockplus/ChunkedOutputStream.java ('k') | src/org/adblockplus/android/AdblockPlus.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld