Added @SuppressLint("ValidFragment") to all fragments
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -13,6 +13,7 @@ import com.TwentyCodes.android.LocationRinger.OnContentChangedListener;
|
||||
import com.TwentyCodes.android.LocationRinger.db.RingerDatabase;
|
||||
import com.TwentyCodes.android.LocationRinger.debug.Debug;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
@@ -33,6 +34,7 @@ import android.widget.ToggleButton;
|
||||
* This fragment will used to allow the user to enter/edit ringer information
|
||||
* @author ricky
|
||||
*/
|
||||
@SuppressLint({ "ValidFragment", "ValidFragment" })
|
||||
public class AboutRingerFragment extends Fragment implements OnCheckedChangeListener {
|
||||
|
||||
private static final String TAG = "AboutRingerFragment";
|
||||
|
||||
@@ -9,6 +9,7 @@ package com.TwentyCodes.android.LocationRinger.ui.fragments;
|
||||
import com.TwentyCodes.android.LocationRinger.FeatureRemovedListener;
|
||||
import com.TwentyCodes.android.LocationRinger.R;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.view.LayoutInflater;
|
||||
@@ -21,6 +22,7 @@ import android.widget.ImageView;
|
||||
* This is a simple extention of a fragment that will allow for storage of an id
|
||||
* @author ricky barrette
|
||||
*/
|
||||
@SuppressLint("ValidFragment")
|
||||
public class BaseFeatureFragment extends Fragment implements OnClickListener{
|
||||
|
||||
private final int mId;
|
||||
|
||||
@@ -8,6 +8,7 @@ package com.TwentyCodes.android.LocationRinger.ui.fragments;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.ContentValues;
|
||||
import android.content.DialogInterface;
|
||||
@@ -31,6 +32,7 @@ import com.TwentyCodes.android.LocationRinger.db.RingerDatabase;
|
||||
* This fragment will be used to display a list of features
|
||||
* @author ricky
|
||||
*/
|
||||
@SuppressLint("ValidFragment")
|
||||
public class FeatureListFragment extends BaseFragmentListFragment implements OnClickListener, android.content.DialogInterface.OnClickListener, FeatureRemovedListener {
|
||||
|
||||
private static final int KEY_ADDED_RINGTONE = 0;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
package com.TwentyCodes.android.LocationRinger.ui.fragments;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.ContentValues;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.Fragment;
|
||||
@@ -38,6 +39,7 @@ import com.google.android.maps.GeoPoint;
|
||||
* This fragment will be used to display and allow the user to edit the ringers location trigger
|
||||
* @author ricky
|
||||
*/
|
||||
@SuppressLint("ValidFragment")
|
||||
public class LocationInfomationFragment extends Fragment implements GeoPointLocationListener, OnClickListener, OnCheckedChangeListener, OnSeekBarChangeListener, OnLocationSelectedListener, SearchRequestedListener {
|
||||
|
||||
private static final String TAG = "RingerInformationHowActivity";
|
||||
|
||||
@@ -8,6 +8,7 @@ package com.TwentyCodes.android.LocationRinger.ui.fragments;
|
||||
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
@@ -37,6 +38,7 @@ import com.TwentyCodes.android.LocationRinger.debug.Debug;
|
||||
* This fragment will be for ringtone settings
|
||||
* @author ricky
|
||||
*/
|
||||
@SuppressLint("ValidFragment")
|
||||
public class RingtoneFragment extends BaseFeatureFragment implements OnClickListener, OnSeekBarChangeListener {
|
||||
|
||||
private static final String TAG = "RingtoneFragment";
|
||||
@@ -133,7 +135,6 @@ public class RingtoneFragment extends BaseFeatureFragment implements OnClickList
|
||||
*/
|
||||
@Override
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
if (resultCode == Activity.RESULT_OK) {
|
||||
final Uri tone = data.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI);
|
||||
if(tone == null){
|
||||
@@ -149,6 +150,7 @@ public class RingtoneFragment extends BaseFeatureFragment implements OnClickList
|
||||
|
||||
notifyRingtoneChanged(tone);
|
||||
}
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
package com.TwentyCodes.android.LocationRinger.ui.fragments;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.ContentValues;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
@@ -25,6 +26,7 @@ import com.TwentyCodes.android.LocationRinger.db.RingerDatabase;
|
||||
* A simple fragment that displays a toggle button and a title label
|
||||
* @author ricky
|
||||
*/
|
||||
@SuppressLint("ValidFragment")
|
||||
public class ToggleButtonFragment extends BaseFeatureFragment implements OnCheckedChangeListener {
|
||||
|
||||
private final String mTitle;
|
||||
|
||||
@@ -8,6 +8,7 @@ package com.TwentyCodes.android.LocationRinger.ui.fragments;
|
||||
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
import android.media.AudioManager;
|
||||
@@ -30,6 +31,7 @@ import com.TwentyCodes.android.LocationRinger.debug.Debug;
|
||||
* This fragment will represent the volume fragments
|
||||
* @author ricky
|
||||
*/
|
||||
@SuppressLint("ValidFragment")
|
||||
public class VolumeFragment extends BaseFeatureFragment implements OnSeekBarChangeListener {
|
||||
|
||||
private static final String TAG = "VolumeFragment";
|
||||
|
||||
Reference in New Issue
Block a user