Skip to content

Commit d65f608

Browse files
committed
Doc adjustments
1 parent 7b08ae7 commit d65f608

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

librootjava/src/main/java/eu/chainfire/librootjava/RootJava.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ public static void restoreOriginalLdLibraryPath() {
266266
* Due to preparing the main looper, this throws off libsuperuser if you use it for shell
267267
* commands on the main thread. If you use this call, you will probably need to call
268268
* Debug.setSanityChecksEnabled(false) to get any shell calls executed, and create a
269-
* separate HandlerThread (and Handler), and use both Shell.Builder::setAutoHandler(false)
270-
* and Shell.Builder::setHandler(^^^^) for Shell.Interactive to behave as expected.
269+
* separate HandlerThread (and Handler), and use both Shell.Builder.setAutoHandler(false)
270+
* and Shell.Builder.setHandler(^^^^) for Shell.Interactive to behave as expected.
271271
*
272272
* @return System context
273273
*/

librootjava_example/src/main/java/eu/chainfire/librootjava_example/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ you can use the isDisconnectScheduled() call as a trigger to abort.
116116
117117
If you're done with the IPC interface at the end of this method, call disconnect().
118118
You shouldn't store the interface itself, but if you don't disconnect() you can call
119-
RootIPCReceiver::getIPC() later.
119+
RootIPCReceiver.getIPC() later.
120120
*/
121121
Logger.dp("IPC", "onConnect");
122122
try {
@@ -279,7 +279,7 @@ public void onLine(String line) {
279279
If this method was not running on the main thread, and you wanted to use the IPC class
280280
serially rather than using the onConnect callback, you could do it like this:
281281
282-
IPC ipc = ipcReceiver.getIPC(30 * 1000);
282+
IIPC ipc = ipcReceiver.getIPC(30 * 1000);
283283
if (ipc != null) {
284284
int remotePid = ipc.getPid();
285285
// ...

0 commit comments

Comments
 (0)