We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f919d7 commit b0c3696Copy full SHA for b0c3696
src/oly/netpowerctrl/DeviceControl.java
@@ -116,6 +116,15 @@ protected void onPause() {
116
super.onPause();
117
}
118
119
+ @Override
120
+ public void onBackPressed() {
121
+ // always go back to the main activity, or we may have to
122
+ // traverse endless DeviceConfig Activities from widgets
123
+ Intent it = new Intent(this, NetpowerctrlActivity.class);
124
+ startActivity(it);
125
+ super.onBackPressed();
126
+ }
127
+
128
@SuppressLint("NewApi")
129
@Override
130
public boolean onCreateOptionsMenu(Menu menu) {
0 commit comments