186ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren/* 286ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * Copyright (C) 2013 The Android Open Source Project 386ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * 486ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * Licensed under the Apache License, Version 2.0 (the "License"); 586ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * you may not use this file except in compliance with the License. 686ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * You may obtain a copy of the License at 786ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * 886ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * http://www.apache.org/licenses/LICENSE-2.0 986ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * 1086ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * Unless required by applicable law or agreed to in writing, software 1186ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * distributed under the License is distributed on an "AS IS" BASIS, 1286ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1386ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * See the License for the specific language governing permissions and 1486ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren * limitations under the License. 1586ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren */ 1686ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren 1786ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wrenpackage android.support.v4.app; 1886ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren 1986ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wrenimport android.app.Notification; 2086ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wrenimport android.app.PendingIntent; 2186ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wrenimport android.content.Context; 2286ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren 2386ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wrenclass NotificationCompatGingerbread { 2486ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren public static Notification add(Notification notification, Context context, 2586ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren CharSequence contentTitle, CharSequence contentText, PendingIntent contentIntent, 2686ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren PendingIntent fullScreenIntent) { 2786ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); 2886ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren notification.fullScreenIntent = fullScreenIntent; 2986ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren return notification; 3086ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren } 3186ec05e4e4c04e835f5710f59686b99b03cb2e5dChris Wren} 32