Home | History | Annotate | Download | only in expected
      1 /*
      2  * Copyright (C) 2017 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package bar;
     18 
     19 import android.arch.lifecycle.GenericLifecycleObserver;
     20 import android.arch.lifecycle.Lifecycle;
     21 import android.arch.lifecycle.LifecycleOwner;
     22 import foo.DifferentPackagesBase1_LifecycleAdapter;
     23 import java.lang.Override;
     24 import javax.annotation.Generated;
     25 
     26 @Generated("android.arch.lifecycle.LifecycleProcessor")
     27 public class DifferentPackagesDerived1_LifecycleAdapter implements GenericLifecycleObserver {
     28   final DifferentPackagesDerived1 mReceiver;
     29 
     30   DifferentPackagesDerived1_LifecycleAdapter(DifferentPackagesDerived1 receiver) {
     31     this.mReceiver = receiver;
     32   }
     33 
     34   @Override
     35   public void onStateChanged(LifecycleOwner owner, Lifecycle.Event event) {
     36     if (event == Lifecycle.Event.ON_STOP) {
     37       DifferentPackagesBase1_LifecycleAdapter.__synthetic_onStop(mReceiver,owner);
     38       mReceiver.onStop2(owner);
     39     }
     40   }
     41 }
     42