Skip to content

Commit 71b17ee

Browse files
committed
finish layout change
1 parent b4adafb commit 71b17ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+332
-70
lines changed

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dependencies {
3030
implementation 'com.google.android.material:material:1.0.0'
3131
implementation 'net.zetetic:android-database-sqlcipher:4.4.2@aar'
3232
implementation "androidx.sqlite:sqlite:2.0.1"
33+
implementation "androidx.preference:preference:1.1.1"
3334

3435
implementation 'commons-codec:commons-codec:1.15'
3536
}

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<activity
1515
android:name=".VaultActivity"
1616
android:exported="false">
17-
1817
</activity>
1918
<activity
2019
android:name=".ImageViewerActivity"
@@ -31,6 +30,10 @@
3130
<category android:name="android.intent.category.LAUNCHER" />
3231
</intent-filter>
3332
</activity>
33+
<activity android:name=".SettingSection.SettingActivity"/>
34+
<activity android:name=".HelpActivity"/>
35+
<activity android:name=".AboutActivity"/>
36+
3437
<provider
3538
android:name="androidx.core.content.FileProvider"
3639
android:authorities="com.katcom.androidFileVault.fileprovider"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.katcom.androidFileVault;
2+
3+
import androidx.fragment.app.Fragment;
4+
5+
public class AboutActivity extends SingleFragmentActivity {
6+
@Override
7+
protected Fragment createFragment() {
8+
return new AboutFragment();
9+
}
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.katcom.androidFileVault;
2+
3+
import androidx.fragment.app.Fragment;
4+
5+
public class AboutFragment extends Fragment {
6+
}

app/src/main/java/com/katcom/androidFileVault/CloseReceiver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import android.content.Intent;
77

88
/**
9-
* Close the app by killing all activities using broadcast
9+
* This broadcast receiver is used to close the app by killing all activities using broadcast
1010
* Ref:https://blog.csdn.net/totond/article/details/72960211
1111
*/
1212
public class CloseReceiver extends BroadcastReceiver {

app/src/main/java/com/katcom/androidFileVault/CustomedCrypto/CustomCipherInputStream.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@
7171
* @since 1.4
7272
*/
7373

74+
/**
75+
* The CipherInputStream has been overwritten in this project because the original Cipher
76+
* because the buffer size in the original implementation is simply 512 bytes
77+
* which significantly slows down the encryption. The buffer is changed to be 8192 bytes long
78+
* so that the encryption would work faster.
79+
*/
7480
public class CustomCipherInputStream extends FilterInputStream {
7581

7682
// the cipher engine to use to process stream data
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.katcom.androidFileVault;
2+
3+
import androidx.fragment.app.Fragment;
4+
5+
public class HelpActivity extends SingleFragmentActivity {
6+
@Override
7+
protected Fragment createFragment() {
8+
return new HelpFragment();
9+
}
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.katcom.androidFileVault;
2+
3+
import androidx.fragment.app.Fragment;
4+
5+
public class HelpFragment extends Fragment {
6+
}

app/src/main/java/com/katcom/androidFileVault/ImageViewerFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
8585
super.onOptionsItemSelected(item);
8686
switch (item.getItemId()) {
8787
case R.id.menu_image_viewer_export:
88-
export();
88+
showFileExplorerForExport();
8989
break;
9090
case R.id.menu_image_viewer_share:
9191
share();
@@ -94,7 +94,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
9494
return true;
9595
}
9696

97-
private void export() {
97+
private void showFileExplorerForExport() {
9898
Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT);
9999
intent.addCategory(Intent.CATEGORY_OPENABLE);
100100
intent.setType("image/*");

app/src/main/java/com/katcom/androidFileVault/SecureSharePreference/SecureSharePreference.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* The SecureSharePreference is an costumed extension of SharePreference, a light-weight database provided by Android.
2+
* The SecureSharePreference is a custom extension of SharePreference, a light-weight database provided by Android.
33
* SecureSharePreference would encrypt the records before storing it in the database file,
44
* Instead of storing the plain text.
55
*

0 commit comments

Comments
 (0)