File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mobile/src/main/java/io/syslogic/github/network Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ public static String getAccessToken(@NonNull Context context) {
48
48
private static String loadPackageMeta (@ NonNull Context context , AccountManager accountManager ) {
49
49
String accessToken = null ;
50
50
try {
51
- ApplicationInfo app = null ;
51
+ ApplicationInfo app ;
52
52
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 );
54
54
app = context .getPackageManager ().getApplicationInfo (context .getPackageName (), flags );
55
55
} else {
56
56
app = context .getPackageManager ().getApplicationInfo (context .getPackageName (), PackageManager .GET_META_DATA );
You can’t perform that action at this time.
0 commit comments