Quantcast
Channel: xda-developers - Galaxy S II Android Development
Viewing all articles
Browse latest Browse all 397

[HOW-TO][4.1.2] Disable Edge Zoom in browser and Gmail.

$
0
0
Hello xda'ers,
after loads of PM, requests, and lot of people I found googlin complainting about this "feature" I give to you the fix.
There are 2 ways to disable edge zoom, but I give you the easiest one.

Requirements:
smali/baksmali (and its use) or apktool (and its use)

Decompile framework.jar

go to:
smali\android\webkit\ZoomManager.smali

look for:
.method setEdgeZoom(Z)V
delete the red line and add the green line


Code:

.method setEdgeZoom(Z)V
    .registers 12
    .parameter "enabled"

    .prologue
    const/4 v5, 0x1
    const/4 v5, 0x0

    const/4 v4, 0x0

    .line 1602
    invoke-virtual {p0}, Landroid/webkit/ZoomManager;->getScaleGestureDetector()Landroid/view/ScaleGestureDetector;

    move-result-object v6

    if-eqz v6, :cond_41
...

Recompile and enjoy.

If this made your day, consider to hit thank button.

Cheers

Viewing all articles
Browse latest Browse all 397

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>