Verified Commit b2b7f0f7 authored by Sarath's avatar Sarath
Browse files

[FIX] back button click fix

parent 6a229ba9
......@@ -13,6 +13,7 @@ import android.text.SpannableStringBuilder;
import android.util.Pair;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
......@@ -271,6 +272,14 @@ public class XPUBListActivity extends AppCompatActivity {
return false;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if(item.getItemId() == android.R.id.home) {
finish();
}
return super.onOptionsItemSelected(item);
}
private List<Pair<String,String>> getXPUBS() {
Pair<String,String> pair = null;
......
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