ImportKeys: Restore NonInteractive behavior
Hides container of buttons when NonInteractive is enabled. In this way user can't interact with the list.
This commit is contained in:
1 parent
e4fe1e95fb
commit
d947db2569
2 files changed
+7
-3
No files matched your search
+3
-2
@@ -114,12 +114,13 @@ public class ImportKeysAdapter extends RecyclerView.Adapter<ImportKeysAdapter.Vi
|
||||
return result;
|
||||
}
|
||||
|
||||
public static class ViewHolder extends RecyclerView.ViewHolder {
|
||||
public class ViewHolder extends RecyclerView.ViewHolder {
|
||||
public ImportKeysListItemBinding binding;
|
||||
|
||||
public ViewHolder(View view) {
|
||||
super(view);
|
||||
binding = DataBindingUtil.bind(view);
|
||||
binding.setNonInteractive(mNonInteractive);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,7 +179,7 @@ public class ImportKeysAdapter extends RecyclerView.Adapter<ImportKeysAdapter.Vi
|
||||
b.expand.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
boolean downloaded = mDownloaded[position] = !mDownloaded[position];
|
||||
boolean downloaded = mDownloaded[position] = !mDownloaded[position];
|
||||
b.extraContainer.setVisibility(downloaded ? View.VISIBLE : View.GONE);
|
||||
b.expand.animate().rotation(downloaded ? 180 : 0).start();
|
||||
|
||||
|
||||
Reference in new issue
Block a user