package com.procleus.brime;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

/**
 * Created by Utkarsh on 07-07-2016.
 */
public class PrivateFragment extends Fragment {
    final boolean isEmptyPrivate = true;
    private View view;
    ImageView mImageView;	//reference to the ImageView
    int xDim, yDim;		//stores ImageView dimensions
    private bitmapCreate bitmap;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        ((MainActivity) getActivity()).setActionBarTitle("Private Notes");
        if(isEmptyPrivate == true){
            view = inflater.inflate(R.layout.empty_notes, container, false);
            mImageView = (ImageView)view.findViewById(R.id.empty_avatar);
            xDim=300;
            yDim=300;
            mImageView.setImageBitmap(bitmap.decodeSampledBitmapFromResource(getResources(), R.drawable.empty_buddy, xDim, yDim));
            return view;
        }
        else {
            return inflater.inflate(R.layout.private_fragment, container, false);
        }
    }

}

@@ -24,16 +24,92 @@
 ime;%0D%0A%0D%0A
+import android.content.Context;%0D%0Aimport android.content.SharedPreferences;%0D%0A
 import a
@@ -324,14 +324,13 @@
 by U
-tkarsh
+jjwal
  on 
@@ -604,16 +604,65 @@
 itmap;%0D%0A
+    SharedPreferences sharedPreferences = null;%0D%0A
     @Ove
@@ -924,24 +924,292 @@
 e Notes%22);%0D%0A
+        sharedPreferences = this.getActivity().getSharedPreferences(%22com.procleus.brime%22, Context.MODE_PRIVATE);%0D%0A        Boolean bool = sharedPreferences.getBoolean(%22loggedin%22, false);%0D%0A        if (bool == false) %7B%0D%0A            // Alert Dialog%0D%0A        %7D else %7B%0D%0A    
         if(i
@@ -1233,16 +1233,20 @@
 true)%7B%0D%0A
+    
         
@@ -1319,32 +1319,36 @@
 );%0D%0A            
+ 
+   
 mImageView = (Im
@@ -1406,16 +1406,20 @@
         
+    
 xDim=300
@@ -1413,32 +1413,36 @@
      xDim=300;%0D%0A
+    
             yDim
@@ -1452,32 +1452,36 @@
 0;%0D%0A            
+ 
+   
 mImageView.setIm
@@ -1592,24 +1592,28 @@
             
+    
 return view;
@@ -1618,24 +1618,28 @@
 w;%0D%0A        
+    
 %7D%0D%0A        e
@@ -1637,24 +1637,28 @@
         
+ 
+   
 else %7B%0D%0A
         
@@ -1641,32 +1641,36 @@
         else %7B%0D%0A
+    
             retu
@@ -1748,18 +1748,110 @@
     
+    
 %7D%0D%0A    
+  
+  
 %7D%0D%0A
+        return inflater.inflate(R.layout.private_fragment, container, false);%0D%0A    %7D
 %0D%0A%7D%0D

Update PrivateFragment.java