File tree 5 files changed +12
-6
lines changed
app/src/main/java/de/jonasrottmann/realmsample
java/de/jonasrottmann/realmbrowser
5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ public void onCreate() {
13
13
super .onCreate ();
14
14
Timber .plant (new Timber .DebugTree ());
15
15
16
+ Realm .init (this );
16
17
RealmConfiguration config = new RealmConfiguration .Builder ()
17
18
.name (REALM_FILE_NAME )
18
19
.deleteRealmIfMigrationNeeded ()
19
20
.build ();
20
21
21
22
Realm .setDefaultConfiguration (config );
22
23
}
23
- }
24
+ }
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
- package =" de.jonasrottmann.realmbrowser" >
3
+ package =" de.jonasrottmann.realmbrowser" >
4
4
5
5
<application >
6
6
<activity
7
7
android : name =" .RealmFilesActivity"
8
8
android : label =" @string/realm_browser_title"
9
- android : theme =" @style/realm_browser_BaseTheme.Theme" />
9
+ android : theme =" @style/realm_browser_BaseTheme.Theme" />
10
10
<activity
11
11
android : name =" .RealmModelsActivity"
12
12
android : label =" @string/realm_browser_title"
13
- android : theme =" @style/realm_browser_BaseTheme.Theme" />
13
+ android : theme =" @style/realm_browser_BaseTheme.Theme" />
14
14
<activity
15
15
android : name =" .RealmObjectActivity"
16
16
android : label =" @string/realm_browser_title"
17
17
android : theme =" @style/realm_browser_BaseTheme.Theme"
18
- android : windowSoftInputMode =" adjustResize" />
18
+ android : windowSoftInputMode =" adjustResize" />
19
19
<activity
20
20
android : name =" .RealmBrowserActivity"
21
21
android : label =" @string/realm_browser_title"
22
- android : theme =" @style/realm_browser_BaseTheme.DrawerTheme" />
22
+ android : theme =" @style/realm_browser_BaseTheme.DrawerTheme" />
23
23
</application >
24
24
25
25
</manifest >
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ protected void onCreate(Bundle savedInstanceState) {
53
53
ignoreExtensionList .add (".log_b" );
54
54
ignoreExtensionList .add (".lock" );
55
55
ignoreExtensionList .add (".management" );
56
+ ignoreExtensionList .add (".temp" );
56
57
57
58
File dataDir = new File (getApplicationInfo ().dataDir , "files" );
58
59
File [] files = dataDir .listFiles ();
Original file line number Diff line number Diff line change
1
+ <resources >
2
+ <dimen name =" realm_browser_activity_margin" >16dp</dimen >
3
+ </resources >
Original file line number Diff line number Diff line change
1
+ <resources ></resources >
You can’t perform that action at this time.
0 commit comments