Loading src/com/cyanogenmod/filemanager/activities/EditorActivity.java +1 −5 Original line number Diff line number Diff line Loading @@ -428,11 +428,7 @@ public class EditorActivity extends Activity implements TextWatcher { */ private boolean initializeConsole() { try { // Is there a console allocate if (!ConsoleBuilder.isAlloc()) { // Create a console ConsoleBuilder.getConsole(this); } ConsoleBuilder.createDefaultConsole(this); // There is a console allocated. Use it. return true; } catch (Throwable _throw) { Loading src/com/cyanogenmod/filemanager/activities/NavigationActivity.java +1 −1 Original line number Diff line number Diff line Loading @@ -574,7 +574,7 @@ public class NavigationActivity extends Activity public void run() { //Create the default console (from the preferences) try { Console console = ConsoleBuilder.getConsole(NavigationActivity.this); Console console = ConsoleBuilder.createDefaultConsole(NavigationActivity.this); if (console == null) { throw new ConsoleAllocException("console == null"); //$NON-NLS-1$ } Loading src/com/cyanogenmod/filemanager/activities/PickerActivity.java +2 −5 Original line number Diff line number Diff line Loading @@ -305,11 +305,8 @@ public class PickerActivity extends Activity */ private boolean initializeConsole() { try { // Is there a console allocate if (!ConsoleBuilder.isAlloc()) { // Create a ChRooted console ConsoleBuilder.createDefaultConsole(this, false, false); } // There is a console allocated. Use it. return true; } catch (Throwable _throw) { Loading src/com/cyanogenmod/filemanager/activities/ShortcutActivity.java +1 −5 Original line number Diff line number Diff line Loading @@ -200,11 +200,7 @@ public class ShortcutActivity extends Activity implements OnCancelListener, OnDi */ private boolean initializeConsole() { try { // Is there a console allocate if (!ConsoleBuilder.isAlloc()) { // Create a console ConsoleBuilder.getConsole(this); } ConsoleBuilder.createDefaultConsole(this); // There is a console allocated. Use it. return true; } catch (Throwable _throw) { Loading src/com/cyanogenmod/filemanager/console/ConsoleBuilder.java +0 −19 Original line number Diff line number Diff line Loading @@ -94,13 +94,6 @@ public final class ConsoleBuilder { return null; } createDefaultConsole(context); } else { // Need to change the console? Is the appropriate console for the current mode? if (FileManagerApplication.getAccessMode(). compareTo(AccessMode.ROOT) == 0 && !isPrivileged()) { // Force to change the console createDefaultConsole(context); } } return sHolder.getConsole(); } Loading Loading @@ -404,18 +397,6 @@ 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 isAlloc() { if (sHolder != null && sHolder.getConsole() != null) { return true; } return false; } /** * Method that returns if the current console is a privileged console * Loading Loading
src/com/cyanogenmod/filemanager/activities/EditorActivity.java +1 −5 Original line number Diff line number Diff line Loading @@ -428,11 +428,7 @@ public class EditorActivity extends Activity implements TextWatcher { */ private boolean initializeConsole() { try { // Is there a console allocate if (!ConsoleBuilder.isAlloc()) { // Create a console ConsoleBuilder.getConsole(this); } ConsoleBuilder.createDefaultConsole(this); // There is a console allocated. Use it. return true; } catch (Throwable _throw) { Loading
src/com/cyanogenmod/filemanager/activities/NavigationActivity.java +1 −1 Original line number Diff line number Diff line Loading @@ -574,7 +574,7 @@ public class NavigationActivity extends Activity public void run() { //Create the default console (from the preferences) try { Console console = ConsoleBuilder.getConsole(NavigationActivity.this); Console console = ConsoleBuilder.createDefaultConsole(NavigationActivity.this); if (console == null) { throw new ConsoleAllocException("console == null"); //$NON-NLS-1$ } Loading
src/com/cyanogenmod/filemanager/activities/PickerActivity.java +2 −5 Original line number Diff line number Diff line Loading @@ -305,11 +305,8 @@ public class PickerActivity extends Activity */ private boolean initializeConsole() { try { // Is there a console allocate if (!ConsoleBuilder.isAlloc()) { // Create a ChRooted console ConsoleBuilder.createDefaultConsole(this, false, false); } // There is a console allocated. Use it. return true; } catch (Throwable _throw) { Loading
src/com/cyanogenmod/filemanager/activities/ShortcutActivity.java +1 −5 Original line number Diff line number Diff line Loading @@ -200,11 +200,7 @@ public class ShortcutActivity extends Activity implements OnCancelListener, OnDi */ private boolean initializeConsole() { try { // Is there a console allocate if (!ConsoleBuilder.isAlloc()) { // Create a console ConsoleBuilder.getConsole(this); } ConsoleBuilder.createDefaultConsole(this); // There is a console allocated. Use it. return true; } catch (Throwable _throw) { Loading
src/com/cyanogenmod/filemanager/console/ConsoleBuilder.java +0 −19 Original line number Diff line number Diff line Loading @@ -94,13 +94,6 @@ public final class ConsoleBuilder { return null; } createDefaultConsole(context); } else { // Need to change the console? Is the appropriate console for the current mode? if (FileManagerApplication.getAccessMode(). compareTo(AccessMode.ROOT) == 0 && !isPrivileged()) { // Force to change the console createDefaultConsole(context); } } return sHolder.getConsole(); } Loading Loading @@ -404,18 +397,6 @@ 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 isAlloc() { if (sHolder != null && sHolder.getConsole() != null) { return true; } return false; } /** * Method that returns if the current console is a privileged console * Loading