Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 923edf97 authored by Justin Klaassen's avatar Justin Klaassen
Browse files

Handle android.R.id.home clicks in Licenses activity

Bug: 21052927
Change-Id: I4916d159f3b98966cddae0cb27468df6ea2ffd76
parent e2c40a57
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ package com.android.calculator2;

import android.app.Activity;
import android.os.Bundle;
import android.view.MenuItem;
import android.webkit.WebView;

public class Licenses extends Activity {
@@ -17,4 +18,13 @@ public class Licenses extends Activity {

        setContentView(webView);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        if (item.getItemId() == android.R.id.home) {
            onBackPressed();
            return true;
        }
        return super.onOptionsItemSelected(item);
    }
}