mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Use the game title as the context menu header
This commit is contained in:
@@ -389,6 +389,9 @@ public class AppView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
|
|
||||||
AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
|
AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
|
||||||
AppObject selectedApp = (AppObject) appGridAdapter.getItem(info.position);
|
AppObject selectedApp = (AppObject) appGridAdapter.getItem(info.position);
|
||||||
|
|
||||||
|
menu.setHeaderTitle(selectedApp.app.getAppName());
|
||||||
|
|
||||||
if (lastRunningAppId != 0) {
|
if (lastRunningAppId != 0) {
|
||||||
if (lastRunningAppId == selectedApp.app.getAppId()) {
|
if (lastRunningAppId == selectedApp.app.getAppId()) {
|
||||||
menu.add(Menu.NONE, START_OR_RESUME_ID, 1, getResources().getString(R.string.applist_menu_resume));
|
menu.add(Menu.NONE, START_OR_RESUME_ID, 1, getResources().getString(R.string.applist_menu_resume));
|
||||||
|
|||||||
Reference in New Issue
Block a user