(编辑:jimmy 日期: 2024/11/17 浏览:2)
String path = mUri.getPath();PFiles.move(path, path + ".bak");
.method public save()Lio/reactivex/Observable;#方法开头追加如下 iget-object v0, p0, Lorg/autojs/autojs/ui/edit/EditorView;->mUri:Landroid/net/Uri; invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String; move-result-object v0 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v2, ".bak" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-static {v0, v1}, Lcom/stardust/pio/PFiles;->move(Ljava/lang/String;Ljava/lang/String;)Z