Merge pull request #2512 from nextcloud/2507-bugfix-intentmode

Preferences: Don't start FileDisplayActivity when pressing the back button
This commit is contained in:
Andy Scherzinger 2018-04-26 17:57:50 +02:00 committed by GitHub
commit ab3230775a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -838,24 +838,6 @@ public class Preferences extends PreferenceActivity
return true;
}
@Override
public boolean onMenuItemSelected(int featureId, MenuItem item) {
super.onMenuItemSelected(featureId, item);
Intent intent;
switch (item.getItemId()) {
case android.R.id.home:
intent = new Intent(getBaseContext(), FileDisplayActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
break;
default:
Log_OC.w(TAG, "Unknown menu item triggered");
return false;
}
return true;
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);