Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ def versionMinor = 1
def versionPatch = 459

android {
compileSdk 36
buildToolsVersion "36"
namespace "sk.virtualvoid.nyxdroid.v2"

defaultConfig {
applicationId "sk.virtualvoid.nyxdroid.v2"
minSdkVersion 21
compileSdk 31
targetSdkVersion 31
targetSdk 36
multiDexEnabled true
versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
Expand Down Expand Up @@ -69,7 +72,7 @@ dependencies {
implementation project(':slidingmenujf')

implementation platform('com.google.firebase:firebase-bom:27.0.0')

implementation "androidx.core:core:1.17.0"
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation "androidx.legacy:legacy-preference-v14:1.0.0"
implementation "androidx.preference:preference:1.1.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.graphics.Insets;
import androidx.core.view.OnApplyWindowInsetsListener;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ public boolean onQueryTextChange(String newText) {

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.refresh:
int id = item.getItemId();
if (id == R.id.refresh){
return refresh();
}
return super.onOptionsItemSelected(item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ public boolean onCreateOptionsMenu(Menu menu) {

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.ge_openbrowser:
return viewInBrowser();
case R.id.ge_begin:
return toBegin();
case R.id.ge_current:
int id = item.getItemId();
if (id == R.id.ge_openbrowser){
return viewInBrowser();}
if (id == R.id.ge_begin){
return toBegin();}
if (id == R.id.ge_current){
return toCurrent();
}
return super.onOptionsItemSelected(item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import android.widget.ListView;
import android.widget.ProgressBar;
import androidx.appcompat.widget.SearchView;
import androidx.core.content.ContextCompat;


/**
Expand Down Expand Up @@ -186,7 +187,7 @@ public void onRefreshStarted(View view) {
});

refreshReceiverEnabled = true;
registerReceiver(refreshReceiver, new IntentFilter(Constants.REFRESH_MAIL_INTENT_FILTER));
registerReceiver(refreshReceiver, new IntentFilter(Constants.REFRESH_MAIL_INTENT_FILTER), Context.RECEIVER_NOT_EXPORTED );

load(true, null, null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ public boolean onCreateOptionsMenu(Menu menu) {

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
int id = item.getItemId();
if (id == android.R.id.home){
setResult(Constants.REQUEST_RESPONSE_CANCEL);
finish();
return true;
case R.id.attachment:
return attachment();
case R.id.send:
return true;}
if (id == R.id.attachment){
return attachment();}
if (id == R.id.send){
send();
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void onRefreshStarted(View view) {
});

refreshReceiverEnabled = true;
registerReceiver(refreshReceiver, new IntentFilter(Constants.REFRESH_NOTICES_INTENT_FILTER));
registerReceiver(refreshReceiver, new IntentFilter(Constants.REFRESH_NOTICES_INTENT_FILTER), Context.RECEIVER_NOT_EXPORTED );

refresh();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ public boolean onCreateOptionsMenu(Menu menu) {

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.clear_credentials:
return clearCredentials();
case R.id.clear_drawable_cache:
int id = item.getItemId();
if (id == R.id.clear_credentials){
return clearCredentials();}
if (id == R.id.clear_drawable_cache){
return clearDrawableCache();
}
return super.onOptionsItemSelected(item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,18 @@ else if (replyingWriteupList == null) {

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
int id = item.getItemId();
if (id == android.R.id.home){
setResult(Constants.REQUEST_RESPONSE_CANCEL);
finish();
return true;
case R.id.attachment:
return attachment();
case R.id.send:
return send();
case R.id.voteup:
return vote(VotingType.POSITIVE);
case R.id.votedown:
return true;}
if (id == R.id.attachment){
return attachment();}
if (id == R.id.send){
return send();}
if (id == R.id.voteup){
return vote(VotingType.POSITIVE);}
if (id == R.id.votedown){
return vote(VotingType.NEGATIVE);
}
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,18 +437,18 @@ public boolean onQueryTextChange(String newText) {

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.compose:
int id = item.getItemId();
if (id == R.id.compose)
return composeOne(null);
case R.id.refresh:
if (id == R.id.refresh)
return load(null, null, false);
case R.id.gallery:
if (id == R.id.gallery)
return galleryGrid();
case R.id.replytomorewriteups:
if (id == R.id.replytomorewriteups)
return replyToMoreWriteups();
case R.id.book_or_unbook:
if (id == R.id.book_or_unbook)
return bookOrUnbook();
}

return super.onOptionsItemSelected(item);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ public MailActionMode(Activity context, Listener listener) {

@Override
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
switch (item.getItemId()) {
case R.id.reply:
int id =item.getItemId();
if (id == R.id.reply){
listener.onReply();
return true;
case R.id.copy:
return true;}
if (id == R.id.copy){
listener.onCopy();
return true;
case R.id.reminder:
return true;}
if (id == R.id.reminder){
listener.onReminder();
return true;
case R.id.delete:
return true;}
if (id == R.id.delete){
listener.onDelete();
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,32 @@ public WriteupsActionMode(Activity context, Listener listener) {

@Override
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
switch (item.getItemId()) {
case R.id.reply:
int id= item.getItemId();
if (id == R.id.reply){
listener.onReply();
return true;
case R.id.sendmail:
return true;}
if (id == R.id.sendmail) {
listener.onSendMail();
return true;
case R.id.viewreplies:
return true;}
if (id == R.id.viewreplies){
listener.onViewReplies();
return true;
case R.id.viewrating:
return true;}
if (id == R.id.viewrating){
listener.onViewRating();
return true;
case R.id.copy:
return true;}
if (id == R.id.copy){
listener.onCopy();
return true;
case R.id.view_as_gallery_from_here:
return true;}
if (id == R.id.view_as_gallery_from_here){
listener.onViewGallery();
return true;
case R.id.reminder:
return true;}
if (id == R.id.reminder){
listener.onReminder();
return true;
case R.id.delete:
return true;}
if (id == R.id.delete){
listener.onDelete();
return true;
case R.id.copylink:
return true;}
if (id == R.id.copylink){
listener.onCopyLink();
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ private void restoreState() {

@Override
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
switch (item.getItemId()) {
case R.id.reply:
int id = item.getItemId();
if (id == R.id.reply){
listener.onReply();
return true;
}
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/authorization.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
android:orientation="vertical"
android:paddingTop="90dp">

<TextView
android:layout_width="fill_parent"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/enter_nick.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
android:id="@+id/RelativeLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
android:orientation="vertical"
android:paddingTop="90dp">

<sk.virtualvoid.core.widgets.CustomAutocompleteTextView
android:id="@+id/enter_nick"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/writeup_rating_overview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:background="?android:attr/windowBackground">
android:background="?android:attr/windowBackground"
android:paddingTop="90dp">

<LinearLayout
android:layout_width="match_parent"
Expand Down
11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
classpath 'androidx.core:core:1.3.2'
classpath 'com.android.tools.build:gradle:8.13.2'

classpath 'com.google.gms:google-services:4.4.0'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.2'
classpath 'com.google.gms:google-services:4.4.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.6'
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
repositories {
maven { url "https://jitpack.io" }
}
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Fri Dec 19 13:40:57 CET 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 5 additions & 1 deletion photoview/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
apply plugin: 'com.android.library'

android {
compileSdk 36
buildToolsVersion "30.0.1"
namespace "uk.co.senab.photoview"

defaultConfig {
compileSdk 31
minSdkVersion 16
targetSdkVersion 31
targetSdk 36
}

buildTypes {
Expand Down
5 changes: 4 additions & 1 deletion pulltorefreshactionbar/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
apply plugin: 'com.android.library'

android {
compileSdk 36
buildToolsVersion "30.0.1"
namespace "uk.co.senab.actionbarpulltorefresh.library"

defaultConfig {
compileSdk 31
minSdkVersion 16
targetSdkVersion 31
targetSdk 36
}

buildTypes {
Expand Down
6 changes: 5 additions & 1 deletion slidingmenujf/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
apply plugin: 'com.android.library'

android {
compileSdk 36
buildToolsVersion "30.0.1"
namespace "com.jeremyfeinstein.slidingmenu.lib"

defaultConfig {
compileSdk 31
minSdkVersion 16
targetSdkVersion 31
targetSdk 36
}

buildTypes {
Expand Down