CopyPastor

Detecting plagiarism made easy.

Score: 0.759232759475708; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-01-18
by Farid Haq

Original Post

Original - Posted on 2018-11-11
by gprathour



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Add setDisplayHomeAsUpEnabled(true)
Toolbar toolbar = findViewById(R.id.toolbar); ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayHomeAsUpEnabled(true); }
Handle the back button
public boolean onSupportNavigateUp() { onBackPressed(); return true; }
In Kotlin it would be -----
private fun setupToolbar(){ toolbar.title = getString(R.string.YOUR_TITLE) setSupportActionBar(toolbar) supportActionBar?.setDisplayHomeAsUpEnabled(true) supportActionBar?.setDisplayShowHomeEnabled(true) }
// don't forget click listener for back button override fun onSupportNavigateUp(): Boolean { onBackPressed() return true }

        
Present in both answers; Present only in the new answer; Present only in the old answer;