diff options
author | Renard | 2016-12-29 20:58:27 -0300 |
---|---|---|
committer | Renard | 2016-12-29 20:58:27 -0300 |
commit | 56a4714a3af6cd74b5946afdf245be97cfb56ba6 (patch) | |
tree | 94e61e5a89307ffbaa209a52de4c2e93c7f4942e /app/src/main/java | |
parent | 22e5b86dcf7bd8e20abf7ab0de197a29f77e78d7 (diff) | |
download | BaiApp-56a4714a3af6cd74b5946afdf245be97cfb56ba6.tar.gz BaiApp-56a4714a3af6cd74b5946afdf245be97cfb56ba6.tar.xz BaiApp-56a4714a3af6cd74b5946afdf245be97cfb56ba6.zip |
SSL Fixv1.9
Diffstat (limited to 'app/src/main/java')
3 files changed, 8 insertions, 12 deletions
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<String>() { @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<BoardItem>{ 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); |