Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
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
AloqaIM-Android
Commits
8446479c
Unverified
Commit
8446479c
authored
Apr 20, 2018
by
Filipe de Lima Brito
Committed by
GitHub
Apr 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1151 from RocketChat/develop-2.x
Merging develop 2.x into develop
parents
2ab08f40
fab10670
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
40 deletions
+16
-40
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+0
-1
ChatRoomFragment.kt
.../java/chat/rocket/android/chatroom/ui/ChatRoomFragment.kt
+4
-27
strings.xml
app/src/main/res/values-pt-rBR/strings.xml
+6
-6
strings.xml
app/src/main/res/values/strings.xml
+6
-6
No files found.
app/src/main/AndroidManifest.xml
View file @
8446479c
...
...
@@ -5,7 +5,6 @@
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.WAKE_LOCK"
/>
<uses-permission
android:name=
"android.permission.VIBRATE"
/>
<uses-permission
android:name=
"android.permission.READ_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"com.google.android.c2dm.permission.RECEIVE"
/>
<permission
...
...
app/src/main/java/chat/rocket/android/chatroom/ui/ChatRoomFragment.kt
View file @
8446479c
package
chat.rocket.android.chatroom.ui
import
android.Manifest
import
android.app.Activity
import
android.content.ClipData
import
android.content.ClipboardManager
import
android.content.Context
import
android.content.Intent
import
android.content.pm.PackageManager
import
android.net.Uri
import
android.os.Bundle
import
android.os.Handler
import
android.support.annotation.DrawableRes
import
android.support.v4.app.ActivityCompat
import
android.support.v4.app.Fragment
import
android.support.v4.content.ContextCompat
import
android.support.v7.widget.DefaultItemAnimator
import
android.support.v7.widget.LinearLayoutManager
import
android.support.v7.widget.RecyclerView
...
...
@@ -468,29 +464,10 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardListener, EmojiR
override
fun
showFileSelection
(
filter
:
Array
<
String
>)
{
ui
{
if
(
ContextCompat
.
checkSelfPermission
(
it
,
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
)
!=
PackageManager
.
PERMISSION_GRANTED
)
{
ActivityCompat
.
requestPermissions
(
it
,
arrayOf
(
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
),
1
)
}
else
{
val
intent
=
Intent
(
Intent
.
ACTION_GET_CONTENT
)
intent
.
type
=
"*/*"
intent
.
putExtra
(
Intent
.
EXTRA_MIME_TYPES
,
filter
)
startActivityForResult
(
intent
,
REQUEST_CODE_FOR_PERFORM_SAF
)
}
}
}
override
fun
onRequestPermissionsResult
(
requestCode
:
Int
,
permissions
:
Array
<
out
String
>,
grantResults
:
IntArray
)
{
when
(
requestCode
)
{
1
->
{
if
(!(
grantResults
.
isNotEmpty
()
&&
grantResults
.
first
()
==
PackageManager
.
PERMISSION_GRANTED
))
{
handler
.
postDelayed
({
ui
{
hideAttachmentOptions
()
}
},
400
)
}
}
val
intent
=
Intent
(
Intent
.
ACTION_GET_CONTENT
)
intent
.
type
=
"*/*"
intent
.
putExtra
(
Intent
.
EXTRA_MIME_TYPES
,
filter
)
startActivityForResult
(
intent
,
REQUEST_CODE_FOR_PERFORM_SAF
)
}
}
...
...
app/src/main/res/values-pt-rBR/strings.xml
View file @
8446479c
...
...
@@ -130,12 +130,12 @@
<string
name=
"max_file_size_exceeded"
>
Tamanho de arquivo (%1$d bytes) excedeu tamanho máximo de upload (%2$d bytes)
</string>
<!-- Socket status -->
<string
name=
"status_connected"
>
c
onectado
</string>
<string
name=
"status_disconnected"
>
d
esconetado
</string>
<string
name=
"status_connecting"
>
c
onectando
</string>
<string
name=
"status_authenticating"
>
a
utenticando
</string>
<string
name=
"status_disconnecting"
>
d
esconectando
</string>
<string
name=
"status_waiting"
>
c
onectando em %d segundos
</string>
<string
name=
"status_connected"
>
C
onectado
</string>
<string
name=
"status_disconnected"
>
D
esconetado
</string>
<string
name=
"status_connecting"
>
C
onectando
</string>
<string
name=
"status_authenticating"
>
A
utenticando
</string>
<string
name=
"status_disconnecting"
>
D
esconectando
</string>
<string
name=
"status_waiting"
>
C
onectando em %d segundos
</string>
<!--Suggestions-->
<string
name=
"suggest_all_description"
>
Notifica todos nesta sala
</string>
...
...
app/src/main/res/values/strings.xml
View file @
8446479c
...
...
@@ -131,12 +131,12 @@
<string
name=
"max_file_size_exceeded"
>
File size %1$d bytes exceeded max upload size of %2$d bytes
</string>
<!-- Socket status -->
<string
name=
"status_connected"
>
c
onnected
</string>
<string
name=
"status_disconnected"
>
d
isconnected
</string>
<string
name=
"status_connecting"
>
c
onnecting
</string>
<string
name=
"status_authenticating"
>
a
uthenticating
</string>
<string
name=
"status_disconnecting"
>
d
isconnecting
</string>
<string
name=
"status_waiting"
>
c
onnecting in %d seconds
</string>
<string
name=
"status_connected"
>
C
onnected
</string>
<string
name=
"status_disconnected"
>
D
isconnected
</string>
<string
name=
"status_connecting"
>
C
onnecting
</string>
<string
name=
"status_authenticating"
>
A
uthenticating
</string>
<string
name=
"status_disconnecting"
>
D
isconnecting
</string>
<string
name=
"status_waiting"
>
C
onnecting in %d seconds
</string>
<!--Suggestions-->
<string
name=
"suggest_all_description"
>
Notify all in this room
</string>
...
...
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