Skip to content

Commit 937778d

Browse files
change default RotationControl orientation mode to SENSOR
1 parent 0fa076d commit 937778d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

RotationControl/src/main/java/com/programminghoch10/RotationControl/SettingsActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import androidx.preference.Preference
77
import androidx.preference.PreferenceCategory
88
import androidx.preference.PreferenceFragmentCompat
99

10-
val ROTATION_MODE_DEFAULT = ROTATION_MODE.SCREEN_ORIENTATION_FULL_SENSOR
10+
val ROTATION_MODE_DEFAULT = ROTATION_MODE.SCREEN_ORIENTATION_SENSOR
1111
const val SHARED_PREFERENCES_NAME = "rotation_mode"
1212

1313
class SettingsActivity : FragmentActivity() {

RotationControl/src/main/res/xml/root_preferences.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
22

3-
<PreferenceCategory
4-
app:title="@string/category_rewrite">
3+
<PreferenceCategory app:title="@string/category_rewrite">
54
<SwitchPreference
65
app:key="rewrite_locked_orientations"
76
app:title="@string/rewrite_locked_orientations_title"
87
app:summary="@string/rewrite_locked_orientations_summary"
98
app:defaultValue="false"
109
app:disableDependentsState="true" />
11-
10+
1211
<SwitchPreference
1312
app:key="rewrite_sensor_orientations"
1413
app:title="@string/rewrite_sensor_orientation_title"
1514
app:summary="@string/rewrite_sensor_orientations_summary"
1615
app:defaultValue="false"
1716
app:disableDependentsState="true" />
1817
</PreferenceCategory>
19-
18+
2019
<PreferenceCategory
2120
app:title="@string/category_rotation_mode"
2221
app:key="category_rotation_mode" />

0 commit comments

Comments
 (0)