File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
java/com/firebase/uidemo/auth Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 8
8
<uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
9
9
10
10
<application
11
- android : name =" .auth.LeakCatcher "
11
+ android : name =" .auth.FirebaseUIDemo "
12
12
android : allowBackup =" true"
13
13
android : fullBackupContent =" true"
14
14
android : icon =" @mipmap/ic_launcher"
Original file line number Diff line number Diff line change 2
2
3
3
import android .app .Application ;
4
4
import android .content .Context ;
5
+ import android .support .v7 .app .AppCompatDelegate ;
5
6
6
7
import com .squareup .leakcanary .LeakCanary ;
7
8
import com .squareup .leakcanary .RefWatcher ;
8
9
9
- public class LeakCatcher extends Application {
10
+ public class FirebaseUIDemo extends Application {
10
11
private RefWatcher mRefWatcher ;
11
12
13
+ static {
14
+ AppCompatDelegate .setDefaultNightMode (AppCompatDelegate .MODE_NIGHT_AUTO );
15
+ }
16
+
12
17
public static RefWatcher getRefWatcher (Context context ) {
13
- return ((LeakCatcher ) context .getApplicationContext ()).mRefWatcher ;
18
+ return ((FirebaseUIDemo ) context .getApplicationContext ()).mRefWatcher ;
14
19
}
15
20
16
21
@ Override
Original file line number Diff line number Diff line change 1
1
<resources >
2
2
3
3
<!-- Base application theme. -->
4
- <style name =" AppTheme" parent =" Theme.AppCompat.Light .DarkActionBar" >
4
+ <style name =" AppTheme" parent =" Theme.AppCompat.DayNight .DarkActionBar" >
5
5
<item name =" colorPrimary" >@color/colorPrimary</item >
6
6
<item name =" colorPrimaryDark" >@color/colorPrimaryDark</item >
7
7
<item name =" colorAccent" >@color/colorAccent</item >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<resources xmlns : tools =" http://schemas.android.com/tools" >
3
3
4
- <style name =" FirebaseUI" parent =" Theme.AppCompat.Light .DarkActionBar" >
4
+ <style name =" FirebaseUI" parent =" Theme.AppCompat.DayNight .DarkActionBar" >
5
5
<item name =" colorPrimary" >@color/colorPrimary</item >
6
6
<item name =" colorPrimaryDark" >@color/colorPrimaryDark</item >
7
7
<item name =" colorAccent" >@color/colorAccent</item >
You can’t perform that action at this time.
0 commit comments