|
1 | | -package com.ford.mobileweather.activity; |
| 1 | +package com.sdl.mobileweather.activity; |
2 | 2 |
|
3 | 3 | import android.Manifest; |
4 | 4 | import android.app.ActionBar; |
|
27 | 27 | import android.widget.ListView; |
28 | 28 | import android.widget.Toast; |
29 | 29 |
|
30 | | -import com.ford.mobileweather.R; |
31 | | -import com.ford.mobileweather.fragments.ConditionsFragment; |
32 | | -import com.ford.mobileweather.fragments.ForecastFragment; |
33 | | -import com.ford.mobileweather.smartdevicelink.SmartDeviceLinkActivity; |
34 | | -import com.ford.mobileweather.smartdevicelink.SmartDeviceLinkApplication; |
| 30 | +import com.sdl.mobileweather.R; |
| 31 | +import com.sdl.mobileweather.fragments.ConditionsFragment; |
| 32 | +import com.sdl.mobileweather.fragments.ForecastFragment; |
| 33 | +import com.sdl.mobileweather.smartdevicelink.SmartDeviceLinkActivity; |
| 34 | +import com.sdl.mobileweather.smartdevicelink.SmartDeviceLinkApplication; |
35 | 35 |
|
36 | 36 |
|
37 | 37 | public class MainActivity extends SmartDeviceLinkActivity implements ActionBar.TabListener { |
@@ -120,7 +120,7 @@ private void selectItem(int position) { |
120 | 120 | // TODO: act on selections in the nav drawer |
121 | 121 | String item = mDrawerAdapter.getItem(position); |
122 | 122 | if ((getResources().getString(R.string.drawer_item_update_weather)).equals(item)){ |
123 | | - Intent intent = new Intent("com.ford.mobileweather.WeatherUpdate"); |
| 123 | + Intent intent = new Intent("com.sdl.mobileweather.WeatherUpdate"); |
124 | 124 | LocalBroadcastManager.getInstance(this).sendBroadcast(intent); |
125 | 125 | } |
126 | 126 | else if ((getResources().getString(R.string.drawer_item_reset_sync)).equals(item)){ |
@@ -201,10 +201,10 @@ protected void onStart() { |
201 | 201 | Log.v(SmartDeviceLinkApplication.TAG, "onStart main"); |
202 | 202 | super.onStart(); |
203 | 203 | LocalBroadcastManager lbManager = LocalBroadcastManager.getInstance(this); |
204 | | - lbManager.registerReceiver(mChangeLocationReceiver, new IntentFilter("com.ford.mobileweather.Location")); |
205 | | - lbManager.registerReceiver(mWeatherConditionsReceiver, new IntentFilter("com.ford.mobileweather.WeatherConditions")); |
206 | | - lbManager.registerReceiver(mForecastReceiver, new IntentFilter("com.ford.mobileweather.Forecast")); |
207 | | - lbManager.registerReceiver(mHourlyForecastReceiver, new IntentFilter("com.ford.mobileweather.HourlyForecast")); |
| 204 | + lbManager.registerReceiver(mChangeLocationReceiver, new IntentFilter("com.sdl.mobileweather.Location")); |
| 205 | + lbManager.registerReceiver(mWeatherConditionsReceiver, new IntentFilter("com.sdl.mobileweather.WeatherConditions")); |
| 206 | + lbManager.registerReceiver(mForecastReceiver, new IntentFilter("com.sdl.mobileweather.Forecast")); |
| 207 | + lbManager.registerReceiver(mHourlyForecastReceiver, new IntentFilter("com.sdl.mobileweather.HourlyForecast")); |
208 | 208 |
|
209 | 209 | // Ask for permissions |
210 | 210 | if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) { |
|
0 commit comments