Merge pull request #823 from vtosters/gettext-removing
remove clipdata$item gettext
This commit is contained in:
@@ -201,17 +201,19 @@
|
||||
|
||||
if-eqz v0, :cond_3
|
||||
|
||||
invoke-virtual {v0}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;
|
||||
# invoke-virtual {v0}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object v0
|
||||
# move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_3
|
||||
# if-eqz v0, :cond_3
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
# invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v2
|
||||
# move-result-object v2
|
||||
|
||||
if-eqz v2, :cond_3
|
||||
const-string v2, ""
|
||||
|
||||
# if-eqz v2, :cond_3
|
||||
|
||||
const/4 v5, 0x0
|
||||
|
||||
|
||||
@@ -280,13 +280,14 @@
|
||||
|
||||
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p1}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;
|
||||
# invoke-virtual {p1}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;
|
||||
|
||||
# move-result-object p1
|
||||
|
||||
move-result-object p1
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
# if-eqz p1, :cond_2
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
|
||||
+77
-75
@@ -156,85 +156,87 @@
|
||||
.end method
|
||||
|
||||
.method private final a(Ljava/lang/String;)V
|
||||
.locals 3
|
||||
|
||||
.line 14
|
||||
iget-object v0, p0, Lcom/vk/newsfeed/posting/viewpresenter/text/TextPostingPresenter;->D:Lcom/vk/newsfeed/posting/PostingContracts12;
|
||||
|
||||
invoke-interface {v0}, Lcom/vk/newsfeed/posting/PostingContracts12;->o0()Landroid/content/ClipData;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_4
|
||||
|
||||
.line 15
|
||||
invoke-virtual {v0}, Landroid/content/ClipData;->getItemCount()I
|
||||
|
||||
move-result v1
|
||||
|
||||
if-nez v1, :cond_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 16
|
||||
:cond_0
|
||||
invoke-virtual {v0}, Landroid/content/ClipData;->getItemCount()I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
sub-int/2addr v1, v2
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/content/ClipData;->getItemAt(I)Landroid/content/ClipData$Item;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_4
|
||||
|
||||
.line 17
|
||||
invoke-virtual {v0}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
if-nez v1, :cond_1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 18
|
||||
:cond_1
|
||||
invoke-virtual {v0}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
.line 19
|
||||
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
if-nez v1, :cond_2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v2, :cond_3
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
|
||||
.line 20
|
||||
:cond_3
|
||||
invoke-direct {p0, p1, v0}, Lcom/vk/newsfeed/posting/viewpresenter/text/TextPostingPresenter;->a(Ljava/lang/String;Ljava/lang/String;)V
|
||||
# .line 14
|
||||
# iget-object v0, p0, Lcom/vk/newsfeed/posting/viewpresenter/text/TextPostingPresenter;->D:Lcom/vk/newsfeed/posting/PostingContracts12;
|
||||
|
||||
:cond_4
|
||||
:goto_1
|
||||
return-void
|
||||
# invoke-interface {v0}, Lcom/vk/newsfeed/posting/PostingContracts12;->o0()Landroid/content/ClipData;
|
||||
|
||||
# move-result-object v0
|
||||
|
||||
# if-eqz v0, :cond_4
|
||||
|
||||
# .line 15
|
||||
# invoke-virtual {v0}, Landroid/content/ClipData;->getItemCount()I
|
||||
|
||||
# move-result v1
|
||||
|
||||
# if-nez v1, :cond_0
|
||||
|
||||
# goto :goto_1
|
||||
|
||||
# .line 16
|
||||
# :cond_0
|
||||
# invoke-virtual {v0}, Landroid/content/ClipData;->getItemCount()I
|
||||
|
||||
# move-result v1
|
||||
|
||||
# const/4 v2, 0x1
|
||||
|
||||
# sub-int/2addr v1, v2
|
||||
|
||||
# invoke-virtual {v0, v1}, Landroid/content/ClipData;->getItemAt(I)Landroid/content/ClipData$Item;
|
||||
|
||||
# move-result-object v0
|
||||
|
||||
# if-eqz v0, :cond_4
|
||||
|
||||
# .line 17
|
||||
# invoke-virtual {v0}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;
|
||||
|
||||
# move-result-object v1
|
||||
|
||||
# if-nez v1, :cond_1
|
||||
|
||||
# goto :goto_1
|
||||
|
||||
# .line 18
|
||||
# :cond_1
|
||||
# invoke-virtual {v0}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;
|
||||
|
||||
# move-result-object v0
|
||||
|
||||
# invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
# move-result-object v0
|
||||
|
||||
# .line 19
|
||||
# invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
# move-result v1
|
||||
|
||||
# if-nez v1, :cond_2
|
||||
|
||||
# goto :goto_0
|
||||
|
||||
# :cond_2
|
||||
# const/4 v2, 0x0
|
||||
|
||||
# :goto_0
|
||||
# if-eqz v2, :cond_3
|
||||
|
||||
# return-void
|
||||
|
||||
# .line 20
|
||||
# :cond_3
|
||||
# invoke-direct {p0, p1, v0}, Lcom/vk/newsfeed/posting/viewpresenter/text/TextPostingPresenter;->a(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
# :cond_4
|
||||
# :goto_1
|
||||
# return-void
|
||||
.end method
|
||||
|
||||
.method private final a(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
@@ -344,43 +344,47 @@
|
||||
.end method
|
||||
|
||||
.method private final a()Ljava/lang/CharSequence;
|
||||
.locals 2
|
||||
.locals 1
|
||||
|
||||
.line 37
|
||||
iget-object v0, p0, Lcom/vk/photoviewer/ContextMenuDelegate;->d:Landroid/content/Context;
|
||||
|
||||
invoke-direct {p0, v0}, Lcom/vk/photoviewer/ContextMenuDelegate;->a(Landroid/content/Context;)Landroid/content/ClipboardManager;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
.line 38
|
||||
invoke-virtual {v0}, Landroid/content/ClipboardManager;->getPrimaryClip()Landroid/content/ClipData;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/content/ClipData;->getItemAt(I)Landroid/content/ClipData$Item;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
invoke-virtual {v0}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const-string v0, ""
|
||||
|
||||
:goto_0
|
||||
return-object v0
|
||||
|
||||
# .line 37
|
||||
# iget-object v0, p0, Lcom/vk/photoviewer/ContextMenuDelegate;->d:Landroid/content/Context;
|
||||
|
||||
# invoke-direct {p0, v0}, Lcom/vk/photoviewer/ContextMenuDelegate;->a(Landroid/content/Context;)Landroid/content/ClipboardManager;
|
||||
|
||||
# move-result-object v0
|
||||
|
||||
# .line 38
|
||||
# invoke-virtual {v0}, Landroid/content/ClipboardManager;->getPrimaryClip()Landroid/content/ClipData;
|
||||
|
||||
# move-result-object v0
|
||||
|
||||
# if-eqz v0, :cond_0
|
||||
|
||||
# const/4 v1, 0x0
|
||||
|
||||
# invoke-virtual {v0, v1}, Landroid/content/ClipData;->getItemAt(I)Landroid/content/ClipData$Item;
|
||||
|
||||
# move-result-object v0
|
||||
|
||||
# if-eqz v0, :cond_0
|
||||
|
||||
# invoke-virtual {v0}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;
|
||||
|
||||
# move-result-object v0
|
||||
|
||||
# if-eqz v0, :cond_0
|
||||
|
||||
# goto :goto_0
|
||||
|
||||
# :cond_0
|
||||
# const-string v0, ""
|
||||
|
||||
# :goto_0
|
||||
# return-object v0
|
||||
.end method
|
||||
|
||||
.method private final a(Landroid/widget/TextView;)Ljava/util/List;
|
||||
|
||||
Reference in New Issue
Block a user