|
@@ -18,6 +18,7 @@ import android.widget.TextView;
|
|
|
|
|
|
import com.edufound.reader.R;
|
|
|
import com.edufound.reader.application.EApplication;
|
|
|
+import com.edufound.reader.bean.ChannelCodeEnum;
|
|
|
import com.edufound.reader.bean.RecordResultBean;
|
|
|
import com.edufound.reader.bean.UserRecordBean;
|
|
|
import com.edufound.reader.cusview.GridRadioGroup;
|
|
@@ -337,7 +338,9 @@ public class PopWindowUtil {
|
|
|
buffer.append("\t屏幕高度:\t\t" + DeviceUtil.getHeight(context) + "\n");
|
|
|
buffer.append("\t屏幕密度:\t\t" + DeviceUtil.getDensity(context) + "\n");
|
|
|
buffer.append("\t屏幕DPI:\t\t" + DeviceUtil.getDensityDpi(context) + "\n");
|
|
|
-
|
|
|
+ if (Consts.getUmengChannel().equals(ChannelCodeEnum.BAIDU.getChannelCode()) && Consts.getmConstsBaiDuUserBean() != null) {
|
|
|
+ buffer.append("\t百度UserId:\t\t" + Consts.getmConstsBaiDuUserBean().getUserInfo().getUserId() + "\n");
|
|
|
+ }
|
|
|
View infoView = LayoutInflater.from(context).inflate(R.layout.window_deviceinfo, null);
|
|
|
TextView text = (TextView) infoView.findViewById(R.id.deviceinfo);
|
|
|
text.setText(buffer.toString());
|
|
@@ -351,7 +354,7 @@ public class PopWindowUtil {
|
|
|
Display d = m.getDefaultDisplay(); // 获取屏幕宽、高用
|
|
|
WindowManager.LayoutParams p = dialogWindow.getAttributes(); // 获取对话框当前的参数值
|
|
|
p.height = (int) (d.getHeight() * 0.8);
|
|
|
- p.width = (int) (d.getWidth() * 0.6);
|
|
|
+ p.width = (int) (d.getWidth() * 0.7);
|
|
|
dialogWindow.setAttributes(p);
|
|
|
dialog.setTitle("Device信息");
|
|
|
dialog.show();
|