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

Commit

Permalink
Adjusted HomeScreenWidgetActivity class' location and its javadocs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Langston Smith authored May 17, 2019
1 parent 8a5cddc commit 4b9dc38
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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 @@ -806,7 +806,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"
]

0 comments on commit 4b9dc38

Please sign in to comment.