Переглянути джерело

disable porthack deployment if device isn't rooted

Fabio Arnold 9 роки тому
батько
коміт
2cec600fd1

+ 1 - 0
src/de/tudarmstadt/informatik/hostage/ui/fragment/SettingsFragment.java

@@ -44,6 +44,7 @@ public class SettingsFragment extends UpNavigatibleFragment {
 				updatePorthackStatus();
 			}
 		});
+		porthackButton.setEnabled(Device.isRooted()); // we're only able to deploy if the device is rooted
 
 		return v;
 	}