Update BIGChart.java
This commit is contained in:
parent
c22c22f1d7
commit
90ce3a524f
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ public class BIGChart extends WatchFace implements SharedPreferences.OnSharedPre
|
|||
sharedPrefs.registerOnSharedPreferenceChangeListener(this);
|
||||
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||
DisplayMetrics metrics = getResources().getDisplayMetrics();
|
||||
if(metrics.widthPixels < SCREENSIZE_SMALL || metrics.widthPixels < SCREENSIZE_SMALL){
|
||||
if(metrics.widthPixels < SCREENSIZE_SMALL || metrics.heightPixels < SCREENSIZE_SMALL){
|
||||
layoutView = inflater.inflate(R.layout.activity_bigchart_small, null);
|
||||
} else {
|
||||
layoutView = inflater.inflate(R.layout.activity_bigchart, null);
|
||||
|
@ -679,4 +679,4 @@ public class BIGChart extends WatchFace implements SharedPreferences.OnSharedPre
|
|||
ListenerService.requestData(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue