| OLD | NEW |
| 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-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
| 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 package org.adblockplus.android; | 18 package org.adblockplus.android; |
| 19 | 19 |
| 20 import org.adblockplus.libadblockplus.UpdateCheckDoneCallback; | 20 import org.adblockplus.libadblockplus.UpdateCheckDoneCallback; |
| 21 import org.apache.commons.lang.StringUtils; | 21 import org.adblockplus.android.StringUtils; |
| 22 | 22 |
| 23 import android.content.Context; | 23 import android.content.Context; |
| 24 import android.util.Log; | 24 import android.util.Log; |
| 25 | 25 |
| 26 public class AndroidUpdateCheckDoneCallback extends UpdateCheckDoneCallback | 26 public class AndroidUpdateCheckDoneCallback extends UpdateCheckDoneCallback |
| 27 { | 27 { |
| 28 private static final String TAG = Utils.getTag(AndroidUpdateCheckDoneCallback.
class); | 28 private static final String TAG = Utils.getTag(AndroidUpdateCheckDoneCallback.
class); |
| 29 | 29 |
| 30 private final Context context; | 30 private final Context context; |
| 31 | 31 |
| 32 public AndroidUpdateCheckDoneCallback(final Context context) | 32 public AndroidUpdateCheckDoneCallback(final Context context) |
| 33 { | 33 { |
| 34 this.context = context; | 34 this.context = context; |
| 35 } | 35 } |
| 36 | 36 |
| 37 @Override | 37 @Override |
| 38 public void updateCheckDoneCallback(final String error) | 38 public void updateCheckDoneCallback(final String error) |
| 39 { | 39 { |
| 40 if (StringUtils.isEmpty(error)) | 40 if (StringUtils.isEmpty(error)) |
| 41 return; | 41 return; |
| 42 Log.e(TAG, "Update check failed: " + error); | 42 Log.e(TAG, "Update check failed: " + error); |
| 43 AppUtils.showUpdateNotification(this.context, null, error); | 43 AppUtils.showUpdateNotification(this.context, null, error); |
| 44 } | 44 } |
| 45 } | 45 } |
| OLD | NEW |