|
@@ -54,7 +54,7 @@ public class AboutActivity extends BaseActivity {
|
|
|
String eid = DataManager.getEsimEid();
|
|
|
|
|
|
String[] stringList = getResources().getStringArray(R.array.about_titls_array);
|
|
|
- String[] valueList = {modelName, cpu, ram, storage, softwareVersion, firmwareVersion, imei, eid, sn, wifi, bt, ""};
|
|
|
+ String[] valueList = {modelName, cpu, ram, storage, softwareVersion, firmwareVersion, imei, eid, sn, wifi, bt, "", ""};
|
|
|
|
|
|
for (int i = 0; i < stringList.length; i++) {
|
|
|
BaseModel model = new BaseModel();
|
|
@@ -83,8 +83,10 @@ public class AboutActivity extends BaseActivity {
|
|
|
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
|
@Override
|
|
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
|
|
- if (position == mDataList.size()-1) {
|
|
|
+ if (position == mDataList.size()-2) {
|
|
|
openSourceAnnouncement();
|
|
|
+ } else if (position == mDataList.size()-1) {
|
|
|
+ openPrivacyPolicy();
|
|
|
} else if (position == 4) {
|
|
|
mClickCount++;
|
|
|
if (mClickCount >= 10) {
|
|
@@ -126,43 +128,6 @@ public class AboutActivity extends BaseActivity {
|
|
|
return Formatter.formatFileSize(context, initial_memory);// Byte转换为KB或者MB,内存大小规格化
|
|
|
}
|
|
|
|
|
|
-// // 获取设备的内存大小,返回值单位为G
|
|
|
-// public static int getTotalMemorySize(){
|
|
|
-// String path = "/proc/meminfo";
|
|
|
-// String firstLine = null;
|
|
|
-// FileReader fileReader = null;
|
|
|
-// BufferedReader bufferedReader = null;
|
|
|
-// try{
|
|
|
-// fileReader = new FileReader(path);
|
|
|
-// bufferedReader = new BufferedReader(fileReader,8192);
|
|
|
-// firstLine = bufferedReader.readLine().split("\\s+")[1];
|
|
|
-// } catch (Exception e){
|
|
|
-// e.printStackTrace();
|
|
|
-// } finally {
|
|
|
-// try {
|
|
|
-// if (bufferedReader != null) {
|
|
|
-// bufferedReader.close();
|
|
|
-// }
|
|
|
-// } catch (Exception e) {
|
|
|
-// e.printStackTrace(System.out);
|
|
|
-// }
|
|
|
-//
|
|
|
-// try {
|
|
|
-// if (fileReader != null) {
|
|
|
-// fileReader.close();
|
|
|
-// }
|
|
|
-// } catch (Exception e) {
|
|
|
-// e.printStackTrace(System.out);
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-// if(TextUtils.isEmpty(firstLine)){
|
|
|
-// return (int)Math.ceil((new Float(Float.valueOf(firstLine) / (1024 * 1024)).doubleValue()));
|
|
|
-// }
|
|
|
-//
|
|
|
-// return 0;
|
|
|
-// }
|
|
|
-
|
|
|
private void showBlackdoorPassword() {
|
|
|
Intent intent = new Intent(this, BlackDoorPasswordActivity.class);
|
|
|
intent.putExtra("from", 0);
|
|
@@ -173,4 +138,9 @@ public class AboutActivity extends BaseActivity {
|
|
|
Intent intent = new Intent(this, SourceAnnouncementActivity.class);
|
|
|
startActivity(intent);
|
|
|
}
|
|
|
+
|
|
|
+ private void openPrivacyPolicy() {
|
|
|
+ Intent intent = new Intent(this, PrivacyPolicyActivity.class);
|
|
|
+ startActivity(intent);
|
|
|
+ }
|
|
|
}
|