Loading QKSMS/src/main/java/com/moez/QKSMS/ui/MainActivity.java +7 −6 Original line number Diff line number Diff line Loading @@ -25,6 +25,8 @@ import android.view.MenuItem; import android.view.View; import android.widget.CheckBox; import android.widget.ImageView; import butterknife.Bind; import butterknife.ButterKnife; import com.google.android.mms.pdu_alt.PduHeaders; import com.moez.QKSMS.R; import com.moez.QKSMS.common.ConversationPrefsHelper; Loading Loading @@ -63,7 +65,6 @@ import java.util.Collection; public class MainActivity extends QKActivity implements SlidingMenu.SlidingMenuListener { private final String TAG = "MainActivity"; public final static String EXTRA_THREAD_ID = "thread_id"; Loading @@ -78,7 +79,9 @@ public class MainActivity extends QKActivity implements SlidingMenu.SlidingMenuL public static final String MMS_SETUP_DONT_ASK_AGAIN = "mmsSetupDontAskAgain"; private SlidingMenu mSlidingMenu; @Bind(R.id.root) View mRoot; @Bind(R.id.sliding_menu) SlidingMenu mSlidingMenu; private ConversationListFragment mConversationList; private ContentFragment mContent; private long mWaitingForThreadId = -1; Loading @@ -97,8 +100,8 @@ public class MainActivity extends QKActivity implements SlidingMenu.SlidingMenuL setContentView(R.layout.activity_main); setTitle(R.string.title_conversation_list); ButterKnife.bind(this); mSlidingMenu = (SlidingMenu) findViewById(R.id.sliding_menu); setSlidingTabEnabled(mPrefs.getBoolean(SettingsFragment.SLIDING_TAB, false)); mSlidingMenu.setListener(this); mSlidingMenu.setContent(); Loading Loading @@ -131,9 +134,7 @@ public class MainActivity extends QKActivity implements SlidingMenu.SlidingMenuL LiveViewManager.registerView(QKPreference.BACKGROUND, this, key -> { // Update the background color. This code is important during the welcome screen setup, when the activity // in the ThemeManager isn't the MainActivity findViewById(R.id.menu_frame).getRootView().setBackgroundColor(ThemeManager.getBackgroundColor()); findViewById(R.id.menu_frame).setBackgroundColor(ThemeManager.getBackgroundColor()); findViewById(R.id.content_frame).setBackgroundColor(ThemeManager.getBackgroundColor()); mRoot.setBackgroundColor(ThemeManager.getBackgroundColor()); }); //Adds a small/non intrusive snackbar that asks the user to rate the app Loading QKSMS/src/main/res/layout/activity_main.xml +2 −2 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout android:id="@+id/root" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/colorBackground" android:fitsSystemWindows="true" android:orientation="vertical"> Loading QKSMS/src/main/res/layout/content_frame.xml +3 −4 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/content_frame" <FrameLayout android:id="@+id/content_frame" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/windowBackground" /> No newline at end of file android:layout_height="match_parent" /> No newline at end of file QKSMS/src/main/res/layout/fragment_conversation.xml +0 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/windowBackground" android:clipToPadding="false" android:focusable="true" android:focusableInTouchMode="true" Loading QKSMS/src/main/res/layout/menu_frame.xml +3 −4 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/menu_frame" <FrameLayout android:id="@+id/menu_frame" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/windowBackground" /> No newline at end of file android:layout_height="match_parent" /> No newline at end of file Loading
QKSMS/src/main/java/com/moez/QKSMS/ui/MainActivity.java +7 −6 Original line number Diff line number Diff line Loading @@ -25,6 +25,8 @@ import android.view.MenuItem; import android.view.View; import android.widget.CheckBox; import android.widget.ImageView; import butterknife.Bind; import butterknife.ButterKnife; import com.google.android.mms.pdu_alt.PduHeaders; import com.moez.QKSMS.R; import com.moez.QKSMS.common.ConversationPrefsHelper; Loading Loading @@ -63,7 +65,6 @@ import java.util.Collection; public class MainActivity extends QKActivity implements SlidingMenu.SlidingMenuListener { private final String TAG = "MainActivity"; public final static String EXTRA_THREAD_ID = "thread_id"; Loading @@ -78,7 +79,9 @@ public class MainActivity extends QKActivity implements SlidingMenu.SlidingMenuL public static final String MMS_SETUP_DONT_ASK_AGAIN = "mmsSetupDontAskAgain"; private SlidingMenu mSlidingMenu; @Bind(R.id.root) View mRoot; @Bind(R.id.sliding_menu) SlidingMenu mSlidingMenu; private ConversationListFragment mConversationList; private ContentFragment mContent; private long mWaitingForThreadId = -1; Loading @@ -97,8 +100,8 @@ public class MainActivity extends QKActivity implements SlidingMenu.SlidingMenuL setContentView(R.layout.activity_main); setTitle(R.string.title_conversation_list); ButterKnife.bind(this); mSlidingMenu = (SlidingMenu) findViewById(R.id.sliding_menu); setSlidingTabEnabled(mPrefs.getBoolean(SettingsFragment.SLIDING_TAB, false)); mSlidingMenu.setListener(this); mSlidingMenu.setContent(); Loading Loading @@ -131,9 +134,7 @@ public class MainActivity extends QKActivity implements SlidingMenu.SlidingMenuL LiveViewManager.registerView(QKPreference.BACKGROUND, this, key -> { // Update the background color. This code is important during the welcome screen setup, when the activity // in the ThemeManager isn't the MainActivity findViewById(R.id.menu_frame).getRootView().setBackgroundColor(ThemeManager.getBackgroundColor()); findViewById(R.id.menu_frame).setBackgroundColor(ThemeManager.getBackgroundColor()); findViewById(R.id.content_frame).setBackgroundColor(ThemeManager.getBackgroundColor()); mRoot.setBackgroundColor(ThemeManager.getBackgroundColor()); }); //Adds a small/non intrusive snackbar that asks the user to rate the app Loading
QKSMS/src/main/res/layout/activity_main.xml +2 −2 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout android:id="@+id/root" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/colorBackground" android:fitsSystemWindows="true" android:orientation="vertical"> Loading
QKSMS/src/main/res/layout/content_frame.xml +3 −4 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/content_frame" <FrameLayout android:id="@+id/content_frame" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/windowBackground" /> No newline at end of file android:layout_height="match_parent" /> No newline at end of file
QKSMS/src/main/res/layout/fragment_conversation.xml +0 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/windowBackground" android:clipToPadding="false" android:focusable="true" android:focusableInTouchMode="true" Loading
QKSMS/src/main/res/layout/menu_frame.xml +3 −4 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/menu_frame" <FrameLayout android:id="@+id/menu_frame" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/windowBackground" /> No newline at end of file android:layout_height="match_parent" /> No newline at end of file