Merge "Add a static to get the Ip Memory Store"

This commit is contained in:
Treehugger Robot
2019-03-11 14:56:34 +00:00
committed by Gerrit Code Review

View File

@@ -171,4 +171,9 @@ public class IpMemoryStore {
throw e.rethrowFromSystemServer();
}
}
/** Gets an instance of the memory store */
public static IpMemoryStore getMemoryStore(final Context context) {
return (IpMemoryStore) context.getSystemService(Context.IP_MEMORY_STORE_SERVICE);
}
}