linked-ids: small compatibility changes
This commit is contained in:
@@ -70,7 +70,8 @@ public abstract class LinkedTokenResource extends LinkedResource {
|
|||||||
|
|
||||||
protected static LinkedTokenResource fromUri (URI uri) {
|
protected static LinkedTokenResource fromUri (URI uri) {
|
||||||
|
|
||||||
if (!"openpgpid+token".equals(uri.getScheme())) {
|
if (!"openpgpid+token".equals(uri.getScheme())
|
||||||
|
&& !"openpgpid+cookie".equals(uri.getScheme())) {
|
||||||
Log.e(Constants.TAG, "unknown uri scheme in (suspected) linked id packet");
|
Log.e(Constants.TAG, "unknown uri scheme in (suspected) linked id packet");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -457,7 +457,7 @@ public class LinkedIdViewFragment extends CryptoOperationFragment implements
|
|||||||
@Override
|
@Override
|
||||||
protected LinkedVerifyResult doInBackground(Void... params) {
|
protected LinkedVerifyResult doInBackground(Void... params) {
|
||||||
long timer = System.currentTimeMillis();
|
long timer = System.currentTimeMillis();
|
||||||
LinkedVerifyResult result = mLinkedResource.verify(mFingerprint);
|
LinkedVerifyResult result = mLinkedResource.verify(getActivity(), mFingerprint);
|
||||||
|
|
||||||
// ux flow: this operation should take at last a second
|
// ux flow: this operation should take at last a second
|
||||||
timer = System.currentTimeMillis() -timer;
|
timer = System.currentTimeMillis() -timer;
|
||||||
|
|||||||
@@ -91,6 +91,7 @@
|
|||||||
android:paddingRight="8dp"
|
android:paddingRight="8dp"
|
||||||
android:background="?android:selectableItemBackground"
|
android:background="?android:selectableItemBackground"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
tools:visibility="visible"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user