File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
java/com/programminghoch10/RotationControl Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import androidx.preference.Preference
7
7
import androidx.preference.PreferenceCategory
8
8
import androidx.preference.PreferenceFragmentCompat
9
9
10
- val ROTATION_MODE_DEFAULT = ROTATION_MODE .SCREEN_ORIENTATION_FULL_SENSOR
10
+ val ROTATION_MODE_DEFAULT = ROTATION_MODE .SCREEN_ORIENTATION_SENSOR
11
11
const val SHARED_PREFERENCES_NAME = " rotation_mode"
12
12
13
13
class SettingsActivity : FragmentActivity () {
Original file line number Diff line number Diff line change 1
1
<PreferenceScreen xmlns : app =" http://schemas.android.com/apk/res-auto" >
2
2
3
- <PreferenceCategory
4
- app : title =" @string/category_rewrite" >
3
+ <PreferenceCategory app : title =" @string/category_rewrite" >
5
4
<SwitchPreference
6
5
app : key =" rewrite_locked_orientations"
7
6
app : title =" @string/rewrite_locked_orientations_title"
8
7
app : summary =" @string/rewrite_locked_orientations_summary"
9
8
app : defaultValue =" false"
10
9
app : disableDependentsState =" true" />
11
-
10
+
12
11
<SwitchPreference
13
12
app : key =" rewrite_sensor_orientations"
14
13
app : title =" @string/rewrite_sensor_orientation_title"
15
14
app : summary =" @string/rewrite_sensor_orientations_summary"
16
15
app : defaultValue =" false"
17
16
app : disableDependentsState =" true" />
18
17
</PreferenceCategory >
19
-
18
+
20
19
<PreferenceCategory
21
20
app : title =" @string/category_rotation_mode"
22
21
app : key =" category_rotation_mode" />
You can’t perform that action at this time.
0 commit comments