Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
apk
Commits
4d5b43f6
Commit
4d5b43f6
authored
Sep 24, 2014
by
DrKLO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed isTablet check
parent
3eed85a3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
2 deletions
+18
-2
build.gradle
TMessagesProj/build.gradle
+1
-1
AndroidUtilities.java
.../src/main/java/org/telegram/android/AndroidUtilities.java
+5
-1
values.xml
TMessagesProj/src/main/res/values-sw600dp/values.xml
+4
-0
values.xml
TMessagesProj/src/main/res/values-sw720dp/values.xml
+4
-0
values.xml
TMessagesProj/src/main/res/values/values.xml
+4
-0
No files found.
TMessagesProj/build.gradle
View file @
4d5b43f6
...
...
@@ -80,7 +80,7 @@ android {
defaultConfig
{
minSdkVersion
8
targetSdkVersion
19
versionCode
32
7
versionCode
32
8
versionName
"1.9.0"
}
}
TMessagesProj/src/main/java/org/telegram/android/AndroidUtilities.java
View file @
4d5b43f6
...
...
@@ -41,6 +41,7 @@ public class AndroidUtilities {
public
static
int
statusBarHeight
=
0
;
public
static
float
density
=
1
;
public
static
Point
displaySize
=
new
Point
();
private
static
Boolean
isTablet
=
null
;
public
static
int
[]
arrColors
=
{
0xffee4928
,
0xff41a903
,
0xffe09602
,
0xff0f94ed
,
0xff8f3bf7
,
0xfffc4380
,
0xff00a1c4
,
0xffeb7002
};
public
static
int
[]
arrUsersAvatars
=
{
...
...
@@ -268,7 +269,10 @@ public class AndroidUtilities {
}
public
static
boolean
isTablet
()
{
return
(
ApplicationLoader
.
applicationContext
.
getResources
().
getConfiguration
().
screenLayout
&
Configuration
.
SCREENLAYOUT_SIZE_MASK
)
>=
Configuration
.
SCREENLAYOUT_SIZE_LARGE
;
if
(
isTablet
==
null
)
{
isTablet
=
ApplicationLoader
.
applicationContext
.
getResources
().
getBoolean
(
R
.
bool
.
isTablet
);
}
return
isTablet
;
}
public
static
int
getColorIndex
(
int
id
)
{
...
...
TMessagesProj/src/main/res/values-sw600dp/values.xml
0 → 100644
View file @
4d5b43f6
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool
name=
"isTablet"
>
true
</bool>
</resources>
\ No newline at end of file
TMessagesProj/src/main/res/values-sw720dp/values.xml
0 → 100644
View file @
4d5b43f6
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool
name=
"isTablet"
>
true
</bool>
</resources>
\ No newline at end of file
TMessagesProj/src/main/res/values/values.xml
0 → 100644
View file @
4d5b43f6
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool
name=
"isTablet"
>
false
</bool>
</resources>
\ No newline at end of file
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