forked from upstream-mirrors/OpenTracks
Cleanup.
This commit is contained in:
@@ -35,7 +35,7 @@ import java.util.Optional;
|
|||||||
public class TrackPoint {
|
public class TrackPoint {
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
private TrackPoint.Id id;
|
private final TrackPoint.Id id;
|
||||||
|
|
||||||
//Requires: position.time must be non-null
|
//Requires: position.time must be non-null
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|||||||
@@ -97,9 +97,7 @@ public class ImportActivity extends AbstractActivity {
|
|||||||
|
|
||||||
importer = new Importer(this, documentFiles);
|
importer = new Importer(this, documentFiles);
|
||||||
importer.getLiveData()
|
importer.getLiveData()
|
||||||
.observe(this, summary -> {
|
.observe(this, summary -> setProgress(summary));
|
||||||
setProgress(summary);
|
|
||||||
});
|
|
||||||
importer.startImport();
|
importer.startImport();
|
||||||
|
|
||||||
//Works for a directory, but we might have received multiple files via SEND_MULTIPLE.
|
//Works for a directory, but we might have received multiple files via SEND_MULTIPLE.
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import de.dennisguse.opentracks.R;
|
|||||||
|
|
||||||
public class LocalePreference extends ListPreference {
|
public class LocalePreference extends ListPreference {
|
||||||
|
|
||||||
private String TAG = LocalePreference.class.getSimpleName();
|
private final String TAG = LocalePreference.class.getSimpleName();
|
||||||
|
|
||||||
public LocalePreference(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
|
public LocalePreference(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
|
||||||
super(context, attrs, defStyleAttr, defStyleRes);
|
super(context, attrs, defStyleAttr, defStyleRes);
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ public class PermissionRequester {
|
|||||||
ArrayList<String> recording = new ArrayList<>(GPS_PERMISSION);
|
ArrayList<String> recording = new ArrayList<>(GPS_PERMISSION);
|
||||||
recording.addAll(BLUETOOTH_PERMISSIONS);
|
recording.addAll(BLUETOOTH_PERMISSIONS);
|
||||||
|
|
||||||
RECORDING_PERMISSIONS = Collections.unmodifiableList(new ArrayList<>(recording));
|
RECORDING_PERMISSIONS = List.copyOf(recording);
|
||||||
|
|
||||||
recording.addAll(NOTIFICATION_PERMISSIONS);
|
recording.addAll(NOTIFICATION_PERMISSIONS);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user