Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #1153 - Activity doesn't restart anymore on orientation #1154

Merged
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
119 changes: 68 additions & 51 deletions onebusaway-android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
<activity
android:name="org.onebusaway.android.ui.SearchActivity"
android:launchMode="singleTop"
android:exported="true">
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
Expand All @@ -73,122 +74,136 @@
</activity>

<activity
android:name="org.onebusaway.android.ui.HomeActivity"
android:exported="true">
android:name="org.onebusaway.android.ui.HomeActivity"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name="org.onebusaway.android.ui.ArrivalsListActivity"
android:launchMode="singleTop"
android:exported="true">
android:name="org.onebusaway.android.ui.ArrivalsListActivity"
android:launchMode="singleTop"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
<activity
android:name="com.joulespersecond.seattlebusbot.ArrivalsListActivity"
android:launchMode="singleTop"
android:exported="true">
android:name="com.joulespersecond.seattlebusbot.ArrivalsListActivity"
android:launchMode="singleTop"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
<activity android:name="org.onebusaway.android.ui.StopInfoActivity"
android:exported="true">
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
<activity android:name="org.onebusaway.android.ui.RouteInfoActivity"
android:exported="true">
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
<activity android:name="com.joulespersecond.seattlebusbot.RouteInfoActivity"
android:exported="true">
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
<activity android:name="org.onebusaway.android.ui.TripInfoActivity"/>
<activity android:name=".ui.MyRemindersActivity"/>
<activity android:name="org.onebusaway.android.ui.TripDetailsActivity"
android:exported="true">
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>

<activity
android:name="org.onebusaway.android.ui.MyStopsActivity"
android:label="@string/stop_shortcut"
android:exported="true">
android:name="org.onebusaway.android.ui.MyStopsActivity"
android:label="@string/stop_shortcut"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>

<activity
android:name="com.joulespersecond.seattlebusbot.MyStopsActivity"
android:label="@string/stop_shortcut"
android:exported="true">
android:name="com.joulespersecond.seattlebusbot.MyStopsActivity"
android:label="@string/stop_shortcut"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
</intent-filter>
</activity>
<activity
android:name="org.onebusaway.android.ui.MyRecentStopsActivity"
android:label="@string/recent_stops_shortcut"
android:exported="true">
android:name="org.onebusaway.android.ui.MyRecentStopsActivity"
android:label="@string/recent_stops_shortcut"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity
android:name="org.onebusaway.android.ui.MyStarredStopsActivity"
android:label="@string/starred_stops_shortcut"
android:exported="true">
android:name="org.onebusaway.android.ui.MyStarredStopsActivity"
android:label="@string/starred_stops_shortcut"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity
android:name="org.onebusaway.android.ui.MyRoutesActivity"
android:label="@string/route_shortcut"
android:exported="true">
android:name="org.onebusaway.android.ui.MyRoutesActivity"
android:label="@string/route_shortcut"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity
android:name="com.joulespersecond.seattlebusbot.MyRoutesActivity"
android:label="@string/route_shortcut"
android:exported="true">
android:name="com.joulespersecond.seattlebusbot.MyRoutesActivity"
android:label="@string/route_shortcut"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
</intent-filter>
</activity>
<activity
android:name="org.onebusaway.android.ui.MyRecentRoutesActivity"
android:label="@string/recent_routes_shortcut"
android:exported="true">
android:name="org.onebusaway.android.ui.MyRecentRoutesActivity"
android:label="@string/recent_routes_shortcut"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<!-- ActionBarCompat library doesn't have an ActionBarPreferenceActivity, so define parent here-->
<activity
android:name="org.onebusaway.android.ui.PreferencesActivity"
android:parentActivityName="org.onebusaway.android.ui.HomeActivity">
android:name="org.onebusaway.android.ui.PreferencesActivity"
android:parentActivityName="org.onebusaway.android.ui.HomeActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="org.onebusaway.android.ui.HomeActivity"/>
Expand All @@ -200,10 +215,11 @@
<activity android:name="org.onebusaway.android.report.ui.InfrastructureIssueActivity"/>

<activity
android:name="org.onebusaway.android.ui.MyRecentStopsAndRoutesActivity"
android:label="@string/my_recent_title"
android:parentActivityName="org.onebusaway.android.ui.HomeActivity"
android:exported="true">
android:name="org.onebusaway.android.ui.MyRecentStopsAndRoutesActivity"
android:label="@string/my_recent_title"
android:parentActivityName="org.onebusaway.android.ui.HomeActivity"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
<category android:name="android.intent.category.DEFAULT"/>
Expand All @@ -214,11 +230,12 @@
android:value="org.onebusaway.android.ui.HomeActivity"/>
</activity>
<activity
android:name="org.onebusaway.android.ui.NightLightActivity"
android:label="@string/stop_info_option_night_light"
android:parentActivityName="org.onebusaway.android.ui.HomeActivity"
android:screenOrientation="portrait"
android:exported="true">
android:name="org.onebusaway.android.ui.NightLightActivity"
android:label="@string/stop_info_option_night_light"
android:parentActivityName="org.onebusaway.android.ui.HomeActivity"
android:screenOrientation="portrait"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
<category android:name="android.intent.category.DEFAULT"/>
Expand All @@ -229,9 +246,9 @@
android:value="org.onebusaway.android.ui.HomeActivity"/>
</activity>
<activity
android:name="org.onebusaway.android.ui.TripPlanActivity"
android:label="@string/title_activity_trip_plan"
android:parentActivityName="org.onebusaway.android.ui.HomeActivity">
android:name="org.onebusaway.android.ui.TripPlanActivity"
android:label="@string/title_activity_trip_plan"
android:parentActivityName="org.onebusaway.android.ui.HomeActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="org.onebusaway.android.ui.HomeActivity"/>
Expand All @@ -253,8 +270,8 @@
android:authorities="${databaseAuthority}"/>

<service
android:name=".tripservice.TripService"
android:permission="${applicationId}.permission.TRIP_SERVICE"
android:name=".tripservice.TripService"
android:permission="${applicationId}.permission.TRIP_SERVICE"
android:exported="true">
<intent-filter>
<action android:name="${applicationId}.AlarmReceiver"/>
Expand All @@ -263,7 +280,7 @@
</service>

<service
android:name=".directions.realtime.RealtimeService">
android:name=".directions.realtime.RealtimeService">
</service>

<service
Expand Down
Loading