OSDN Git Service
(root)
/
android-x86
/
packages-apps-CMFileManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6143b53
)
Add a method to check if the current console is privileged
author
jruesga
<jorge@ruesga.com>
Thu, 18 Oct 2012 23:03:41 +0000
(
01:03
+0200)
committer
jruesga
<jorge@ruesga.com>
Thu, 18 Oct 2012 23:03:41 +0000
(
01:03
+0200)
src/com/cyanogenmod/explorer/console/ConsoleBuilder.java
patch
|
blob
|
history
diff --git
a/src/com/cyanogenmod/explorer/console/ConsoleBuilder.java
b/src/com/cyanogenmod/explorer/console/ConsoleBuilder.java
index
ac9c8f2
..
ec61df8
100644
(file)
--- a/
src/com/cyanogenmod/explorer/console/ConsoleBuilder.java
+++ b/
src/com/cyanogenmod/explorer/console/ConsoleBuilder.java
@@
-395,4
+395,16
@@
public final class ConsoleBuilder {
}
}
+ /**
+ * Method that returns if the current console is a privileged console
+ *
+ * @return boolean If the current console is a privileged console
+ */
+ public static boolean isPrivileged() {
+ if (sHolder != null && sHolder.getConsole() instanceof PrivilegedConsole) {
+ return true;
+ }
+ return false;
+ }
+
}