Harmonize C/Java code more, WIP crypt/derive in Java.
This commit is contained in:
		@@ -54,7 +54,7 @@ public class EmergencyActivity extends Activity {
 | 
			
		||||
 | 
			
		||||
    private final Preferences                      preferences    = Preferences.get( this );
 | 
			
		||||
    private final ListeningExecutorService         executor       = MoreExecutors.listeningDecorator( Executors.newSingleThreadExecutor() );
 | 
			
		||||
    private final ImmutableList<MPResultType>      allResultTypes = ImmutableList.copyOf( MPResultType.forClass( MPResultTypeClass.Generated ) );
 | 
			
		||||
    private final ImmutableList<MPResultType>      allResultTypes = ImmutableList.copyOf( MPResultType.forClass( MPResultTypeClass.Template ) );
 | 
			
		||||
    private final ImmutableList<MasterKey.Version> allVersions    = ImmutableList.copyOf( MasterKey.Version.values() );
 | 
			
		||||
 | 
			
		||||
    private ListenableFuture<MasterKey> masterKeyFuture;
 | 
			
		||||
@@ -332,7 +332,7 @@ public class EmergencyActivity extends Activity {
 | 
			
		||||
            @Override
 | 
			
		||||
            public void run() {
 | 
			
		||||
                try {
 | 
			
		||||
                    sitePassword = masterKeyFuture.get().siteResult( siteName, counter, MPKeyPurpose.Password, null, type, null );
 | 
			
		||||
                    sitePassword = masterKeyFuture.get().siteResult( siteName, counter, MPKeyPurpose.Authentication, null, type, null );
 | 
			
		||||
 | 
			
		||||
                    runOnUiThread( new Runnable() {
 | 
			
		||||
                        @Override
 | 
			
		||||
 
 | 
			
		||||
@@ -148,7 +148,7 @@ public final class Preferences {
 | 
			
		||||
 | 
			
		||||
    @Nonnull
 | 
			
		||||
    public MPResultType getDefaultResultType() {
 | 
			
		||||
        return MPResultType.values()[prefs().getInt( PREF_RESULT_TYPE, MPResultType.GeneratedLong.ordinal() )];
 | 
			
		||||
        return MPResultType.values()[prefs().getInt( PREF_RESULT_TYPE, MPResultType.DEFAULT.ordinal() )];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public boolean setDefaultVersion(final MasterKey.Version value) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user