Skip to content

Commit

Permalink
Update MainActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
InukaAsith authored Nov 23, 2023
1 parent d8f19aa commit 68e6d03
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions app/src/main/java/com/ubetta/dtvfree/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public void onClick(View v) {
}


CharSequence[] items = {"Exit","Refresh Website", "Edit Homepage", offmode + " offline loading", enpip +" Background Play","Check Update","Help", "Cancel"};
CharSequence[] items = {"Exit","Refresh Website", "Edit Homepage", offmode + " offline loading", enpip +" Background Play","Check Update","Help","About", "Cancel"};

// create an alert dialog builder
AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
Expand Down Expand Up @@ -584,8 +584,22 @@ public void onClick(DialogInterface dialog, int which) {
hideView(dialogBack);
// do something for button 3
break;

case 7:
val pm = requireActivity().packageManager
val pi = pm.getPackageInfo("com.google.android.webview", 0)
val currentVersion = pi.versionName
String webver = url.toString();
new AlertDialog.Builder(MainActivity.this)
.setTitle("About")
.setMessage("DTVFree "+ Version" \n\nCurrent Homapage: "+ homepge" \n\nDeveloper: "+ sourcecode" \n\nCurrent Webview Versiona:" + webver)
.setPositiveButton("Got it", (dialog1, which1) -> {})
.show();
hideView(dialogBack);
// do something for button 3
break;

case 8:
hideView(dialogBack);
// do something for button 4
break;
Expand Down

0 comments on commit 68e6d03

Please sign in to comment.