Skip to content
Snippets Groups Projects
Commit cf82b237 authored by Francesco Andreuzzi's avatar Francesco Andreuzzi
Browse files

6.2a

parent c6e6638d
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ import ohi.andre.consolelauncher.R;
import ohi.andre.consolelauncher.commands.CommandAbstraction;
import ohi.andre.consolelauncher.commands.ExecutePack;
import ohi.andre.consolelauncher.commands.main.MainPack;
import ohi.andre.consolelauncher.tuils.Tuils;
public class call implements CommandAbstraction {
......@@ -27,7 +28,13 @@ public class call implements CommandAbstraction {
}
String number = info.get(String.class, 0);
Uri uri = Uri.parse("tel:" + number);
String s = Tuils.EMPTYSTRING;
for(char c : number.toCharArray()) {
if(c == '#') s += Uri.encode("#");
else s += c;
}
Uri uri = Uri.parse("tel:" + s);
Intent intent = new Intent(Intent.ACTION_CALL, uri);
try {
......
......@@ -20,6 +20,7 @@ import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.File;
......@@ -210,7 +211,12 @@ public class TuixtActivity extends Activity {
runOnUiThread(new Runnable() {
@Override
public void run() {
try {
fileView.setText(builder.toString());
} catch (OutOfMemoryError e) {
fileView.setText(Tuils.EMPTYSTRING);
Toast.makeText(TuixtActivity.this, R.string.tuixt_error, Toast.LENGTH_LONG).show();
}
}
});
} catch (Exception e) {
......
......@@ -69,6 +69,7 @@
<string name="tuixt_saved">Saved</string>
<string name="tuixt_reading">Reading</string>
<string name="tuixt_label">TUIXT</string>
<string name="tuixt_error">This file is too big, consider opening it with an other text editor</string>
<!-- phone -->
<string name="output_wifi">WiFi active:</string>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment