Browse Source

Disabling dm auto refresh temporarily

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
546e6025d6
  1. 12
      app/src/main/AndroidManifest.xml
  2. 2
      app/src/main/java/awais/instagrabber/activities/MainActivity.java
  3. 4
      app/src/main/java/awais/instagrabber/fragments/settings/DMPreferencesFragment.java

12
app/src/main/AndroidManifest.xml

@ -8,7 +8,7 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!--<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />-->
<uses-feature
android:name="android.hardware.camera.any"
@ -155,11 +155,11 @@
android:name=".services.DMSyncAlarmReceiver"
android:enabled="true"
android:exported="false" />
<receiver android:name=".services.BootCompletedReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<!--<receiver android:name=".services.BootCompletedReceiver" >-->
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.BOOT_COMPLETED" />-->
<!-- </intent-filter>-->
<!--</receiver>-->
<uses-library
android:name="org.apache.http.legacy"

2
app/src/main/java/awais/instagrabber/activities/MainActivity.java

@ -163,7 +163,7 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage
EmojiVariantManager.getInstance();
});
initEmojiCompat();
initDmService();
// initDmService();
}
private void initDmService() {

4
app/src/main/java/awais/instagrabber/fragments/settings/DMPreferencesFragment.java

@ -36,8 +36,8 @@ public class DMPreferencesFragment extends BasePreferencesFragment {
final Context context = getContext();
if (context == null) return;
screen.addPreference(getMarkDMSeenPreference(context));
screen.addPreference(getAutoRefreshDMPreference(context));
screen.addPreference(getAutoRefreshDMFreqPreference(context));
// screen.addPreference(getAutoRefreshDMPreference(context));
// screen.addPreference(getAutoRefreshDMFreqPreference(context));
}
private Preference getMarkDMSeenPreference(@NonNull final Context context) {

Loading…
Cancel
Save