Bug 435016 - Crash when media controls is in landscape mode
Summary: Crash when media controls is in landscape mode
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (other bugs)
Version First Reported In: unspecified
Platform: Android Android 10.x
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-27 13:22 UTC by Bharadwaj Raju
Modified: 2022-06-09 02:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of stacktrace. Sorry I couldn't get it in text. (557.85 KB, image/png)
2021-03-27 13:22 UTC, Bharadwaj Raju
Details

Note You need to log in before you can comment on or make changes to this bug.
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