Browse Source

Fix custom notification layout because it got cut off on some devices, also the colour was lost entirely lel

Wazakindjes 2 months ago
parent
commit
27c4d1453a

BIN
app/rem0t0.apk


+ 1 - 1
app/src/app_rem0t0/src/main/AndroidManifest.xml

@@ -2,7 +2,7 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
 	xmlns:tools="http://schemas.android.com/tools"
 	package="com.jemoeder.lief.rem0t0"
-	android:versionName="1.1.5">
+	android:versionName="1.1.6">
 
 	<!-- Need an internet connection to work 0bv lol -->
 	<uses-permission android:name="android.permission.INTERNET" />

+ 3 - 0
app/src/app_rem0t0/src/main/java/com/jemoeder/lief/rem0t0/MainActivity.java

@@ -181,8 +181,11 @@ public class MainActivity extends AppCompatActivity {
 		notifBuilder.setContentIntent(returnPIntent);
 		notifBuilder.setOngoing(true);
 		notifBuilder.setShowWhen(false);
+		notifBuilder.setColor(ContextCompat.getColor(muhctx, R.color.notification_colour));
 		notifBuilder.setContent(new RemoteViews(getPackageName(), R.layout.muhnotification));
 		notifBuilder.setBadgeIconType(NotificationCompat.BADGE_ICON_NONE);
+
+		// s0em backwards compatibility shit imo tbh
 		notifBuilder.setPriority(NotificationCompat.PRIORITY_HIGH);
 		notifBuilder.setLights(0, 0, 0);
 		notifBuilder.setSound(null);

+ 2 - 2
app/src/app_rem0t0/src/main/res/layout/muhnotification.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 	android:layout_width="wrap_content"
-	android:layout_height="wrap_content">
+	android:layout_height="match_parent">
 	<ImageView
 		android:id="@+id/muhicon"
 		android:layout_width="@dimen/notification_iconsize"
@@ -21,4 +21,4 @@
 		android:layout_marginStart="@dimen/notification_title_margin_left"
 		android:layout_alignTop="@id/muhicon"
 		android:layout_toEndOf="@id/muhicon" />
-</RelativeLayout>
+</RelativeLayout>

+ 1 - 1
app/src/app_rem0t0/src/main/res/values/colors.xml

@@ -8,9 +8,9 @@
 
 	<!-- Some global custom col0urs -->
 	<color name="ripplem">@color/colorPrimaryDark</color>
-	<color name="notification_colour">#CC0036</color>
 	<color name="gucci">@color/colorAccent</color>
 	<color name="RIP">#FF3369</color>
+	<color name="notification_colour">#CC0036</color>
 
 	<!-- Other text related shit 0bv -->
 	<color name="text_prefheader">@color/colorAccent</color>

+ 3 - 3
app/src/app_rem0t0/src/main/res/values/dimens.xml

@@ -8,12 +8,12 @@
 	<dimen name="actionbar_connstatus_topmargin">5dp</dimen>
 
 	<!-- Notification p00p -->
-	<dimen name="notification_margin_top">15dp</dimen>
-	<dimen name="notification_margin_left">16dp</dimen>
+	<dimen name="notification_margin_top">16dp</dimen>
+	<dimen name="notification_margin_left">15dp</dimen>
+	<dimen name="notification_iconsize">18dp</dimen>
 	<dimen name="notification_title_margin_top">1dp</dimen>
 	<dimen name="notification_title_margin_left">6dp</dimen>
 	<dimen name="notification_titlesize">12sp</dimen>
-	<dimen name="notification_iconsize">18dp</dimen>
 
 	<!-- prefheader is always in bold -->
 	<dimen name="text_prefheader">20sp</dimen>

+ 2 - 2
app/src/app_rem0t0/version.properties

@@ -1,2 +1,2 @@
-#Sat Jul 17 14:06:18 CEST 2021
-VERSION_CODE=368
+#Fri Jul 23 11:20:45 CEST 2021
+VERSION_CODE=384