mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Revert "Adding some logging around launcher grid when device profile changes"
Bug: 35425060
This reverts commit c29de85780.
Change-Id: I4320be3473f914289f88c8cbb376a68af006d7de
This commit is contained in:
@@ -29,7 +29,6 @@ import android.view.WindowManager;
|
||||
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.config.ProviderConfig;
|
||||
import com.android.launcher3.logging.FileLog;
|
||||
import com.android.launcher3.util.Thunk;
|
||||
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
@@ -188,23 +187,6 @@ public class InvariantDeviceProfile {
|
||||
}
|
||||
}
|
||||
|
||||
public void dumpDisplayInfo(Context context) {
|
||||
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
|
||||
Display display = wm.getDefaultDisplay();
|
||||
DisplayMetrics dm = new DisplayMetrics();
|
||||
display.getMetrics(dm);
|
||||
|
||||
Point smallestSize = new Point();
|
||||
Point largestSize = new Point();
|
||||
display.getCurrentSizeRange(smallestSize, largestSize);
|
||||
|
||||
FileLog.e("DisplayInfo", "Default Density: " + DisplayMetrics.DENSITY_DEFAULT);
|
||||
FileLog.e("DisplayInfo", "Density: " + dm.densityDpi);
|
||||
FileLog.e("DisplayInfo", "Smallest size: " + smallestSize);
|
||||
FileLog.e("DisplayInfo", "Largest size: " + largestSize);
|
||||
FileLog.e("DisplayInfo", "minWidth/Height DPS: " + minWidthDps + ", " + minHeightDps);
|
||||
}
|
||||
|
||||
ArrayList<InvariantDeviceProfile> getPredefinedDeviceProfiles(Context context) {
|
||||
ArrayList<InvariantDeviceProfile> profiles = new ArrayList<>();
|
||||
try (XmlResourceParser parser = context.getResources().getXml(R.xml.device_profiles)) {
|
||||
|
||||
Reference in New Issue
Block a user