Files
palemoon27/mobile/android/base/GoannaUpdateReceiver.java
T
2018-07-24 23:11:06 +08:00

26 lines
961 B
Java

/* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.goanna;
import org.mozilla.goanna.updater.UpdateServiceHelper;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class GoannaUpdateReceiver extends BroadcastReceiver
{
@Override
public void onReceive(Context context, Intent intent) {
if (UpdateServiceHelper.ACTION_CHECK_UPDATE_RESULT.equals(intent.getAction())) {
String result = intent.getStringExtra("result");
if (GoannaAppShell.getGoannaInterface() != null && result != null) {
GoannaAppShell.getGoannaInterface().notifyCheckUpdateResult(result);
}
}
}
}