Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6ac8b9a authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Removed API changes from CL 54712.

onLoadClass(Class ) was replaced by onLoadClass(Class<?> ) in CL 54712.
This changes the API and may introduce errors in users' implementations.

Change reverted.

Change-Id: Ie578a444168423959b44857f22e13f004e108965
parent af51e1de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ public class AppWidgetHostView extends FrameLayout {
    // When we're inflating the initialLayout for a AppWidget, we only allow
    // views that are allowed in RemoteViews.
    static final LayoutInflater.Filter sInflaterFilter = new LayoutInflater.Filter() {
        public boolean onLoadClass(Class<?> clazz) {
        public boolean onLoadClass(Class clazz) {
            return clazz.isAnnotationPresent(RemoteViews.RemoteView.class);
        }
    };
+2 −1
Original line number Diff line number Diff line
@@ -97,7 +97,8 @@ public abstract class LayoutInflater {
         * 
         * @return True if this class is allowed to be inflated, or false otherwise
         */
        boolean onLoadClass(Class<?> clazz);
        @SuppressWarnings("unchecked")
        boolean onLoadClass(Class clazz);
    }
    
    public interface Factory {
+1 −1
Original line number Diff line number Diff line
@@ -990,7 +990,7 @@ public class RemoteViews implements Parcelable, Filter {
     * 
     * @see android.view.LayoutInflater.Filter#onLoadClass(java.lang.Class)
     */
    public boolean onLoadClass(Class<?> clazz) {
    public boolean onLoadClass(Class clazz) {
        return clazz.isAnnotationPresent(RemoteView.class);
    }