Skip to content

Commit

Permalink
Fix spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
surbhimaheshwari committed Oct 24, 2023
1 parent f4dc72c commit 1660b1b
Showing 1 changed file with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
package com.splunk.android.sample;
/*
* Copyright Splunk Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.splunk.android.sample;

import android.annotation.SuppressLint;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;


@SuppressLint("SpecifyJobSchedulerIdRange")
public class SplunkJobService extends JobService {
private String TAG = SplunkJobService.class.getSimpleName();
Expand All @@ -17,16 +30,15 @@ public class SplunkJobService extends JobService {

@Override
public boolean onStartJob(JobParameters params) {
// Intent serviceIntent = new Intent(context, SplunkBackgroundService.class);
// Intent serviceIntent = new Intent(context, SplunkBackgroundService.class);
return true;
}

@Override
public boolean onStopJob(JobParameters params) {
// Intent serviceIntent = new Intent(context, SplunkBackgroundService.class);
// context.stopService(serviceIntent);
// Intent serviceIntent = new Intent(context, SplunkBackgroundService.class);
// context.stopService(serviceIntent);
Log.d(TAG, "Job paused.");
return true;
}

}

0 comments on commit 1660b1b

Please sign in to comment.