Skip to content

Commit 082caf8

Browse files
fix constraints on iOS splash storyboard and force DarkTheme at MainActivity init on Android
1 parent bc2672f commit 082caf8

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

android/app/src/main/java/im/status/ethereum/MainActivity.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,7 @@ public void onNewIntent(final Intent intent) {
125125
@Override
126126
protected void onCreate(Bundle savedInstanceState) {
127127
SplashScreen splashScreen = SplashScreen.installSplashScreen(this);
128-
129-
switch (getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK) {
130-
case Configuration.UI_MODE_NIGHT_YES:
131-
setTheme(R.style.DarkTheme);
132-
break;
133-
case Configuration.UI_MODE_NIGHT_NO:
134-
setTheme(R.style.LightTheme);
135-
break;
136-
default:
137-
setTheme(R.style.LightTheme);
138-
}
128+
setTheme(R.style.DarkTheme);
139129
// Make sure we get an Alert for every uncaught exceptions
140130
registerUncaughtExceptionHandler(MainActivity.this);
141131

ios/launch-image-universal.storyboard

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,19 @@
1717
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
1818
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1919
<subviews>
20-
<imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="launch-icon.png" translatesAutoresizingMaskIntoConstraints="NO" id="cqW-9w-FC0">
21-
<rect key="frame" x="-1" y="-1" width="376" height="666"/>
22-
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
20+
<imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch-icon.png" translatesAutoresizingMaskIntoConstraints="NO" id="cqW-9w-FC0">
21+
<rect key="frame" x="0.0" y="1" width="376" height="666"/>
2322
<color key="backgroundColor" red="0.035294117647058823" green="0.062745098039215685" blue="0.10980392156862745" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2423
</imageView>
2524
</subviews>
2625
<viewLayoutGuide key="safeArea" id="2aN-f8-qiu"/>
2726
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
27+
<constraints>
28+
<constraint firstItem="cqW-9w-FC0" firstAttribute="centerX" secondItem="2aN-f8-qiu" secondAttribute="centerX" id="ZQS-4G-GAL"/>
29+
<constraint firstAttribute="width" secondItem="cqW-9w-FC0" secondAttribute="width" multiplier="0.99734" id="jsZ-PI-blw"/>
30+
<constraint firstAttribute="height" secondItem="cqW-9w-FC0" secondAttribute="height" multiplier="1.0015" id="mKf-1d-m1w"/>
31+
<constraint firstItem="cqW-9w-FC0" firstAttribute="centerY" secondItem="2aN-f8-qiu" secondAttribute="centerY" id="noT-Rj-8Uy"/>
32+
</constraints>
2833
</view>
2934
</viewController>
3035
<placeholder placeholderIdentifier="IBFirstResponder" id="hOp-FG-FML" userLabel="First Responder" sceneMemberID="firstResponder"/>

0 commit comments

Comments
 (0)