Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
appt2 committed Apr 3, 2024
1 parent fc33ff6 commit 410e465
Show file tree
Hide file tree
Showing 9 changed files with 474 additions and 1,464 deletions.
14 changes: 0 additions & 14 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@
android:hardwareAccelerated="true"
android:supportsPictureInPicture="true"

/>
<activity
android:name=".activities.XmlViewActivity"
android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize|screenLayout"
android:hardwareAccelerated="true"
android:supportsPictureInPicture="true"

/>
<activity
android:name=".activities.SettingAppActivity"
Expand Down Expand Up @@ -167,13 +160,6 @@
android:hardwareAccelerated="true"
android:supportsPictureInPicture="true"

/>
<activity
android:name=".activities.ZipShowActivity"
android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize|screenLayout"
android:hardwareAccelerated="true"
android:supportsPictureInPicture="true"

/>
<activity
android:name=".activities.GouidHtmlActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
import Ninja.coder.Ghostemane.code.marco.*;
import Ninja.coder.Ghostemane.code.model.IconShop;
import Ninja.coder.Ghostemane.code.model.ListSheet;
import Ninja.coder.Ghostemane.code.model.ZipFileShow;
import Ninja.coder.Ghostemane.code.project.ProjectManager;
import Ninja.coder.Ghostemane.code.recyclerview.RecyclerViewHelper;
import Ninja.coder.Ghostemane.code.services.FileEventUser;
import Ninja.coder.Ghostemane.code.services.MediaListenerService;
import Ninja.coder.Ghostemane.code.terminal.TerminalActivity;
import Ninja.coder.Ghostemane.code.utils.*;
import Ninja.coder.Ghostemane.code.utils.ColorAndroid12;
import Ninja.coder.Ghostemane.code.utils.VectorHelper;
import Ninja.coder.Ghostemane.code.widget.GhostWebMaterialDialog;
import Ninja.coder.Ghostemane.code.widget.PraramnetLayoutNinja;
Expand Down Expand Up @@ -1205,11 +1207,8 @@ public void _zipviewandexsert(
di.setNeutralButton(
"مشاهده",
(p, d) -> {
intgetTheme.setClass(getApplicationContext(), ZipShowActivity.class);
intgetTheme.putExtra("zipview", _map.get((int) _pos).get(_path).toString());
startActivity(intgetTheme);
// ZipFileShow.showAsDialog(FileDirActivity.this,_map.get((int)
// _pos).get(_path).toString());
ZipFileShow.showAsDialog(
FileDirActivity.this, _map.get((int) _pos).get(_path).toString());
});
di.setPositiveButton(
"استخراج",
Expand Down Expand Up @@ -1362,36 +1361,9 @@ public void _installproject(
di.setPositiveButton(
"نصب",
(p1, d2) -> {
new AsyncTask<String, String, String>() {
@Override
protected void onPreExecute() {}

@Override
protected String doInBackground(String... params) {
String _param = params[0];
runOnUiThread(
new Runnable() {
@Override
public void run() {
UnZipDataFromDir(_maps.get((int) _number).get(_pathz).toString(), Folder);
}
});
return "";
}

@Override
protected void onPostExecute(String _result) {
reLoadFile();
}
}.execute("");
});
di.setNegativeButton(
"مشاهده",
(p3, d3) -> {
void10.setClass(getApplicationContext(), ZipShowActivity.class);
void10.putExtra("zipview", _maps.get((int) _number).get(_pathz).toString());
startActivity(void10);
UnZipDataFromDir(_maps.get((int) _number).get(_pathz).toString(), Folder);
});

di.setNeutralButton("بستن", (p, d) -> {});

androidx.appcompat.app.AlertDialog dialog = di.show();
Expand Down Expand Up @@ -1529,6 +1501,8 @@ public void _rename(final double _pos) {
dialog.setOnShowListener(
(var) -> {
EditText editor = dialog.findViewById(R.id.editor);
editor.setTextSize(16);
editor.setTextColor(MaterialColors.getColor(editor,ColorAndroid12.colorOnSurface,0));

Button positive = dialog.getButton(DialogInterface.BUTTON_POSITIVE);
editor.setText(
Expand All @@ -1539,7 +1513,7 @@ public void _rename(final double _pos) {
positive.setEnabled(true);
}
editor.addTextChangedListener(
new android.text.TextWatcher() {
new TextWatcher() {
@Override
public void onTextChanged(
CharSequence _param1, int _param2, int _param3, int _param4) {
Expand Down

This file was deleted.

Loading

0 comments on commit 410e465

Please sign in to comment.