Moving classes to helpers/

This commit is contained in:
anonTree1417 2020-03-31 16:44:11 +02:00
parent e1ccb4e404
commit d2190ad189
8 changed files with 21 additions and 19 deletions

View File

@ -73,7 +73,7 @@
<activity android:name=".activities.CreateOrganizationActivity" />
<activity android:name=".activities.OpenRepoInBrowserActivity" />
<activity android:name=".activities.FileDiffActivity" />
<activity android:name=".ssl.MemorizingActivity" android:theme="@android:style/Theme.Material.NoActionBar.TranslucentDecor" />
<activity android:name=".helpers.MemorizingActivity" android:theme="@android:style/Theme.Material.NoActionBar.TranslucentDecor" />
</application>
</manifest>

View File

@ -3,7 +3,7 @@ package org.mian.gitnex.clients;
import android.content.Context;
import android.util.Log;
import androidx.annotation.NonNull;
import org.mian.gitnex.ssl.MemorizingTrustManager;
import org.mian.gitnex.helpers.MemorizingTrustManager;
import org.mian.gitnex.util.AppUtil;
import java.io.File;
import java.io.IOException;

View File

@ -3,7 +3,7 @@ package org.mian.gitnex.clients;
import android.content.Context;
import android.util.Log;
import androidx.annotation.NonNull;
import org.mian.gitnex.ssl.MemorizingTrustManager;
import org.mian.gitnex.helpers.MemorizingTrustManager;
import org.mian.gitnex.util.AppUtil;
import java.io.File;
import java.io.IOException;

View File

@ -3,7 +3,7 @@ package org.mian.gitnex.clients;
import android.content.Context;
import android.util.Log;
import org.mian.gitnex.interfaces.ApiInterface;
import org.mian.gitnex.ssl.MemorizingTrustManager;
import org.mian.gitnex.helpers.MemorizingTrustManager;
import org.mian.gitnex.util.AppUtil;
import java.io.File;
import java.security.SecureRandom;

View File

@ -0,0 +1,14 @@
package org.mian.gitnex.helpers;
/**
* Author Georg Lukas, modified by anonTree1417
*/
class MTMDecision {
final static int DECISION_INVALID = 0;
final static int DECISION_ABORT = 1;
final static int DECISION_ONCE = 2;
final static int DECISION_ALWAYS = 3;
int state = DECISION_INVALID;
}

View File

@ -1,4 +1,4 @@
package org.mian.gitnex.ssl;
package org.mian.gitnex.helpers;
import android.app.Activity;
import android.app.AlertDialog;
@ -9,6 +9,7 @@ import org.mian.gitnex.R;
/**
* Author Georg Lukas, modified by anonTree1417
*/
public class MemorizingActivity extends Activity {
@Override

View File

@ -1,4 +1,4 @@
package org.mian.gitnex.ssl;
package org.mian.gitnex.helpers;
import android.annotation.TargetApi;
import android.app.Activity;

View File

@ -1,13 +0,0 @@
package org.mian.gitnex.ssl;
/**
* Author Georg Lukas, modified by anonTree1417
*/
class MTMDecision {
public final static int DECISION_INVALID = 0;
public final static int DECISION_ABORT = 1;
public final static int DECISION_ONCE = 2;
public final static int DECISION_ALWAYS = 3;
int state = DECISION_INVALID;
}