mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
reformat code
This commit is contained in:
@@ -30,7 +30,6 @@ import java.util.List;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.activities.ConfigureAlarms;
|
import nodomain.freeyourgadget.gadgetbridge.activities.ConfigureAlarms;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.activities.ChartsActivity;
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.activities.SleepChartActivity;
|
import nodomain.freeyourgadget.gadgetbridge.activities.SleepChartActivity;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.adapter.GBDeviceAdapter;
|
import nodomain.freeyourgadget.gadgetbridge.adapter.GBDeviceAdapter;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.discovery.DiscoveryActivity;
|
import nodomain.freeyourgadget.gadgetbridge.discovery.DiscoveryActivity;
|
||||||
|
@@ -14,7 +14,6 @@ import org.slf4j.Logger;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
|
@@ -119,6 +119,7 @@ public class GBAlarm implements Parcelable, Comparable {
|
|||||||
public int getMinute() {
|
public int getMinute() {
|
||||||
return this.minute;
|
return this.minute;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Calendar getAlarmCal() {
|
public Calendar getAlarmCal() {
|
||||||
Calendar alarm = Calendar.getInstance();
|
Calendar alarm = Calendar.getInstance();
|
||||||
alarm.set(Calendar.HOUR_OF_DAY, this.hour);
|
alarm.set(Calendar.HOUR_OF_DAY, this.hour);
|
||||||
|
@@ -1,19 +1,12 @@
|
|||||||
package nodomain.freeyourgadget.gadgetbridge.activities;
|
package nodomain.freeyourgadget.gadgetbridge.activities;
|
||||||
|
|
||||||
import java.util.Locale;
|
|
||||||
|
|
||||||
import android.support.v4.app.FragmentActivity;
|
|
||||||
import android.support.v4.app.FragmentStatePagerAdapter;
|
|
||||||
import android.support.v4.app.NavUtils;
|
|
||||||
import android.support.v7.app.ActionBarActivity;
|
|
||||||
import android.support.v7.app.ActionBar;
|
|
||||||
import android.support.v4.app.Fragment;
|
|
||||||
import android.support.v4.app.FragmentManager;
|
|
||||||
import android.support.v4.app.FragmentTransaction;
|
|
||||||
import android.support.v4.app.FragmentPagerAdapter;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.support.v4.app.Fragment;
|
||||||
|
import android.support.v4.app.FragmentActivity;
|
||||||
|
import android.support.v4.app.FragmentManager;
|
||||||
|
import android.support.v4.app.FragmentPagerAdapter;
|
||||||
|
import android.support.v4.app.FragmentStatePagerAdapter;
|
||||||
import android.support.v4.view.ViewPager;
|
import android.support.v4.view.ViewPager;
|
||||||
import android.view.Gravity;
|
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
@@ -21,6 +14,8 @@ import android.view.View;
|
|||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||||
|
|
||||||
public class ChartsActivity extends FragmentActivity {
|
public class ChartsActivity extends FragmentActivity {
|
||||||
|
@@ -13,7 +13,6 @@ import android.widget.TextView;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.GBAlarm;
|
import nodomain.freeyourgadget.gadgetbridge.GBAlarm;
|
||||||
|
@@ -10,7 +10,7 @@ import com.github.mikephil.charting.utils.ViewPortHandler;
|
|||||||
/**
|
/**
|
||||||
* A legend renderer that does *not* calculate the labels and colors automatically
|
* A legend renderer that does *not* calculate the labels and colors automatically
|
||||||
* from the data sets or the data entries.
|
* from the data sets or the data entries.
|
||||||
*
|
* <p/>
|
||||||
* Instead, they have to be provided manually, because otherwise the legend will
|
* Instead, they have to be provided manually, because otherwise the legend will
|
||||||
* be empty.
|
* be empty.
|
||||||
*/
|
*/
|
||||||
|
@@ -152,6 +152,7 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends a custom notification to the Mi Band.
|
* Sends a custom notification to the Mi Band.
|
||||||
|
*
|
||||||
* @param vibrationProfile specifies how and how often the Band shall vibrate.
|
* @param vibrationProfile specifies how and how often the Band shall vibrate.
|
||||||
* @param flashTimes
|
* @param flashTimes
|
||||||
* @param flashColour
|
* @param flashColour
|
||||||
|
@@ -45,6 +45,7 @@ public class VibrationProfile {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new profile instance.
|
* Creates a new profile instance.
|
||||||
|
*
|
||||||
* @param id the ID, used as preference key.
|
* @param id the ID, used as preference key.
|
||||||
* @param onOffSequence a sequence of alternating on and off durations, in milliseconds
|
* @param onOffSequence a sequence of alternating on and off durations, in milliseconds
|
||||||
* @param repeat how ofoften the sequence shall be repeated
|
* @param repeat how ofoften the sequence shall be repeated
|
||||||
|
Reference in New Issue
Block a user