- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
package androidx.appcompat.app;
|
|
|
|
import android.app.Service;
|
|
import android.content.ComponentName;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.pm.PackageManager;
|
|
import android.content.pm.ServiceInfo;
|
|
import android.os.IBinder;
|
|
import androidx.annotation.DoNotInline;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RequiresApi;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class AppLocalesMetadataHolderService extends Service {
|
|
@Override // android.app.Service
|
|
@NonNull
|
|
public IBinder onBind(@NonNull Intent intent) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@NonNull
|
|
public static ServiceInfo getServiceInfo(@NonNull Context context) throws PackageManager.NameNotFoundException {
|
|
return context.getPackageManager().getServiceInfo(new ComponentName(context, (Class<?>) AppLocalesMetadataHolderService.class), Api24Impl.getDisabledComponentFlag() | 128);
|
|
}
|
|
|
|
@RequiresApi(24)
|
|
public static class Api24Impl {
|
|
@DoNotInline
|
|
public static int getDisabledComponentFlag() {
|
|
return 512;
|
|
}
|
|
|
|
private Api24Impl() {
|
|
}
|
|
}
|
|
}
|