File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
kotlin/de/tum/in/tumcampus Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,6 @@ class MainActivity : FlutterActivity() {
2121fun isPhone (context : Context ): Boolean {
2222 val resources = context.resources
2323 val configuration = resources.configuration
24- val screenWidthDp = configuration.screenWidthDp
25- return screenWidthDp <= resources.getDimension (R .dimen .min_tablet_width_dp)
24+ val screenWidthDp = configuration.smallestScreenWidthDp
25+ return screenWidthDp <= resources.getInteger (R .integer .min_tablet_width_dp)
2626}
Original file line number Diff line number Diff line change 44 <dimen name =" material_small_padding" >8dp</dimen >
55 <dimen name =" material_tiny_padding" >4dp</dimen >
66 <dimen name =" card_view_corner_radius" >2dp</dimen >
7- <dimen name =" min_tablet_width_dp" >600dp</ dimen >
7+ <integer name =" min_tablet_width_dp" >600</ integer >
88</resources >
You can’t perform that action at this time.
0 commit comments