1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-18 14:47:46 +01:00

reformat code and optimize imports

This commit is contained in:
Andreas Shimokawa 2016-03-03 15:47:00 +01:00
parent 864e0953d9
commit bd7b34985b
5 changed files with 3 additions and 5 deletions

View File

@ -200,7 +200,7 @@ public class AppManagerActivity extends Activity {
return true; return true;
case R.id.appmanager_app_configure: case R.id.appmanager_app_configure:
GBApplication.deviceService().onAppStart(selectedApp.getUUID(), true); GBApplication.deviceService().onAppStart(selectedApp.getUUID(), true);
Intent startIntent = new Intent(getApplicationContext(), ExternalPebbleJSActivity.class); Intent startIntent = new Intent(getApplicationContext(), ExternalPebbleJSActivity.class);
startIntent.putExtra("app_uuid", selectedApp.getUUID()); startIntent.putExtra("app_uuid", selectedApp.getUUID());
startIntent.putExtra(GBDevice.EXTRA_DEVICE, mGBDevice); startIntent.putExtra(GBDevice.EXTRA_DEVICE, mGBDevice);

View File

@ -2,7 +2,6 @@ package nodomain.freeyourgadget.gadgetbridge.devices;
import android.net.Uri; import android.net.Uri;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.util.Pair;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.UUID; import java.util.UUID;

View File

@ -5,7 +5,6 @@ import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.net.Uri; import android.net.Uri;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.util.Pair;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.UUID; import java.util.UUID;

View File

@ -64,7 +64,7 @@ public class ActivityUser {
* value is out of any logical bounds. * value is out of any logical bounds.
*/ */
public int getActivityUserSleepDuration() { public int getActivityUserSleepDuration() {
if(activityUserSleepDuration == null) { if (activityUserSleepDuration == null) {
fetchPreferences(); fetchPreferences();
} }
if (activityUserSleepDuration < 1 || activityUserSleepDuration > 24) { if (activityUserSleepDuration < 1 || activityUserSleepDuration > 24) {

View File

@ -578,7 +578,7 @@ public class PebbleIoThread extends GBDeviceIoThread {
return; return;
} }
String platformName = PebbleUtils.getPlatformName(gbDevice.getHardwareVersion()); String platformName = PebbleUtils.getPlatformName(gbDevice.getHardwareVersion());
try { try {
mPBWReader = new PBWReader(uri, getContext(), platformName); mPBWReader = new PBWReader(uri, getContext(), platformName);