Merge "Replace stream().min() to Collections.min() to avoid stream object." into udc-dev
This commit is contained in:
@@ -33,6 +33,7 @@ import com.android.settings.Utils;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -473,8 +474,7 @@ public class DataProcessManager {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
final long rawStartTimestamp =
|
final long rawStartTimestamp = Collections.min(batteryHistoryMap.keySet());
|
||||||
batteryHistoryMap.keySet().stream().min(Long::compare).orElse(0L);
|
|
||||||
// Start the async task to compute diff usage data and load labels and icons.
|
// Start the async task to compute diff usage data and load labels and icons.
|
||||||
new DataProcessManager(
|
new DataProcessManager(
|
||||||
context,
|
context,
|
||||||
|
Reference in New Issue
Block a user