Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
package dagger.hilt.android.flags;
|
||||
|
||||
import android.content.Context;
|
||||
import dagger.Module;
|
||||
import dagger.hilt.EntryPoint;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.EntryPointAccessors;
|
||||
import dagger.hilt.components.SingletonComponent;
|
||||
import dagger.hilt.internal.Preconditions;
|
||||
import dagger.multibindings.Multibinds;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.Set;
|
||||
import javax.inject.Qualifier;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class FragmentGetContextFix {
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD})
|
||||
@Qualifier
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface DisableFragmentGetContextFix {
|
||||
}
|
||||
|
||||
@EntryPoint
|
||||
@InstallIn({SingletonComponent.class})
|
||||
/* loaded from: classes3.dex */
|
||||
public interface FragmentGetContextFixEntryPoint {
|
||||
@DisableFragmentGetContextFix
|
||||
Set<Boolean> getDisableFragmentGetContextFix();
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({SingletonComponent.class})
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class FragmentGetContextFixModule {
|
||||
@DisableFragmentGetContextFix
|
||||
@Multibinds
|
||||
public abstract Set<Boolean> disableFragmentGetContextFix();
|
||||
}
|
||||
|
||||
private FragmentGetContextFix() {
|
||||
}
|
||||
|
||||
public static boolean isFragmentGetContextFixDisabled(Context context) {
|
||||
Set<Boolean> disableFragmentGetContextFix = ((FragmentGetContextFixEntryPoint) EntryPointAccessors.fromApplication(context, FragmentGetContextFixEntryPoint.class)).getDisableFragmentGetContextFix();
|
||||
Preconditions.checkState(disableFragmentGetContextFix.size() <= 1, "Cannot bind the flag @DisableFragmentGetContextFix more than once.", new Object[0]);
|
||||
if (disableFragmentGetContextFix.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
return disableFragmentGetContextFix.iterator().next().booleanValue();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package dagger.hilt.android.flags;
|
||||
|
||||
import dagger.Module;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.flags.FragmentGetContextFix;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.components.SingletonComponent;
|
||||
|
||||
@OriginatingElement(topLevelClass = FragmentGetContextFix.class)
|
||||
@Module(includes = {FragmentGetContextFix.FragmentGetContextFixModule.class})
|
||||
@InstallIn({SingletonComponent.class})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class HiltWrapper_FragmentGetContextFix_FragmentGetContextFixModule {
|
||||
}
|
||||
Reference in New Issue
Block a user