moved debug activation to long click of logo/appver
This commit is contained in:
@@ -9,7 +9,7 @@ import static ru.vtosters.lite.utils.Preferences.devmenu;
|
||||
import static ru.vtosters.lite.utils.Preferences.getBuildName;
|
||||
|
||||
public class About {
|
||||
public static void injectToToolBar(View view) {
|
||||
public static void inject(View view) {
|
||||
view.setOnLongClickListener(v -> {
|
||||
if (devmenu()) {
|
||||
sendToast(AndroidUtils.getString(R.string.debug_menu_already_activated));
|
||||
@@ -22,7 +22,7 @@ public class About {
|
||||
}
|
||||
|
||||
public static String getCommitLink() {
|
||||
return "https://github.com/vtosters/lite/commit/" + VersionReader.getVersionCommit(); // https://git.maki.su/gdlbo/lite/commit/ github repo
|
||||
return "https://github.com/vtosters/lite/commit/" + VersionReader.getVersionCommit();
|
||||
}
|
||||
|
||||
public static String getAppVersion() {
|
||||
|
||||
@@ -1,28 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="196.0dip"
|
||||
android:background="@drawable/highlight">
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="196.0dip"
|
||||
android:background="@drawable/highlight">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="104.0dip"
|
||||
android:layout_height="104.0dip"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/icon_vk_104" />
|
||||
|
||||
<com.vtosters.lite.ui.BadooTextView
|
||||
android:id="@id/version_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="4.0dip"
|
||||
android:textColor="?text_subhead" />
|
||||
android:layout_gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@id/app_icon"
|
||||
android:layout_width="104.0dip"
|
||||
android:layout_height="104.0dip"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/icon_vk_104"/>
|
||||
|
||||
<com.vtosters.lite.ui.BadooTextView
|
||||
android:id="@id/version_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="4.0dip"
|
||||
android:textColor="?text_subhead"/>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
@@ -509,8 +509,6 @@
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-static {p2}, Lru/vtosters/lite/utils/About;->injectToToolBar(Landroid/view/View;)V
|
||||
|
||||
check-cast p2, Landroidx/appcompat/widget/Toolbar;
|
||||
|
||||
const v0, 0x7f080376
|
||||
|
||||
@@ -10,6 +10,15 @@
|
||||
.line 1
|
||||
invoke-direct {p0, p1}, Lcom/vk/about/holders;-><init>(Landroid/view/View;)V
|
||||
|
||||
const v0, 0x7f0a00a8
|
||||
|
||||
.line 2
|
||||
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0}, Lru/vtosters/lite/utils/About;->inject(Landroid/view/View;)V
|
||||
|
||||
const v0, 0x7f0a0e71
|
||||
|
||||
.line 2
|
||||
@@ -17,6 +26,8 @@
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0}, Lru/vtosters/lite/utils/About;->inject(Landroid/view/View;)V
|
||||
|
||||
const-string v1, "itemView.findViewById<TextView>(R.id.version_name)"
|
||||
|
||||
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
Reference in New Issue
Block a user