Fixed id offset, minor changes.
This commit is contained in:
committed by
Dominik Schürmann
parent
ca67c52aa0
commit
5cb9de01ad
@@ -179,6 +179,7 @@ public class SelectSignKeyIdListFragment extends RecyclerFragment<SelectSignKeyA
|
|||||||
mApiDao.addAllowedKeyIdForApp(allowedKeysUri, masterKeyId);
|
mApiDao.addAllowedKeyIdForApp(allowedKeysUri, masterKeyId);
|
||||||
mResult.putExtra(OpenPgpApi.EXTRA_SIGN_KEY_ID, masterKeyId);
|
mResult.putExtra(OpenPgpApi.EXTRA_SIGN_KEY_ID, masterKeyId);
|
||||||
|
|
||||||
|
Log.d(Constants.TAG, "allowedKeyId: " + masterKeyId);
|
||||||
Log.d(Constants.TAG, "allowedKeysUri: " + allowedKeysUri);
|
Log.d(Constants.TAG, "allowedKeysUri: " + allowedKeysUri);
|
||||||
|
|
||||||
getActivity().setResult(Activity.RESULT_OK, mResult);
|
getActivity().setResult(Activity.RESULT_OK, mResult);
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ public class SelectSignKeyAdapter extends KeyCursorAdapter<CursorAdapter.KeyCurs
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getItemId(int pos) {
|
public long getItemId(int pos) {
|
||||||
if(pos < (super.getItemCount() - 1)) {
|
if(pos < super.getItemCount()) {
|
||||||
return super.getItemId(pos);
|
return super.getItemId(pos);
|
||||||
} else {
|
} else {
|
||||||
return 0L;
|
return RecyclerView.NO_ID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ public abstract class KeyCursorAdapter<C extends CursorAdapter.KeyCursor, VH ext
|
|||||||
|
|
||||||
public KeyCursorAdapter(Context context, C cursor){
|
public KeyCursorAdapter(Context context, C cursor){
|
||||||
super(context, cursor, 0);
|
super(context, cursor, 0);
|
||||||
|
setHasStableIds(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setQuery(String query) {
|
public void setQuery(String query) {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||||
android:paddingLeft="4dp"
|
android:paddingLeft="4dp"
|
||||||
android:paddingRight="?android:attr/scrollbarSize"
|
android:paddingRight="?android:attr/scrollbarSize"
|
||||||
|
android:background="?android:selectableItemBackground"
|
||||||
android:maxLines="1">
|
android:maxLines="1">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|||||||
Reference in New Issue
Block a user