Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Adjusted HomeScreenWidgetActivity class' location and its javadocs #1031

Merged
merged 1 commit into from
May 17, 2019
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
import com.mapbox.mapboxandroiddemo.examples.styles.TransparentBackgroundActivity;
import com.mapbox.mapboxandroiddemo.examples.styles.VectorSourceActivity;
import com.mapbox.mapboxandroiddemo.examples.styles.ZoomDependentFillColorActivity;
import com.mapbox.mapboxandroiddemo.labs.HomeScreenWidgetActivity;
import com.mapbox.mapboxandroiddemo.examples.labs.HomeScreenWidgetActivity;
import com.mapbox.mapboxandroiddemo.model.ExampleItemModel;
import com.mapbox.mapboxandroiddemo.utils.ItemClickSupport;
import com.mapbox.mapboxandroiddemo.utils.SettingsDialogView;
Expand Down
2 changes: 1 addition & 1 deletion MapboxAndroidDemo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
</activity>
<activity
android:name=".labs.HomeScreenWidgetActivity"
android:name=".examples.labs.HomeScreenWidgetActivity"
android:label="@string/activity_lab_home_screen_widget_title"
android:screenOrientation="portrait">
<meta-data
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.mapbox.mapboxandroiddemo.examples.labs;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.mapbox.mapboxandroiddemo.R;

/**
* A placeholder activity and XML layout, which describe instruction on installing and viewing
* the demo app's home screen widget. The widget retrieves the device's location,
* makes a geocoding request to the Mapbox Geocoding API, and displays the real-world
* address that's associated with the device's location.
*
* Visit the {@link com.mapbox.mapboxandroiddemo.utils.DemoAppHomeScreenAddressWidget}
* class to see the internal workings of the widget.
*/
public class HomeScreenWidgetActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_homescreen_geocoding_widget);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
import static android.os.Looper.getMainLooper;

/**
* Use the Mapbox Java SDK to make a reverse geocode search with the device's current coordinates. Display
* the address in an Android home screen widget.
* A home screen widget. The widget retrieves the device's location,
* makes a reverse geocoding request to the Mapbox Geocoding API, and displays the real-world
* address that's associated with the device's location.
*/
public class DemoAppHomeScreenAddressWidget extends AppWidgetProvider implements
PermissionsListener {
Expand Down
3 changes: 2 additions & 1 deletion scripts/exclude-activity-gen.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"StaticImageActivity",
"PulsingLayerOpacityColorActivity",
"LocationComponentFragmentActivity",
"InsetMapActivity"
"InsetMapActivity",
"HomeScreenWidgetActivity"
]