[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake-mobile/master] Moved files in to fragments package
commit bb53d2eb3f12e09e62ffa0de7c0d3c04387ee703
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date: Sun Jun 28 17:46:17 2020 +0530
Moved files in to fragments package
---
app/src/main/java/org/torproject/snowflake/MainActivity.java | 2 ++
.../org/torproject/snowflake/{ => fragments}/AppSettingsFragment.java | 4 +++-
.../java/org/torproject/snowflake/{ => fragments}/MainFragment.java | 4 +++-
app/src/main/res/layout/fragment_main_fragment.xml | 2 +-
4 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/app/src/main/java/org/torproject/snowflake/MainActivity.java b/app/src/main/java/org/torproject/snowflake/MainActivity.java
index 7bafaf4..1f8070f 100644
--- a/app/src/main/java/org/torproject/snowflake/MainActivity.java
+++ b/app/src/main/java/org/torproject/snowflake/MainActivity.java
@@ -17,6 +17,8 @@ import androidx.fragment.app.Fragment;
import org.torproject.snowflake.constants.ForegroundServiceConstants;
import org.torproject.snowflake.constants.FragmentConstants;
+import org.torproject.snowflake.fragments.AppSettingsFragment;
+import org.torproject.snowflake.fragments.MainFragment;
import org.torproject.snowflake.interfaces.MainFragmentCallback;
/**
diff --git a/app/src/main/java/org/torproject/snowflake/AppSettingsFragment.java b/app/src/main/java/org/torproject/snowflake/fragments/AppSettingsFragment.java
similarity index 97%
rename from app/src/main/java/org/torproject/snowflake/AppSettingsFragment.java
rename to app/src/main/java/org/torproject/snowflake/fragments/AppSettingsFragment.java
index bfc0631..526f0c8 100644
--- a/app/src/main/java/org/torproject/snowflake/AppSettingsFragment.java
+++ b/app/src/main/java/org/torproject/snowflake/fragments/AppSettingsFragment.java
@@ -1,4 +1,4 @@
-package org.torproject.snowflake;
+package org.torproject.snowflake.fragments;
import android.content.SharedPreferences;
import android.os.Bundle;
@@ -7,6 +7,8 @@ import android.util.Log;
import androidx.preference.Preference;
import androidx.preference.PreferenceFragmentCompat;
+import org.torproject.snowflake.R;
+
public class AppSettingsFragment extends PreferenceFragmentCompat implements SharedPreferences.OnSharedPreferenceChangeListener {
private static final String TAG = "AppSettingsFragment";
diff --git a/app/src/main/java/org/torproject/snowflake/MainFragment.java b/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
similarity index 94%
rename from app/src/main/java/org/torproject/snowflake/MainFragment.java
rename to app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
index 520436c..0b11c22 100644
--- a/app/src/main/java/org/torproject/snowflake/MainFragment.java
+++ b/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
@@ -1,4 +1,4 @@
-package org.torproject.snowflake;
+package org.torproject.snowflake.fragments;
import android.content.Context;
import android.os.Bundle;
@@ -10,6 +10,8 @@ import android.widget.Button;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
+import org.torproject.snowflake.BuildConfig;
+import org.torproject.snowflake.R;
import org.torproject.snowflake.constants.ForegroundServiceConstants;
import org.torproject.snowflake.interfaces.MainFragmentCallback;
diff --git a/app/src/main/res/layout/fragment_main_fragment.xml b/app/src/main/res/layout/fragment_main_fragment.xml
index 6e9c225..bd6a855 100644
--- a/app/src/main/res/layout/fragment_main_fragment.xml
+++ b/app/src/main/res/layout/fragment_main_fragment.xml
@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".MainFragment">
+ tools:context=".fragments.MainFragment">
<Button
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits