зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1170886 - Replace use of NewApi suppression with @TargetApi. r?nalexander
TargetApi is specific, and preferred. --HG-- extra : commitid : ACndrW0PUOa extra : source : 00d5a9768b9d80956912bfc3499924c376119129
This commit is contained in:
Родитель
d79ffe0d98
Коммит
9b602eedc2
|
@ -11,7 +11,7 @@ import org.mozilla.gecko.R;
|
|||
import org.mozilla.gecko.Telemetry;
|
||||
import org.mozilla.gecko.TelemetryContract;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.PendingIntent;
|
||||
import android.appwidget.AppWidgetManager;
|
||||
import android.appwidget.AppWidgetProvider;
|
||||
|
@ -32,7 +32,7 @@ public class SearchWidget extends AppWidgetProvider {
|
|||
final public static String ACTION_LAUNCH_SEARCH = "org.mozilla.widget.LAUNCH_SEARCH";
|
||||
final public static String ACTION_LAUNCH_NEW_TAB = "org.mozilla.widget.LAUNCH_NEW_TAB";
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
@TargetApi(16)
|
||||
@Override
|
||||
public void onUpdate(final Context context, final AppWidgetManager manager, final int[] ids) {
|
||||
for (int id : ids) {
|
||||
|
@ -48,7 +48,7 @@ public class SearchWidget extends AppWidgetProvider {
|
|||
super.onUpdate(context, manager, ids);
|
||||
}
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
@TargetApi(16)
|
||||
@Override
|
||||
public void onAppWidgetOptionsChanged(final Context context,
|
||||
final AppWidgetManager manager,
|
||||
|
|
Загрузка…
Ссылка в новой задаче