Commit fd68f09c authored by Geoffrey Métais's avatar Geoffrey Métais

Read build info in strings, not in assets

parent cf1db758
......@@ -63,7 +63,7 @@ public class AboutFragment extends Fragment {
mFlingViewGroup = (FlingViewGroup) v.findViewById(R.id.fling_view_group);
WebView t = (WebView)v.findViewById(R.id.webview);
String revision = Util.readAsset("revision.txt", "Unknown revision");
String revision = getString(R.string.build_revision);
t.loadData(Util.readAsset("licence.htm", "").replace("!COMMITID!",revision), "text/html", "UTF8");
TextView link = (TextView) v.findViewById(R.id.main_link);
......
......@@ -58,9 +58,9 @@ public class NativeCrashActivity extends Activity {
mSendLog.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View v) {
String buildDate = "Build date: " + Util.readAsset("builddate.txt", "Unknown");
String builder = "Builder: " + Util.readAsset("builder.txt", "unknown");
String revision = "Revision: " + Util.readAsset("revision.txt", "Unknown revision");
String buildDate = "Build date: " + getString(R.string.build_time);
String builder = "Builder: " + getString(R.string.build_host);
String revision = "Revision: " + getString(R.string.build_revision);
AsyncHttpRequest asyncHttpRequest = new AsyncHttpRequest();
asyncHttpRequest.execute(Build.BRAND, Build.MANUFACTURER, Build.PRODUCT, Build.MODEL,
Build.DEVICE, Build.VERSION.RELEASE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment