Skip to content

Commit 706bb4d

Browse files
committed
deprecation fix.
1 parent 21c7a51 commit 706bb4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mobile/src/main/java/io/syslogic/github/network/TokenHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ public static String getAccessToken(@NonNull Context context) {
4848
private static String loadPackageMeta(@NonNull Context context, AccountManager accountManager) {
4949
String accessToken = null;
5050
try {
51-
ApplicationInfo app = null;
51+
ApplicationInfo app;
5252
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.TIRAMISU) {
53-
PackageManager.ApplicationInfoFlags flags = PackageManager.ApplicationInfoFlags.of(0L);
53+
PackageManager.ApplicationInfoFlags flags = PackageManager.ApplicationInfoFlags.of(PackageManager.GET_META_DATA);
5454
app = context.getPackageManager().getApplicationInfo(context.getPackageName(), flags);
5555
} else {
5656
app = context.getPackageManager().getApplicationInfo(context.getPackageName(), PackageManager.GET_META_DATA);

0 commit comments

Comments
 (0)