Bug 435016

Summary: Crash when media controls is in landscape mode
Product: [Applications] kdeconnect Reporter: Bharadwaj Raju <bharadwaj.raju777>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED FIXED    
Severity: crash CC: akos+kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Android   
OS: Android 10.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of stacktrace. Sorry I couldn't get it in text.

Description Bharadwaj Raju 2021-03-27 13:22:18 UTC
Created attachment 137102 [details]
Screenshot of stacktrace. Sorry I couldn't get it in text.

SUMMARY
KDE Connect Android app crashes when trying to use media controls in landscape mode.

STEPS TO REPRODUCE
1. Open KDE Connect Android app
2. Go to media controls
3. Change phone to landscape mode

"Send feedback" says:
Exception class: java.lang.NullPointerException
Source file: MprisActivity.java
Source class: org.kde.kdeconnect.Plugins.MprisPlugin.MprisActivity
Source method: onCreate
Line number: 338

It also gave me a partial stack trace. it didn't allow me to copy it, so I screenshotted it.
Comment 1 Bharadwaj Raju 2021-08-07 07:11:22 UTC

*** This bug has been marked as a duplicate of bug 435362 ***
Comment 2 Simon Redman 2022-06-09 02:10:41 UTC
Git commit f1d0c9acc6201d023ffd353b689c7948657dea73 by Simon Redman, on behalf of Art Pinch.
Committed on 09/06/2022 at 02:10.
Pushed by sredman into branch 'master'.

Fix MprisActivity crash in landscape orientation

## Summary

Fixed MprisActivity crash in landscape orientation caused by mismatched portrait and landscape layout resources

## Test Plan

### Before:
App crashed on MprisActivity when phone is switched to landscape orientation

### After:
App works normally in landscape mode

A  +26   -0    res/layout-land/mpris_now_playing.xml

https://invent.kde.org/network/kdeconnect-android/commit/f1d0c9acc6201d023ffd353b689c7948657dea73