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

Delta Between Two Patch Sets: src/org/adblockplus/android/AdblockPlus.java

Issue 5327480814567424: Issue 1108 - Support notifications (Closed)
Left Patch Set: Even more renaming, ignore INVALID/QUESTION Created Feb. 18, 2015, 3 p.m.
Right Patch Set: Only one Notification displayed now Created Feb. 18, 2015, 3:42 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/org/adblockplus/android/ABPEngine.java ('k') | src/org/adblockplus/android/CrashHandler.java » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 import android.net.Uri; 43 import android.net.Uri;
44 import android.os.Build; 44 import android.os.Build;
45 import android.preference.PreferenceManager; 45 import android.preference.PreferenceManager;
46 import android.provider.Settings; 46 import android.provider.Settings;
47 import android.util.Log; 47 import android.util.Log;
48 48
49 public class AdblockPlus extends Application 49 public class AdblockPlus extends Application
50 { 50 {
51 public static final int ONGOING_NOTIFICATION_ID = R.string.app_name; 51 public static final int ONGOING_NOTIFICATION_ID = R.string.app_name;
52 public static final int UPDATE_NOTIFICATION_ID = R.string.app_name + 1; 52 public static final int UPDATE_NOTIFICATION_ID = R.string.app_name + 1;
53 // Insert new NOTIFICATION_IDs in between here 53 public static final int SERVER_NOTIFICATION_ID = R.string.app_name + 2;
54 public static final int GROUPED_NOTIFICATION_ID = R.string.app_name + 32;
55 // Do not add NOTIFICATION_IDs here
56 54
57 private static final String TAG = Utils.getTag(AdblockPlus.class); 55 private static final String TAG = Utils.getTag(AdblockPlus.class);
58 56
59 private static final Pattern RE_JS = Pattern.compile("\\.js$", Pattern.CASE_IN SENSITIVE); 57 private static final Pattern RE_JS = Pattern.compile("\\.js$", Pattern.CASE_IN SENSITIVE);
60 private static final Pattern RE_CSS = Pattern.compile("\\.css$", Pattern.CASE_ INSENSITIVE); 58 private static final Pattern RE_CSS = Pattern.compile("\\.css$", Pattern.CASE_ INSENSITIVE);
61 private static final Pattern RE_IMAGE = Pattern.compile("\\.(?:gif|png|jpe?g|b mp|ico)$", Pattern.CASE_INSENSITIVE); 59 private static final Pattern RE_IMAGE = Pattern.compile("\\.(?:gif|png|jpe?g|b mp|ico)$", Pattern.CASE_INSENSITIVE);
62 private static final Pattern RE_FONT = Pattern.compile("\\.(?:ttf|woff)$", Pat tern.CASE_INSENSITIVE); 60 private static final Pattern RE_FONT = Pattern.compile("\\.(?:ttf|woff)$", Pat tern.CASE_INSENSITIVE);
63 private static final Pattern RE_HTML = Pattern.compile("\\.html?$", Pattern.CA SE_INSENSITIVE); 61 private static final Pattern RE_HTML = Pattern.compile("\\.html?$", Pattern.CA SE_INSENSITIVE);
64 62
65 /** 63 /**
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 } 451 }
454 catch (final IOException e) 452 catch (final IOException e)
455 { 453 {
456 Log.e(TAG, e.getMessage(), e); 454 Log.e(TAG, e.getMessage(), e);
457 } 455 }
458 456
459 // Set crash handler 457 // Set crash handler
460 Thread.setDefaultUncaughtExceptionHandler(new CrashHandler(this)); 458 Thread.setDefaultUncaughtExceptionHandler(new CrashHandler(this));
461 } 459 }
462 } 460 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld