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

Commit 5967e5cd authored by Jon Eckenrode's avatar Jon Eckenrode
Browse files

Updated example code in class description.



Test: Built API docs
Bug: 305212206
Flag: DOCS_ONLY
Change-Id: Ib24ab15baff9766863803c9139f20f6e6a8d5fe5
Signed-off-by: default avatarJon Eckenrode <joneckenrode@google.com>
parent c88b3341
Loading
Loading
Loading
Loading
+13 −15
Original line number Diff line number Diff line
@@ -122,20 +122,18 @@ import java.util.function.Consumer;
 * method:
 *
 * <pre>
 * public void onCreate() {
 *     StrictMode.setThreadPolicy(new {@link ThreadPolicy.Builder StrictMode.ThreadPolicy.Builder}()
 *             .detectDiskReads()
 *             .detectDiskWrites()
 *             .detectNetwork()   // or .detectAll() for all detectable problems
 *             .penaltyLog()
 *             .build());
 *     StrictMode.setVmPolicy(new {@link VmPolicy.Builder StrictMode.VmPolicy.Builder}()
 *             .detectLeakedSqlLiteObjects()
 *             .detectLeakedClosableObjects()
 *             .penaltyLog()
 *             .penaltyDeath()
 *             .build());
 *     super.onCreate();
 * override fun onCreate(savedInstanceState: Bundle?) {
 *     super.onCreate(savedInstanceState)
 *     StrictMode.setThreadPolicy(
 *         StrictMode.ThreadPolicy.Builder()
 *         .detectAll()
 *         .build()
 *     )
 *     StrictMode.setVmPolicy(
 *         StrictMode.VmPolicy.Builder()
 *         .detectAll()
 *         .build()
 *     )
 * }
 * </pre>
 *