protected void onCreate()

in tools/android-app/app/src/main/java/com/aws/iotfleetwise/AboutActivity.java [21:45]


    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        setResult(Activity.RESULT_CANCELED);
        ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.setDisplayHomeAsUpEnabled(true);
        }

        TextView githubTextView = findViewById(R.id.github);
        githubTextView.setMovementMethod(LinkMovementMethod.getInstance());
        githubTextView.setLinkTextColor(Color.BLUE);

        try {
            InputStream stream = getAssets().open("THIRD-PARTY-LICENSES");
            int size = stream.available();
            byte[] buffer = new byte[size];
            stream.read(buffer);
            stream.close();
            String licenses = new String(buffer);
            EditText editText = findViewById(R.id.licenses);
            editText.setText(licenses);
        } catch (IOException ignored) {
        }
    }