Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d8b7c87 authored by Chalard Jean's avatar Chalard Jean
Browse files

Add a static to get the Ip Memory Store

This is so that there is some AOSP stable API while the
memory store is moved to the network.

Test: atest FrameworksNetTests
Change-Id: Ib51dbee77fcb0d14a5c85240ac711b3b1aa71286
parent 8e8ed1df
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);
    }
}