mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-02 18:50:21 +01:00
40 lines
1.3 KiB
Java
40 lines
1.3 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;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes.dex */
|
|
public final class AppLocalesMetadataHolderService extends Service {
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RequiresApi(24)
|
|
public static class Api24Impl {
|
|
private Api24Impl() {
|
|
}
|
|
|
|
@DoNotInline
|
|
public static int getDisabledComponentFlag() {
|
|
return 512;
|
|
}
|
|
}
|
|
|
|
@NonNull
|
|
public static ServiceInfo getServiceInfo(@NonNull Context context) throws PackageManager.NameNotFoundException {
|
|
return context.getPackageManager().getServiceInfo(new ComponentName(context, (Class<?>) AppLocalesMetadataHolderService.class), Api24Impl.getDisabledComponentFlag() | 128);
|
|
}
|
|
|
|
@Override // android.app.Service
|
|
@NonNull
|
|
public IBinder onBind(@NonNull Intent intent) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
}
|