diff options
author | John Spurlock <jspurlock@google.com> | 2013-07-17 12:23:27 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2013-07-17 12:23:27 -0400 |
commit | 209bede6b9edb9171e5bee4077b48e35004a37b4 (patch) | |
tree | f89c2a0651b3962cfe089306de390bd6e06cb186 /packages/SystemUI/src/com/android/systemui/usb | |
parent | 4a8baef3f56042ab4592db030c61af0a4c632d15 (diff) | |
download | frameworks_base-209bede6b9edb9171e5bee4077b48e35004a37b4.zip frameworks_base-209bede6b9edb9171e5bee4077b48e35004a37b4.tar.gz frameworks_base-209bede6b9edb9171e5bee4077b48e35004a37b4.tar.bz2 |
Remove trailing whitespace from system ui.
Baseline existing .java files, no excuses going forward.
Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/usb')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java | 14 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/usb/UsbStorageActivity.java | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java b/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java index b75f8b3..2c36ab7 100644 --- a/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java +++ b/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java @@ -41,7 +41,7 @@ public class StorageNotification extends SystemUI { /** * The notification that is shown when a USB mass storage host - * is connected. + * is connected. * <p> * This is lazily created, so use {@link #setUsbStorageNotification()}. */ @@ -217,7 +217,7 @@ public class StorageNotification extends SystemUI { setMediaStorageNotification( com.android.internal.R.string.ext_media_unmountable_notification_title, com.android.internal.R.string.ext_media_unmountable_notification_message, - com.android.internal.R.drawable.stat_notify_sdcard_usb, true, false, pi); + com.android.internal.R.drawable.stat_notify_sdcard_usb, true, false, pi); updateUsbMassStorageNotification(mUmsAvailable); } else if (newState.equals(Environment.MEDIA_REMOVED)) { /* @@ -283,7 +283,7 @@ public class StorageNotification extends SystemUI { if (notificationManager == null) { return; } - + if (visible) { Resources r = Resources.getSystem(); CharSequence title = r.getText(titleId); @@ -300,7 +300,7 @@ public class StorageNotification extends SystemUI { } else { mUsbStorageNotification.defaults &= ~Notification.DEFAULT_SOUND; } - + mUsbStorageNotification.flags = Notification.FLAG_ONGOING_EVENT; mUsbStorageNotification.tickerText = title; @@ -329,7 +329,7 @@ public class StorageNotification extends SystemUI { mUsbStorageNotification.fullScreenIntent = pi; } } - + final int notificationId = mUsbStorageNotification.icon; if (visible) { notificationManager.notifyAsUser(null, notificationId, mUsbStorageNotification, @@ -373,7 +373,7 @@ public class StorageNotification extends SystemUI { final int notificationId = mMediaStorageNotification.icon; notificationManager.cancel(notificationId); } - + if (visible) { Resources r = Resources.getSystem(); CharSequence title = r.getText(titleId); @@ -402,7 +402,7 @@ public class StorageNotification extends SystemUI { mMediaStorageNotification.icon = icon; mMediaStorageNotification.setLatestEventInfo(mContext, title, message, pi); } - + final int notificationId = mMediaStorageNotification.icon; if (visible) { notificationManager.notifyAsUser(null, notificationId, diff --git a/packages/SystemUI/src/com/android/systemui/usb/UsbStorageActivity.java b/packages/SystemUI/src/com/android/systemui/usb/UsbStorageActivity.java index 65315f3..0ed2a54 100644 --- a/packages/SystemUI/src/com/android/systemui/usb/UsbStorageActivity.java +++ b/packages/SystemUI/src/com/android/systemui/usb/UsbStorageActivity.java @@ -94,7 +94,7 @@ public class UsbStorageActivity extends Activity switchDisplay(on); } }; - + @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -105,7 +105,7 @@ public class UsbStorageActivity extends Activity Log.w(TAG, "Failed to get StorageManager"); } } - + mUIHandler = new Handler(); HandlerThread thr = new HandlerThread("SystemUI UsbStorageActivity"); @@ -184,7 +184,7 @@ public class UsbStorageActivity extends Activity @Override protected void onPause() { super.onPause(); - + unregisterReceiver(mUsbStateReceiver); if (mStorageManager == null && mStorageListener != null) { mStorageManager.unregisterListener(mStorageListener); @@ -256,7 +256,7 @@ public class UsbStorageActivity extends Activity // will be hidden once USB mass storage kicks in (or fails) } }); - + // things to do elsewhere mAsyncStorageHandler.post(new Runnable() { @Override |