mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-18 06:41:13 +00:00
Monkey-proof Moonlight
This commit is contained in:
@@ -28,6 +28,7 @@ import com.limelight.utils.ShortcutHelper;
|
|||||||
import com.limelight.utils.UiHelper;
|
import com.limelight.utils.UiHelper;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
import android.app.ActivityManager;
|
||||||
import android.app.Service;
|
import android.app.Service;
|
||||||
import android.content.ComponentName;
|
import android.content.ComponentName;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
@@ -560,6 +561,10 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
case DELETE_ID:
|
case DELETE_ID:
|
||||||
|
if (ActivityManager.isUserAMonkey()) {
|
||||||
|
LimeLog.info("Ignoring delete PC request from monkey");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (managerBinder == null) {
|
if (managerBinder == null) {
|
||||||
Toast.makeText(PcView.this, getResources().getString(R.string.error_manager_not_running), Toast.LENGTH_LONG).show();
|
Toast.makeText(PcView.this, getResources().getString(R.string.error_manager_not_running), Toast.LENGTH_LONG).show();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
+1
-1
Submodule moonlight-common updated: 165a518adb...defd6fb14f
Reference in New Issue
Block a user