2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 06:05:12 +00:00

override onSupportNavigateUp method to mimic system BACK behaviour

This commit is contained in:
Gobinath A L
2021-10-17 11:32:41 +05:30
parent 065516d3ca
commit 69e29d09e0
9 changed files with 51 additions and 0 deletions

View File

@@ -97,5 +97,11 @@ public class BigscreenActivity extends AppCompatActivity {
}
}
}
@Override
public boolean onSupportNavigateUp() {
super.onBackPressed();
return true;
}
}

View File

@@ -365,5 +365,10 @@ public class MousePadActivity extends AppCompatActivity implements GestureDetect
imm.toggleSoftInputFromWindow(keyListenerView.getWindowToken(), 0, 0);
}
@Override
public boolean onSupportNavigateUp() {
super.onBackPressed();
return true;
}
}

View File

@@ -141,4 +141,10 @@ public class MprisActivity extends AppCompatActivity {
}
}
}
@Override
public boolean onSupportNavigateUp() {
super.onBackPressed();
return true;
}
}

View File

@@ -185,5 +185,10 @@ public class PresenterActivity extends AppCompatActivity implements SensorEventL
};
}
@Override
public boolean onSupportNavigateUp() {
super.onBackPressed();
return true;
}
}

View File

@@ -146,4 +146,10 @@ public class RunCommandActivity extends AppCompatActivity {
BackgroundService.RunWithPlugin(this, deviceId, RunCommandPlugin.class, plugin -> plugin.removeCommandsUpdatedCallback(commandsChangedCallback));
}
@Override
public boolean onSupportNavigateUp() {
super.onBackPressed();
return true;
}
}

View File

@@ -45,4 +45,9 @@ class AboutKDEActivity : AppCompatActivity() {
@Suppress("DEPRECATION") Html.fromHtml(html)
}
}
override fun onSupportNavigateUp(): Boolean {
super.onBackPressed()
return true
}
}

View File

@@ -223,4 +223,10 @@ public class CustomDevicesActivity extends AppCompatActivity implements CustomDe
this.position = position;
}
}
@Override
public boolean onSupportNavigateUp() {
super.onBackPressed();
return true;
}
}

View File

@@ -110,6 +110,12 @@ public class PluginSettingsActivity
}
@Override
public boolean onSupportNavigateUp() {
super.onBackPressed();
return true;
}
@Override
public void onFinish() {
finish();

View File

@@ -137,4 +137,10 @@ public class TrustedNetworksActivity extends AppCompatActivity {
}
}
@Override
public boolean onSupportNavigateUp() {
super.onBackPressed();
return true;
}
}