Fix backpressing on GroupManagerActivity

This commit is contained in:
Michael Schättgen 2018-12-17 23:33:13 +01:00
parent 1071192156
commit ec5be68ff2
2 changed files with 15 additions and 1 deletions

View file

@ -1,6 +1,7 @@
package me.impy.aegis.ui;
import android.os.Bundle;
import android.view.MenuItem;
import java.util.TreeSet;
@ -64,4 +65,17 @@ public class GroupManagerActivity extends AegisActivity implements GroupAdapter.
.setNegativeButton(android.R.string.no, null)
.create());
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
onBackPressed();
break;
default:
return super.onOptionsItemSelected(item);
}
return true;
}
}

View file

@ -59,7 +59,7 @@ public class EntryListView extends Fragment implements EntryAdapter.Listener {
int resId = R.anim.layout_animation_fall_down;
LayoutAnimationController animation = AnimationUtils.loadLayoutAnimation(getContext(), resId);
_rvKeyProfiles.setLayoutAnimation(animation);
_refresher = new UiRefresher(new UiRefresher.Listener() {
@Override
public void onRefresh() {