ProfileActivity: Do not use onClick for menus
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -2,6 +2,7 @@ package com.wireguard.android;
|
||||
|
||||
import android.app.Fragment;
|
||||
import android.os.Bundle;
|
||||
import android.view.MenuItem;
|
||||
|
||||
/**
|
||||
* Activity that allows viewing information about a single WireGuard profile.
|
||||
@@ -16,4 +17,14 @@ public class ProfileDetailActivity extends ProfileActivity {
|
||||
Fragment detailFragment = getFragmentManager().findFragmentByTag(TAG_DETAIL);
|
||||
((ProfileDetailFragment) detailFragment).setProfile(getCurrentProfile());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMenuEdit(MenuItem item) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMenuSave(MenuItem item) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user