mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-24 09:16:39 +00:00
Add GameStream EOL notice for GFE PCs
This commit is contained in:
@@ -118,6 +118,7 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
private final static int VIEW_DETAILS_ID = 8;
|
private final static int VIEW_DETAILS_ID = 8;
|
||||||
private final static int FULL_APP_LIST_ID = 9;
|
private final static int FULL_APP_LIST_ID = 9;
|
||||||
private final static int TEST_NETWORK_ID = 10;
|
private final static int TEST_NETWORK_ID = 10;
|
||||||
|
private final static int GAMESTREAM_EOL_ID = 11;
|
||||||
|
|
||||||
private void initializeViews() {
|
private void initializeViews() {
|
||||||
setContentView(R.layout.activity_pc_view);
|
setContentView(R.layout.activity_pc_view);
|
||||||
@@ -352,9 +353,13 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
if (computer.details.state == ComputerDetails.State.OFFLINE ||
|
if (computer.details.state == ComputerDetails.State.OFFLINE ||
|
||||||
computer.details.state == ComputerDetails.State.UNKNOWN) {
|
computer.details.state == ComputerDetails.State.UNKNOWN) {
|
||||||
menu.add(Menu.NONE, WOL_ID, 1, getResources().getString(R.string.pcview_menu_send_wol));
|
menu.add(Menu.NONE, WOL_ID, 1, getResources().getString(R.string.pcview_menu_send_wol));
|
||||||
|
menu.add(Menu.NONE, GAMESTREAM_EOL_ID, 2, getResources().getString(R.string.pcview_menu_eol));
|
||||||
}
|
}
|
||||||
else if (computer.details.pairState != PairState.PAIRED) {
|
else if (computer.details.pairState != PairState.PAIRED) {
|
||||||
menu.add(Menu.NONE, PAIR_ID, 1, getResources().getString(R.string.pcview_menu_pair_pc));
|
menu.add(Menu.NONE, PAIR_ID, 1, getResources().getString(R.string.pcview_menu_pair_pc));
|
||||||
|
if (computer.details.nvidiaServer) {
|
||||||
|
menu.add(Menu.NONE, GAMESTREAM_EOL_ID, 2, getResources().getString(R.string.pcview_menu_eol));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (computer.details.runningGameId != 0) {
|
if (computer.details.runningGameId != 0) {
|
||||||
@@ -362,6 +367,10 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
menu.add(Menu.NONE, QUIT_ID, 2, getResources().getString(R.string.applist_menu_quit));
|
menu.add(Menu.NONE, QUIT_ID, 2, getResources().getString(R.string.applist_menu_quit));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (computer.details.nvidiaServer) {
|
||||||
|
menu.add(Menu.NONE, GAMESTREAM_EOL_ID, 3, getResources().getString(R.string.pcview_menu_eol));
|
||||||
|
}
|
||||||
|
|
||||||
menu.add(Menu.NONE, FULL_APP_LIST_ID, 4, getResources().getString(R.string.pcview_menu_app_list));
|
menu.add(Menu.NONE, FULL_APP_LIST_ID, 4, getResources().getString(R.string.pcview_menu_app_list));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -657,6 +666,10 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
ServerHelper.doNetworkTest(PcView.this);
|
ServerHelper.doNetworkTest(PcView.this);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case GAMESTREAM_EOL_ID:
|
||||||
|
HelpLauncher.launchGameStreamEolFaq(PcView.this);
|
||||||
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return super.onContextItemSelected(item);
|
return super.onContextItemSelected(item);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,4 +44,8 @@ public class HelpLauncher {
|
|||||||
public static void launchTroubleshooting(Context context) {
|
public static void launchTroubleshooting(Context context) {
|
||||||
launchUrl(context, "https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting");
|
launchUrl(context, "https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void launchGameStreamEolFaq(Context context) {
|
||||||
|
launchUrl(context, "https://github.com/moonlight-stream/moonlight-docs/wiki/NVIDIA-GameStream-End-Of-Service-Announcement-FAQ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<string name="pcview_menu_delete_pc">Delete PC</string>
|
<string name="pcview_menu_delete_pc">Delete PC</string>
|
||||||
<string name="pcview_menu_test_network">Test Network Connection</string>
|
<string name="pcview_menu_test_network">Test Network Connection</string>
|
||||||
<string name="pcview_menu_details">View Details</string>
|
<string name="pcview_menu_details">View Details</string>
|
||||||
|
<string name="pcview_menu_eol">NVIDIA GameStream End-of-Service</string>
|
||||||
|
|
||||||
<!-- Network test strings -->
|
<!-- Network test strings -->
|
||||||
<string name="nettest_title_waiting">Testing Network Connection</string>
|
<string name="nettest_title_waiting">Testing Network Connection</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user