Loading packages/SystemUI/res/values/strings.xml +2 −3 Original line number Diff line number Diff line Loading @@ -168,7 +168,7 @@ <!-- toast message displayed when a screenshot is saved to the Gallery. --> <string name="screenshot_saving_toast">Screenshot saved to Gallery</string> <!-- toast message displayed when we fail to take a screenshot. --> <string name="screenshot_failed_toast">Could not save screenshot</string> <string name="screenshot_failed_toast">Could not save screenshot. External storage may be in use.</string> <!-- Title for the USB function chooser in UsbPreferenceActivity. [CHAR LIMIT=30] --> <string name="usb_preference_title">USB file transfer options</string> Loading Loading @@ -299,5 +299,4 @@ <!-- Content description of the ringer silent icon in the notification panel for accessibility (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_ringer_silent">Ringer silent.</string> </resources> packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java +4 −2 Original line number Diff line number Diff line Loading @@ -114,7 +114,9 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi out.close(); params[0].result = 0; }catch(IOException e){ } catch (Exception e) { // IOException/UnsupportedOperationException may be thrown if external storage is not // mounted params[0].result = 1; } Loading policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +26 −23 Original line number Diff line number Diff line Loading @@ -2444,6 +2444,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { switch (keyCode) { case KeyEvent.KEYCODE_VOLUME_DOWN: if (down) { if (isScreenOn) { // If the power key down was already triggered, take the screenshot if (mPowerDownTriggered) { // Dismiss the power-key longpress Loading @@ -2458,6 +2459,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { break; } mVolumeDownTriggered = true; } } else { mVolumeDownTriggered = false; } Loading Loading @@ -2541,6 +2543,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { case KeyEvent.KEYCODE_POWER: { result &= ~ACTION_PASS_TO_USER; if (down) { if (isScreenOn) { // If the volume down key has been triggered, then just take the screenshot if (mVolumeDownTriggered) { // Take the screenshot Loading @@ -2551,7 +2554,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { break; } mPowerDownTriggered = true; } ITelephony telephonyService = getTelephonyService(); boolean hungUp = false; Loading Loading
packages/SystemUI/res/values/strings.xml +2 −3 Original line number Diff line number Diff line Loading @@ -168,7 +168,7 @@ <!-- toast message displayed when a screenshot is saved to the Gallery. --> <string name="screenshot_saving_toast">Screenshot saved to Gallery</string> <!-- toast message displayed when we fail to take a screenshot. --> <string name="screenshot_failed_toast">Could not save screenshot</string> <string name="screenshot_failed_toast">Could not save screenshot. External storage may be in use.</string> <!-- Title for the USB function chooser in UsbPreferenceActivity. [CHAR LIMIT=30] --> <string name="usb_preference_title">USB file transfer options</string> Loading Loading @@ -299,5 +299,4 @@ <!-- Content description of the ringer silent icon in the notification panel for accessibility (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_ringer_silent">Ringer silent.</string> </resources>
packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java +4 −2 Original line number Diff line number Diff line Loading @@ -114,7 +114,9 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi out.close(); params[0].result = 0; }catch(IOException e){ } catch (Exception e) { // IOException/UnsupportedOperationException may be thrown if external storage is not // mounted params[0].result = 1; } Loading
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +26 −23 Original line number Diff line number Diff line Loading @@ -2444,6 +2444,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { switch (keyCode) { case KeyEvent.KEYCODE_VOLUME_DOWN: if (down) { if (isScreenOn) { // If the power key down was already triggered, take the screenshot if (mPowerDownTriggered) { // Dismiss the power-key longpress Loading @@ -2458,6 +2459,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { break; } mVolumeDownTriggered = true; } } else { mVolumeDownTriggered = false; } Loading Loading @@ -2541,6 +2543,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { case KeyEvent.KEYCODE_POWER: { result &= ~ACTION_PASS_TO_USER; if (down) { if (isScreenOn) { // If the volume down key has been triggered, then just take the screenshot if (mVolumeDownTriggered) { // Take the screenshot Loading @@ -2551,7 +2554,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { break; } mPowerDownTriggered = true; } ITelephony telephonyService = getTelephonyService(); boolean hungUp = false; Loading