Commit afe23868d7886948abec02f1b24aaf654737e575
1 parent
5e4dee10
Fix orientation bug
Handle manually orientation change in PositioningActivity, fix to portatrait in Calibration.
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
app/src/main/AndroidManifest.xml
@@ -6,13 +6,15 @@ | @@ -6,13 +6,15 @@ | ||
6 | <application | 6 | <application |
7 | android:allowBackup="true" | 7 | android:allowBackup="true" |
8 | android:icon="@drawable/map_marker" | 8 | android:icon="@drawable/map_marker" |
9 | + android:roundIcon="@drawable/map_marker" | ||
9 | android:label="@string/app_name" | 10 | android:label="@string/app_name" |
10 | - android:roundIcon="@mipmap/ic_launcher_round" | ||
11 | android:supportsRtl="true" | 11 | android:supportsRtl="true" |
12 | android:theme="@style/AppTheme"> | 12 | android:theme="@style/AppTheme"> |
13 | <activity | 13 | <activity |
14 | android:name=".Calibration" | 14 | android:name=".Calibration" |
15 | android:label="@string/app_name" | 15 | android:label="@string/app_name" |
16 | + android:configChanges="orientation" | ||
17 | + android:screenOrientation="portrait" | ||
16 | android:theme="@style/AppTheme.NoActionBar"> | 18 | android:theme="@style/AppTheme.NoActionBar"> |
17 | <intent-filter> | 19 | <intent-filter> |
18 | <action android:name="android.intent.action.MAIN" /> | 20 | <action android:name="android.intent.action.MAIN" /> |
@@ -27,6 +29,7 @@ | @@ -27,6 +29,7 @@ | ||
27 | <activity | 29 | <activity |
28 | android:name=".PositioningActivity" | 30 | android:name=".PositioningActivity" |
29 | android:label="@string/title_activity_positioning" | 31 | android:label="@string/title_activity_positioning" |
32 | + android:configChanges="orientation|screenSize" | ||
30 | android:theme="@style/AppTheme.NoActionBar" > | 33 | android:theme="@style/AppTheme.NoActionBar" > |
31 | </activity> | 34 | </activity> |
32 | </application> | 35 | </application> |