MCPcopy Create free account
hub / github.com/M66B/FairEmail / getUpdateTime

Method getUpdateTime

app/src/main/java/eu/faircode/email/Helper.java:1541–1551  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

1539 }
1540
1541 static long getUpdateTime(Context context) {
1542 try {
1543 PackageManager pm = context.getPackageManager();
1544 PackageInfo pi = pm.getPackageInfo(BuildConfig.APPLICATION_ID, 0);
1545 if (pi != null)
1546 return pi.lastUpdateTime;
1547 } catch (Throwable ex) {
1548 Log.e(ex);
1549 }
1550 return 0;
1551 }
1552
1553 static int getTargetSdk(Context context) {
1554 if (targetSdk == null)

Callers 1

getAppInfoMethod · 0.95

Calls 1

eMethod · 0.95

Tested by

no test coverage detected