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
99bdc317
Commit
99bdc317
authored
Jun 17, 2014
by
DrKLO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable swipe back in google map view
parent
0b0d4850
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
LocationActivity.java
...sProj/src/main/java/org/telegram/ui/LocationActivity.java
+1
-0
ActionBarActivity.java
...va/org/telegram/ui/Views/ActionBar/ActionBarActivity.java
+4
-0
BaseFragment.java
...in/java/org/telegram/ui/Views/ActionBar/BaseFragment.java
+1
-0
No files found.
TMessagesProj/src/main/java/org/telegram/ui/LocationActivity.java
View file @
99bdc317
...
@@ -60,6 +60,7 @@ public class LocationActivity extends BaseFragment implements NotificationCenter
...
@@ -60,6 +60,7 @@ public class LocationActivity extends BaseFragment implements NotificationCenter
@Override
@Override
public
boolean
onFragmentCreate
()
{
public
boolean
onFragmentCreate
()
{
super
.
onFragmentCreate
();
super
.
onFragmentCreate
();
swipeBackEnabled
=
false
;
NotificationCenter
.
getInstance
().
addObserver
(
this
,
MessagesController
.
closeChats
);
NotificationCenter
.
getInstance
().
addObserver
(
this
,
MessagesController
.
closeChats
);
if
(
messageObject
!=
null
)
{
if
(
messageObject
!=
null
)
{
NotificationCenter
.
getInstance
().
addObserver
(
this
,
MessagesController
.
updateInterfaces
);
NotificationCenter
.
getInstance
().
addObserver
(
this
,
MessagesController
.
updateInterfaces
);
...
...
TMessagesProj/src/main/java/org/telegram/ui/Views/ActionBar/ActionBarActivity.java
View file @
99bdc317
...
@@ -265,6 +265,10 @@ public class ActionBarActivity extends Activity {
...
@@ -265,6 +265,10 @@ public class ActionBarActivity extends Activity {
public
boolean
onTouchEvent
(
MotionEvent
ev
)
{
public
boolean
onTouchEvent
(
MotionEvent
ev
)
{
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
>=
11
&&
!
checkTransitionAnimation
()
&&
!
inActionMode
&&
fragmentsStack
.
size
()
>
1
&&
!
animationInProgress
)
{
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
>=
11
&&
!
checkTransitionAnimation
()
&&
!
inActionMode
&&
fragmentsStack
.
size
()
>
1
&&
!
animationInProgress
)
{
if
(
ev
!=
null
&&
ev
.
getAction
()
==
MotionEvent
.
ACTION_DOWN
&&
!
startedTracking
&&
!
maybeStartTracking
)
{
if
(
ev
!=
null
&&
ev
.
getAction
()
==
MotionEvent
.
ACTION_DOWN
&&
!
startedTracking
&&
!
maybeStartTracking
)
{
BaseFragment
currentFragment
=
fragmentsStack
.
get
(
fragmentsStack
.
size
()
-
1
);
if
(!
currentFragment
.
swipeBackEnabled
)
{
return
false
;
}
startedTrackingPointerId
=
ev
.
getPointerId
(
0
);
startedTrackingPointerId
=
ev
.
getPointerId
(
0
);
maybeStartTracking
=
true
;
maybeStartTracking
=
true
;
startedTrackingX
=
(
int
)
ev
.
getX
();
startedTrackingX
=
(
int
)
ev
.
getX
();
...
...
TMessagesProj/src/main/java/org/telegram/ui/Views/ActionBar/BaseFragment.java
View file @
99bdc317
...
@@ -28,6 +28,7 @@ public class BaseFragment {
...
@@ -28,6 +28,7 @@ public class BaseFragment {
protected
int
classGuid
=
0
;
protected
int
classGuid
=
0
;
protected
Bundle
arguments
;
protected
Bundle
arguments
;
private
AlertDialog
visibleDialog
=
null
;
private
AlertDialog
visibleDialog
=
null
;
protected
boolean
swipeBackEnabled
=
true
;
public
BaseFragment
()
{
public
BaseFragment
()
{
classGuid
=
ConnectionsManager
.
getInstance
().
generateClassGuid
();
classGuid
=
ConnectionsManager
.
getInstance
().
generateClassGuid
();
...
...
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