From 56a4714a3af6cd74b5946afdf245be97cfb56ba6 Mon Sep 17 00:00:00 2001 From: Renard Date: Thu, 29 Dec 2016 20:58:27 -0300 Subject: SSL Fix --- .../main/java/org/bienvenidoainternet/app/MainActivity.java | 10 +++------- .../java/org/bienvenidoainternet/app/ResponseActivity.java | 8 ++++---- .../java/org/bienvenidoainternet/app/ThreadListAdapter.java | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) (limited to 'app/src') diff --git a/app/src/main/java/org/bienvenidoainternet/app/MainActivity.java b/app/src/main/java/org/bienvenidoainternet/app/MainActivity.java index 3a1890e..2244c23 100644 --- a/app/src/main/java/org/bienvenidoainternet/app/MainActivity.java +++ b/app/src/main/java/org/bienvenidoainternet/app/MainActivity.java @@ -234,9 +234,6 @@ public class MainActivity extends AppCompatActivity refreshNavigator(); } - if (tm.isDarkTheme()){ -// navigationView.setBackgroundColor(0xFF888888); - } } @@ -424,7 +421,7 @@ public class MainActivity extends AppCompatActivity Menu menu = navigationView.getMenu(); final SubMenu sub = menu.addSubMenu("Lista de Boards"); Ion.with(getApplicationContext()) - .load("http://bienvenidoainternet.org/cgi/api/boards") + .load("https://bienvenidoainternet.org/cgi/api/boards") .asString() .setCallback(new FutureCallback() { @Override @@ -441,10 +438,9 @@ public class MainActivity extends AppCompatActivity sub.add(parsedBoard.getBoardName()); boardList.add(parsedBoard); } -// Board polka = new Board("Testing", "polka", 0, true); +// Board polka = new Board("TESTING", "polka", 0, true); +// sub.add(polka.getBoardName()); // boardList.add(polka); -// sub.add("Testing"); - }catch (JSONException e1) { Toast.makeText(getApplicationContext(), e1.getMessage(), Toast.LENGTH_LONG).show(); e1.printStackTrace(); diff --git a/app/src/main/java/org/bienvenidoainternet/app/ResponseActivity.java b/app/src/main/java/org/bienvenidoainternet/app/ResponseActivity.java index 3e74573..bcc75f6 100644 --- a/app/src/main/java/org/bienvenidoainternet/app/ResponseActivity.java +++ b/app/src/main/java/org/bienvenidoainternet/app/ResponseActivity.java @@ -235,7 +235,7 @@ public class ResponseActivity extends AppCompatActivity { if (newthread){ if (selectedFile.isEmpty()){ Ion.with(getApplicationContext()) - .load("http://bienvenidoainternet.org/cgi/post") + .load("https://bienvenidoainternet.org/cgi/post") .setLogging("posting", Log.VERBOSE) .uploadProgressBar(progess) .setMultipartParameter("board", theReply.getParentBoard().getBoardDir()) @@ -269,7 +269,7 @@ public class ResponseActivity extends AppCompatActivity { }); }else{ Ion.with(getApplicationContext()) - .load("http://bienvenidoainternet.org/cgi/post") + .load("https://bienvenidoainternet.org/cgi/post") .uploadProgressBar(progess) .setMultipartParameter("board", theReply.getParentBoard().getBoardDir()) .setMultipartParameter("password", password) @@ -304,7 +304,7 @@ public class ResponseActivity extends AppCompatActivity { }else{ if (selectedFile.isEmpty()){ Ion.with(getApplicationContext()) - .load("http://bienvenidoainternet.org/cgi/post") + .load("https://bienvenidoainternet.org/cgi/post") .setLogging("posting", Log.VERBOSE) .uploadProgressBar(progess) .setMultipartParameter("board", theReply.getParentBoard().getBoardDir()) @@ -338,7 +338,7 @@ public class ResponseActivity extends AppCompatActivity { }); }else{ Ion.with(getApplicationContext()) - .load("http://bienvenidoainternet.org/cgi/post") + .load("https://bienvenidoainternet.org/cgi/post") .uploadProgressBar(progess) .setMultipartParameter("board", theReply.getParentBoard().getBoardDir()) .setMultipartParameter("parent", String.valueOf(parentId)) diff --git a/app/src/main/java/org/bienvenidoainternet/app/ThreadListAdapter.java b/app/src/main/java/org/bienvenidoainternet/app/ThreadListAdapter.java index 4e6e9cb..ba922a5 100644 --- a/app/src/main/java/org/bienvenidoainternet/app/ThreadListAdapter.java +++ b/app/src/main/java/org/bienvenidoainternet/app/ThreadListAdapter.java @@ -145,7 +145,7 @@ public class ThreadListAdapter extends ArrayAdapter{ if (boardItem.youtubeLink){ in = new Intent(Intent.ACTION_VIEW, Uri.parse(boardItem.youtubeURL)); }else{ - in = new Intent(Intent.ACTION_VIEW, Uri.parse("http://bienvenidoainternet.org/" + boardItem.getParentBoard().getBoardDir() + "/src/" + boardItem.getFile())); + in = new Intent(Intent.ACTION_VIEW, Uri.parse("https://bienvenidoainternet.org/" + boardItem.getParentBoard().getBoardDir() + "/src/" + boardItem.getFile())); } in.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); v.getContext().startActivity(in); -- cgit v1.2.1-18-gbd029