Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
scorpio
packages_apps_Launcher3
Commits
746f313e
Commit
746f313e
authored
7 years ago
by
Mark Stevens
Browse files
Options
Download
Email Patches
Plain Diff
set launcher orientation to landscape
parent
bedcb04b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/com/android/launcher3/Launcher.java
src/com/android/launcher3/Launcher.java
+4
-2
No files found.
src/com/android/launcher3/Launcher.java
View file @
746f313e
...
...
@@ -389,8 +389,10 @@ public class Launcher extends Activity
if
(
mRotationEnabled
)
{
unlockScreenOrientation
(
true
);
}
else
{
// setRequestedOrientation(
// ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);
setRequestedOrientation
(
ActivityInfo
.
SCREEN_ORIENTATION_
NOSENSOR
);
ActivityInfo
.
SCREEN_ORIENTATION_
LANDSCAPE
);
}
}
...
...
@@ -428,7 +430,7 @@ public class Launcher extends Activity
// Load configuration-specific DeviceProfile
mDeviceProfile
=
getResources
().
getConfiguration
().
orientation
==
Configuration
.
ORIENTATION_LANDSCAPE
?
==
Configuration
.
ORIENTATION_LANDSCAPE
||
true
?
app
.
getInvariantDeviceProfile
().
landscapeProfile
:
app
.
getInvariantDeviceProfile
().
portraitProfile
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment