Skip to content
Snippets Groups Projects
Unverified Commit 74ebb320 authored by Johannes Mockenhaupt's avatar Johannes Mockenhaupt
Browse files

Align method names.

parent 08217717
No related branches found
No related tags found
No related merge requests found
......@@ -486,11 +486,10 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
mBuilder.setContentIntent(resultPendingIntent);
NotificationManager mNotificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
// notifyId allows you to update the notification later on.
mNotificationManager.notify(USB_DISCONNECT_NOFICATION_ID, mBuilder.build());
}
private void clearUsbDisconnectedNotification() {
private void clearDisconnectionNotification() {
NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.cancel(MainActivity.USB_DISCONNECT_NOFICATION_ID);
}
......@@ -939,7 +938,7 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
} else if (UsbManager.ACTION_USB_DEVICE_ATTACHED.equals(action)) {
Log.d(TAG, "USB plugged in");
if (mEnableCgmService) {
clearUsbDisconnectedNotification();
clearDisconnectionNotification();
}
if (hasUsbPermission()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment